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.001439/0.001439, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001273/0.001273, allocations: 194 kB / 16.25 MB, free: 6.621 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.48/1.48, allocations: 205.1 MB / 222.1 MB, free: 4.742 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.001135/0.001135, allocations: 51.94 kB / 278.2 MB, free: 12.66 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3249/0.3261, allocations: 46.63 MB / 324.9 MB, free: 1.898 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.004393/0.3305, allocations: 3.129 MB / 328 MB, free: 15.42 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001474/0.332, allocations: 0.7795 MB / 328.8 MB, free: 14.78 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001656/0.3322, allocations: 5.281 kB / 328.8 MB, free: 14.78 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002023/0.3324, allocations: 42.17 kB / 328.8 MB, free: 14.75 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001925/0.3326, allocations: 90.52 kB / 328.9 MB, free: 14.67 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000354/0.333, allocations: 101.1 kB / 329 MB, free: 14.58 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004462/0.3335, allocations: 416.7 kB / 329.4 MB, free: 14.34 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002683/0.3337, allocations: 132.9 kB / 329.5 MB, free: 14.27 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002241/0.334, allocations: 162.2 kB / 329.7 MB, free: 14.18 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002157/0.3342, allocations: 174.1 kB / 329.9 MB, free: 14.05 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 5.743e-05/0.3343, allocations: 42.16 kB / 329.9 MB, free: 14.05 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.995e-05/0.3343, allocations: 34.91 kB / 329.9 MB, free: 14.05 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 7.992e-05/0.3344, allocations: 78.59 kB / 330 MB, free: 13.98 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002298/0.3347, allocations: 192.6 kB / 330.2 MB, free: 13.85 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005623/0.3352, allocations: 416.2 kB / 330.6 MB, free: 13.55 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.011e-06/0.3352, allocations: 0 / 330.6 MB, free: 13.55 MB / 270.1 MB Notification: Performance of FrontEnd: time 3.606e-06/0.3352, allocations: 0 / 330.6 MB, free: 13.55 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.066e-05/0.3353, allocations: 1.188 kB / 330.6 MB, free: 13.55 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.001283/0.3366, allocations: 0.6465 MB / 331.3 MB, free: 12.98 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.106e-05/0.3366, allocations: 9.562 kB / 331.3 MB, free: 12.98 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001225/0.3368, allocations: 44.97 kB / 331.3 MB, free: 12.96 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003953/0.3372, allocations: 281.9 kB / 331.6 MB, free: 12.68 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.711e-05/0.3373, allocations: 74.66 kB / 331.7 MB, free: 12.61 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.852e-05/0.3373, allocations: 37.31 kB / 331.7 MB, free: 12.59 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006443/0.338, allocations: 347.1 kB / 332 MB, free: 12.36 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.667e-05/0.338, allocations: 1.25 kB / 332 MB, free: 12.36 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.058e-05/0.3381, allocations: 11 kB / 332 MB, free: 12.35 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.757e-05/0.3381, allocations: 8.75 kB / 332.1 MB, free: 12.35 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004595/0.3386, allocations: 221.9 kB / 332.3 MB, free: 12.25 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002087/0.3406, allocations: 1.355 MB / 333.6 MB, free: 11.05 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003427/0.341, allocations: 189.9 kB / 333.8 MB, free: 10.89 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001652/0.3412, allocations: 88.77 kB / 333.9 MB, free: 10.8 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.239e-05/0.3412, allocations: 0 / 333.9 MB, free: 10.8 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003802/0.3416, allocations: 157.8 kB / 334 MB, free: 10.63 MB / 270.1 MB Notification: Performance of pre-optimization done (n=21): time 1.532e-06/0.3416, allocations: 0 / 334 MB, free: 10.63 MB / 270.1 MB Notification: Performance of matching and sorting (n=21): time 0.001088/0.3427, allocations: 399.1 kB / 334.4 MB, free: 10.21 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.64e-05/0.3428, allocations: 110.8 kB / 334.5 MB, free: 10.08 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002493/0.343, allocations: 266.6 kB / 334.8 MB, free: 9.809 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 2.331e-05/0.3431, allocations: 33.7 kB / 334.8 MB, free: 9.77 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001211/0.3432, allocations: 203.9 kB / 335 MB, free: 9.566 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.594e-05/0.3433, allocations: 71 kB / 335.1 MB, free: 9.496 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.432e-05/0.3434, allocations: 62.02 kB / 335.2 MB, free: 9.43 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001372/0.3435, allocations: 338.8 kB / 335.5 MB, free: 9.09 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001492/0.3437, allocations: 72.62 kB / 335.6 MB, free: 9.02 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002281/0.3439, allocations: 185.4 kB / 335.8 MB, free: 8.797 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003052/0.3442, allocations: 239.6 kB / 336 MB, free: 8.527 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.028e-06/0.3442, allocations: 0 / 336 MB, free: 8.527 MB / 270.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006267/0.3449, allocations: 343.5 kB / 336.3 MB, free: 8.184 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.983e-05/0.3449, allocations: 8 kB / 336.3 MB, free: 8.176 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.087e-06/0.3449, allocations: 7.938 kB / 336.3 MB, free: 8.168 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002709/0.3452, allocations: 52.81 kB / 336.4 MB, free: 8.113 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002489/0.3454, allocations: 64.03 kB / 336.5 MB, free: 8.051 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001302/0.3468, allocations: 1.572 MB / 338 MB, free: 6.34 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000249/0.347, allocations: 43.67 kB / 338.1 MB, free: 6.297 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.303e-05/0.3471, allocations: 19.92 kB / 338.1 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.0001454/0.3472, allocations: 149.9 kB / 338.2 MB, free: 6.121 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.738e-05/0.3473, allocations: 27.72 kB / 338.3 MB, free: 6.094 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.412e-05/0.3473, allocations: 34.11 kB / 338.3 MB, free: 6.066 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.106e-06/0.3473, allocations: 7.938 kB / 338.3 MB, free: 6.059 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.565e-06/0.3473, allocations: 0 / 338.3 MB, free: 6.059 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.915e-06/0.3473, allocations: 0 / 338.3 MB, free: 6.059 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003597/0.3477, allocations: 345.3 kB / 338.6 MB, free: 5.672 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.3477, allocations: 0 / 338.6 MB, free: 5.672 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000187/0.3479, allocations: 35.97 kB / 338.7 MB, free: 5.637 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001812/0.3481, allocations: 60.75 kB / 338.7 MB, free: 5.574 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.835e-05/0.3481, allocations: 0 / 338.7 MB, free: 5.574 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001242/0.3494, allocations: 1.418 MB / 340.1 MB, free: 4.012 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.302e-06/0.3494, allocations: 0 / 340.1 MB, free: 4.012 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006896/0.3501, allocations: 354.2 kB / 340.5 MB, free: 3.645 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001264/0.3502, allocations: 124.7 kB / 340.6 MB, free: 3.504 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.951e-05/0.3503, allocations: 4 kB / 340.6 MB, free: 3.5 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001702/0.3504, allocations: 20.05 kB / 340.6 MB, free: 3.48 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.705e-05/0.3505, allocations: 35.89 kB / 340.7 MB, free: 3.445 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.38e-05/0.3506, allocations: 4 kB / 340.7 MB, free: 3.441 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.0001615/0.3507, allocations: 182 kB / 340.9 MB, free: 3.262 MB / 270.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3507, allocations: 0 / 340.9 MB, free: 3.262 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.000381/0.3511, allocations: 87.84 kB / 340.9 MB, free: 3.176 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.0001597/0.3513, allocations: 103.2 kB / 341 MB, free: 3.066 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.0006385/0.3519, allocations: 314.5 kB / 341.3 MB, free: 2.746 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.3519, allocations: 3.938 kB / 341.4 MB, free: 2.742 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003202/0.3523, allocations: 210.4 kB / 341.6 MB, free: 2.523 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002983/0.3526, allocations: 47.98 kB / 341.6 MB, free: 2.48 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001457/0.354, allocations: 0.7905 MB / 342.4 MB, free: 1.664 MB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002968/0.3544, allocations: 0.7792 MB / 343.2 MB, free: 0.8594 MB / 270.1 MB Notification: Performance of simCode: alias equations: time 0.0001106/0.3545, allocations: 22.3 kB / 343.2 MB, free: 0.8359 MB / 270.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.084e-05/0.3545, allocations: 27.42 kB / 343.2 MB, free: 0.8086 MB / 270.1 MB Notification: Performance of SimCode: time 2.31e-07/0.3545, allocations: 0 / 343.2 MB, free: 0.8086 MB / 270.1 MB Notification: Performance of Templates: time 0.006683/0.3612, allocations: 2.968 MB / 346.2 MB, free: 13.84 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)