Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,tolerance=1e-06,outputFormat="empty",numberOfIntervals=48000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc") translateModel(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,tolerance=1e-06,outputFormat="empty",numberOfIntervals=48000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001075/0.001075, allocations: 90.52 kB / 15.36 MB, free: 0.7383 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.008151/0.008151, allocations: 171.1 kB / 16.26 MB, free: 6.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.568/1.568, allocations: 205.4 MB / 222.4 MB, free: 5.566 MB / 174.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005397/0.0005397, allocations: 12 kB / 279.4 MB, free: 12.52 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3466/0.3472, allocations: 47.59 MB / 327 MB, free: 1.438 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.003497/0.3507, allocations: 2.762 MB / 329.8 MB, free: 15.23 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001429/0.3522, allocations: 0.7657 MB / 330.6 MB, free: 14.61 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000159/0.3524, allocations: 5.594 kB / 330.6 MB, free: 14.61 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001611/0.3526, allocations: 50.36 kB / 330.6 MB, free: 14.56 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001853/0.3527, allocations: 81.78 kB / 330.7 MB, free: 14.49 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003782/0.3531, allocations: 97.81 kB / 330.8 MB, free: 14.41 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005824/0.3537, allocations: 400.5 kB / 331.2 MB, free: 14.18 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003352/0.3541, allocations: 107.7 kB / 331.3 MB, free: 14.12 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002725/0.3544, allocations: 143 kB / 331.4 MB, free: 14.04 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000252/0.3546, allocations: 156.5 kB / 331.6 MB, free: 13.93 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 6.033e-05/0.3547, allocations: 18.91 kB / 331.6 MB, free: 13.93 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.813e-05/0.3548, allocations: 17.94 kB / 331.6 MB, free: 13.93 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 9.094e-05/0.3549, allocations: 66.36 kB / 331.7 MB, free: 13.88 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002869/0.3551, allocations: 196.3 kB / 331.9 MB, free: 13.74 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005343/0.3557, allocations: 395.8 kB / 332.3 MB, free: 13.45 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.424e-06/0.3557, allocations: 0 / 332.3 MB, free: 13.45 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.745e-06/0.3557, allocations: 0 / 332.3 MB, free: 13.45 MB / 270.1 MB Notification: Performance of Transformations before backend: time 8.376e-06/0.3557, allocations: 1.125 kB / 332.3 MB, free: 13.45 MB / 270.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.001298/0.3571, allocations: 0.5976 MB / 332.9 MB, free: 12.92 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.145e-05/0.3571, allocations: 9.625 kB / 332.9 MB, free: 12.92 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001154/0.3572, allocations: 40.47 kB / 332.9 MB, free: 12.9 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004086/0.3577, allocations: 278.5 kB / 333.2 MB, free: 12.62 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.844e-05/0.3578, allocations: 79.47 kB / 333.3 MB, free: 12.55 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.312e-05/0.3578, allocations: 28.41 kB / 333.3 MB, free: 12.54 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000645/0.3585, allocations: 349.4 kB / 333.6 MB, free: 12.31 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.661e-05/0.3585, allocations: 1 kB / 333.6 MB, free: 12.31 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000136/0.3587, allocations: 14.89 kB / 333.6 MB, free: 12.3 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.496e-05/0.3587, allocations: 8.25 kB / 333.6 MB, free: 12.3 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004799/0.3592, allocations: 221.7 kB / 333.9 MB, free: 12.2 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002031/0.3612, allocations: 1.387 MB / 335.3 MB, free: 10.92 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003619/0.3616, allocations: 170.6 kB / 335.4 MB, free: 10.75 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001973/0.3618, allocations: 96.8 kB / 335.5 MB, free: 10.65 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.549e-05/0.3618, allocations: 0 / 335.5 MB, free: 10.65 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003278/0.3622, allocations: 161.8 kB / 335.7 MB, free: 10.47 MB / 270.1 MB Notification: Performance of pre-optimization done (n=21): time 4.398e-06/0.3622, allocations: 3.984 kB / 335.7 MB, free: 10.46 MB / 270.1 MB Notification: Performance of matching and sorting (n=21): time 0.001134/0.3633, allocations: 419.1 kB / 336.1 MB, free: 10.03 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000101/0.3634, allocations: 110.8 kB / 336.2 MB, free: 9.895 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002925/0.3637, allocations: 262.7 kB / 336.4 MB, free: 9.633 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 2.906e-05/0.3638, allocations: 29.7 kB / 336.5 MB, free: 9.598 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001688/0.3639, allocations: 211.8 kB / 336.7 MB, free: 9.387 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.532e-05/0.364, allocations: 71.02 kB / 336.8 MB, free: 9.316 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.8e-05/0.3641, allocations: 33.7 kB / 336.8 MB, free: 9.277 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001504/0.3642, allocations: 338.8 kB / 337.1 MB, free: 8.938 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001572/0.3644, allocations: 72.62 kB / 337.2 MB, free: 8.867 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002424/0.3647, allocations: 185.5 kB / 337.4 MB, free: 8.645 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003737/0.365, allocations: 243.5 kB / 337.6 MB, free: 8.371 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.365, allocations: 0 / 337.6 MB, free: 8.371 MB / 270.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006893/0.3657, allocations: 351.6 kB / 338 MB, free: 8.02 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.165e-05/0.3658, allocations: 11.94 kB / 338 MB, free: 8.008 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.108e-06/0.3658, allocations: 4 kB / 338 MB, free: 8.004 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002785/0.3661, allocations: 56.97 kB / 338 MB, free: 7.945 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002579/0.3663, allocations: 63.91 kB / 338.1 MB, free: 7.883 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001407/0.3678, allocations: 1.408 MB / 339.5 MB, free: 6.34 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002611/0.368, allocations: 47.8 kB / 339.5 MB, free: 6.293 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.013e-05/0.3681, allocations: 16 kB / 339.6 MB, free: 6.277 MB / 270.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 8 (switch2.tSwitch,$PRE.switch2.tSwitch,switch2.quenched,$PRE.switch2.quenched,switch2.off,$PRE.switch2.off,switch1.off,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (38): * Single equations (assignments): 37 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0001834/0.3683, allocations: 153.7 kB / 339.7 MB, free: 6.117 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.668e-05/0.3683, allocations: 23.72 kB / 339.7 MB, free: 6.094 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.129e-05/0.3684, allocations: 34.17 kB / 339.8 MB, free: 6.062 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.328e-06/0.3684, allocations: 4 kB / 339.8 MB, free: 6.059 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.21e-06/0.3684, allocations: 3.938 kB / 339.8 MB, free: 6.055 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.659e-06/0.3684, allocations: 4 kB / 339.8 MB, free: 6.051 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003764/0.3688, allocations: 345.2 kB / 340.1 MB, free: 5.664 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.3688, allocations: 0 / 340.1 MB, free: 5.664 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001885/0.369, allocations: 35.98 kB / 340.1 MB, free: 5.629 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001788/0.3692, allocations: 52.81 kB / 340.2 MB, free: 5.574 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.229e-05/0.3692, allocations: 8 kB / 340.2 MB, free: 5.566 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001164/0.3704, allocations: 1.327 MB / 341.5 MB, free: 4.105 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.342e-06/0.3704, allocations: 0 / 341.5 MB, free: 4.105 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006913/0.3711, allocations: 362.3 kB / 341.9 MB, free: 3.73 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001159/0.3712, allocations: 120.8 kB / 342 MB, free: 3.594 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.242e-05/0.3713, allocations: 0 / 342 MB, free: 3.594 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000175/0.3714, allocations: 23.98 kB / 342 MB, free: 3.57 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.392e-05/0.3715, allocations: 32.02 kB / 342.1 MB, free: 3.539 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.435e-05/0.3716, allocations: 4 kB / 342.1 MB, free: 3.535 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.0001825/0.3717, allocations: 186 kB / 342.2 MB, free: 3.352 MB / 270.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3717, allocations: 0 / 342.2 MB, free: 3.352 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0003754/0.3721, allocations: 91.75 kB / 342.3 MB, free: 3.262 MB / 270.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (inductor1.i,inductor2.i) * Number of discrete variables: 5 ($whenCondition1,switch1.off,switch2.off,switch2.quenched,switch2.tSwitch) * Number of discrete states: 2 (switch2.quenched,switch2.off) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001734/0.3723, allocations: 107.4 kB / 342.4 MB, free: 3.148 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.0006205/0.3729, allocations: 318.4 kB / 342.7 MB, free: 2.824 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 2.365e-06/0.373, allocations: 0 / 342.7 MB, free: 2.824 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003091/0.3733, allocations: 198.6 kB / 342.9 MB, free: 2.617 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003146/0.3736, allocations: 37.17 kB / 343 MB, free: 2.582 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001631/0.3752, allocations: 0.8713 MB / 343.9 MB, free: 1.684 MB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004186/0.3757, allocations: 0.7677 MB / 344.6 MB, free: 0.8906 MB / 270.1 MB Notification: Performance of simCode: alias equations: time 0.0001161/0.3758, allocations: 34.27 kB / 344.7 MB, free: 0.8594 MB / 270.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.382e-05/0.3759, allocations: 19.44 kB / 344.7 MB, free: 0.8398 MB / 270.1 MB Notification: Performance of SimCode: time 4.11e-07/0.3759, allocations: 0 / 344.7 MB, free: 0.8398 MB / 270.1 MB Notification: Performance of Templates: time 0.006656/0.3825, allocations: 2.778 MB / 347.4 MB, free: 14.06 MB / 286.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.makefile (rm -f Modelica_3.1_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.sim & ./Modelica_3.1_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe 2>&1)