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.001489/0.001489, allocations: 111.3 kB / 15.23 MB, free: 0.6562 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.001798/0.001798, allocations: 194.2 kB / 16.14 MB, free: 6.719 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.626/1.626, allocations: 205.1 MB / 222 MB, free: 4.777 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.001593/0.001594, allocations: 60.28 kB / 278.1 MB, free: 12.78 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3358/0.3374, allocations: 46.63 MB / 324.7 MB, free: 2.277 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.006297/0.3438, allocations: 3.133 MB / 327.8 MB, free: 15.8 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002678/0.3466, allocations: 0.7793 MB / 328.6 MB, free: 15.16 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004084/0.3471, allocations: 5.156 kB / 328.6 MB, free: 15.16 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003229/0.3474, allocations: 45.86 kB / 328.6 MB, free: 15.12 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002913/0.3477, allocations: 94.12 kB / 328.7 MB, free: 15.04 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005166/0.3483, allocations: 86.72 kB / 328.8 MB, free: 14.96 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006176/0.3489, allocations: 410.9 kB / 329.2 MB, free: 14.72 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003334/0.3492, allocations: 116.1 kB / 329.3 MB, free: 14.65 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003035/0.3496, allocations: 141.3 kB / 329.5 MB, free: 14.58 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002828/0.3498, allocations: 166 kB / 329.6 MB, free: 14.46 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 6.392e-05/0.3499, allocations: 22.72 kB / 329.7 MB, free: 14.46 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.411e-05/0.35, allocations: 24.66 kB / 329.7 MB, free: 14.46 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 9.884e-05/0.3501, allocations: 74.06 kB / 329.8 MB, free: 14.4 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002508/0.3504, allocations: 168.4 kB / 329.9 MB, free: 14.3 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006075/0.351, allocations: 406.5 kB / 330.3 MB, free: 14 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.213e-05/0.351, allocations: 4 kB / 330.3 MB, free: 13.99 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.144e-06/0.351, allocations: 5.219 kB / 330.3 MB, free: 13.99 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.127e-05/0.351, allocations: 0 / 330.3 MB, free: 13.99 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.001577/0.3526, allocations: 0.639 MB / 331 MB, free: 13.43 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.992e-05/0.3527, allocations: 13.12 kB / 331 MB, free: 13.43 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001349/0.3528, allocations: 44.72 kB / 331 MB, free: 13.4 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004704/0.3533, allocations: 278.4 kB / 331.3 MB, free: 13.12 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001261/0.3535, allocations: 83.7 kB / 331.4 MB, free: 13.05 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.997e-05/0.3536, allocations: 28.72 kB / 331.4 MB, free: 13.04 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007395/0.3543, allocations: 335 kB / 331.7 MB, free: 12.82 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.578e-05/0.3543, allocations: 0 / 331.7 MB, free: 12.82 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.669e-05/0.3544, allocations: 24.16 kB / 331.8 MB, free: 12.8 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.21e-05/0.3544, allocations: 8.156 kB / 331.8 MB, free: 12.8 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005803/0.355, allocations: 222 kB / 332 MB, free: 12.7 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002551/0.3576, allocations: 1.363 MB / 333.3 MB, free: 11.5 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000439/0.358, allocations: 169.2 kB / 333.5 MB, free: 11.36 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001865/0.3582, allocations: 92.77 kB / 333.6 MB, free: 11.26 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.955e-05/0.3583, allocations: 0 / 333.6 MB, free: 11.26 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005067/0.3588, allocations: 162.4 kB / 333.8 MB, free: 11.08 MB / 270.1 MB Notification: Performance of pre-optimization done (n=21): time 1.603e-06/0.3588, allocations: 0 / 333.8 MB, free: 11.08 MB / 270.1 MB Notification: Performance of matching and sorting (n=21): time 0.0013/0.3601, allocations: 407.1 kB / 334.2 MB, free: 10.66 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.511e-05/0.3602, allocations: 106.8 kB / 334.3 MB, free: 10.53 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003244/0.3605, allocations: 262.6 kB / 334.5 MB, free: 10.27 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 3.313e-05/0.3606, allocations: 33.7 kB / 334.5 MB, free: 10.23 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001609/0.3608, allocations: 211.8 kB / 334.8 MB, free: 10.02 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.413e-05/0.3608, allocations: 71 kB / 334.8 MB, free: 9.945 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.956e-05/0.3609, allocations: 58.03 kB / 334.9 MB, free: 9.883 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.000174/0.3611, allocations: 334.8 kB / 335.2 MB, free: 9.547 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001765/0.3613, allocations: 84.61 kB / 335.3 MB, free: 9.465 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002566/0.3616, allocations: 177.4 kB / 335.5 MB, free: 9.25 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003545/0.3619, allocations: 239.6 kB / 335.7 MB, free: 8.98 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.925e-06/0.362, allocations: 0 / 335.7 MB, free: 8.98 MB / 270.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006694/0.3626, allocations: 355.5 kB / 336 MB, free: 8.625 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.956e-05/0.3627, allocations: 4 kB / 336 MB, free: 8.621 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.058e-05/0.3627, allocations: 4 kB / 336.1 MB, free: 8.617 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003221/0.363, allocations: 56.94 kB / 336.1 MB, free: 8.559 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002681/0.3633, allocations: 67.91 kB / 336.2 MB, free: 8.492 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001467/0.3648, allocations: 1.401 MB / 337.6 MB, free: 6.957 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003734/0.3651, allocations: 43.67 kB / 337.6 MB, free: 6.914 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.666e-05/0.3652, allocations: 11.98 kB / 337.6 MB, free: 6.902 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.0001888/0.3654, allocations: 158.5 kB / 337.8 MB, free: 6.738 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.215e-05/0.3654, allocations: 23.72 kB / 337.8 MB, free: 6.715 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.636e-05/0.3655, allocations: 26.17 kB / 337.8 MB, free: 6.691 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.727e-06/0.3655, allocations: 4 kB / 337.8 MB, free: 6.688 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.891e-06/0.3656, allocations: 3.938 kB / 337.8 MB, free: 6.684 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.167e-06/0.3656, allocations: 0 / 337.8 MB, free: 6.684 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004366/0.366, allocations: 349.2 kB / 338.2 MB, free: 6.293 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-06/0.366, allocations: 0 / 338.2 MB, free: 6.293 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002085/0.3662, allocations: 43.92 kB / 338.2 MB, free: 6.25 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002026/0.3665, allocations: 52.81 kB / 338.3 MB, free: 6.195 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.982e-05/0.3665, allocations: 4 kB / 338.3 MB, free: 6.191 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001272/0.3678, allocations: 1.327 MB / 339.6 MB, free: 4.73 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.823e-06/0.3678, allocations: 0 / 339.6 MB, free: 4.73 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007221/0.3685, allocations: 349.6 kB / 339.9 MB, free: 4.367 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001215/0.3686, allocations: 112.8 kB / 340.1 MB, free: 4.238 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.916e-05/0.3687, allocations: 8 kB / 340.1 MB, free: 4.23 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001692/0.3689, allocations: 15.98 kB / 340.1 MB, free: 4.215 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.91e-05/0.369, allocations: 31.89 kB / 340.1 MB, free: 4.184 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.519e-05/0.369, allocations: 8.062 kB / 340.1 MB, free: 4.176 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.0001763/0.3692, allocations: 190 kB / 340.3 MB, free: 3.988 MB / 270.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3692, allocations: 0 / 340.3 MB, free: 3.988 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0004697/0.3697, allocations: 87.75 kB / 340.4 MB, free: 3.902 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.0001839/0.3698, allocations: 108.1 kB / 340.5 MB, free: 3.789 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.0006737/0.3705, allocations: 314.8 kB / 340.8 MB, free: 3.469 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 2.906e-06/0.3705, allocations: 0 / 340.8 MB, free: 3.469 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002975/0.3708, allocations: 198.5 kB / 341 MB, free: 3.262 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003264/0.3712, allocations: 36.55 kB / 341 MB, free: 3.227 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00184/0.373, allocations: 0.7964 MB / 341.8 MB, free: 2.406 MB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003474/0.3734, allocations: 0.7716 MB / 342.6 MB, free: 1.609 MB / 270.1 MB Notification: Performance of simCode: alias equations: time 0.0001393/0.3735, allocations: 26.28 kB / 342.6 MB, free: 1.582 MB / 270.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.374e-05/0.3736, allocations: 19.44 kB / 342.6 MB, free: 1.562 MB / 270.1 MB Notification: Performance of SimCode: time 5.81e-07/0.3736, allocations: 0 / 342.6 MB, free: 1.562 MB / 270.1 MB Notification: Performance of Templates: time 0.006579/0.3802, allocations: 2.818 MB / 345.5 MB, free: 14.75 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)