Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,tolerance=1e-06,outputFormat="empty",numberOfIntervals=48000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc") translateModel(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,tolerance=1e-06,outputFormat="empty",numberOfIntervals=48000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001316/0.001316, allocations: 183.8 kB / 8.354 MB, free: 0.7305 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.481/1.481, allocations: 194.3 MB / 203.1 MB, free: 13.03 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001804/0.001804, allocations: 112.7 kB / 248.1 MB, free: 36 kB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 1.429e-05/1.424e-05, allocations: 7.938 kB / 298.1 MB, free: 35.5 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06681/0.06684, allocations: 44.49 MB / 342.6 MB, free: 6.996 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2791/0.346, allocations: 73.74 MB / 416.3 MB, free: 10.79 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001965/0.3463, allocations: 71.31 kB / 416.4 MB, free: 10.79 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01426/0.3605, allocations: 6.041 MB / 422.4 MB, free: 9.785 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.914e-06/0.3606, allocations: 0 / 422.4 MB, free: 9.785 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.809e-05/0.3606, allocations: 7.906 kB / 422.4 MB, free: 9.785 MB / 298.7 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.000786/0.3614, allocations: 0.5795 MB / 423 MB, free: 9.305 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.899e-05/0.3614, allocations: 7.406 kB / 423 MB, free: 9.305 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.194e-05/0.3615, allocations: 42.33 kB / 423.1 MB, free: 9.285 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002618/0.3618, allocations: 267 kB / 423.3 MB, free: 9.035 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.235e-05/0.3619, allocations: 75.58 kB / 423.4 MB, free: 8.965 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.919e-05/0.3619, allocations: 19.09 kB / 423.4 MB, free: 8.961 MB / 298.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002914/0.3622, allocations: 182.7 kB / 423.6 MB, free: 8.957 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003732/0.3626, allocations: 273 kB / 423.9 MB, free: 8.848 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.199e-05/0.3626, allocations: 0 / 423.9 MB, free: 8.848 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.745e-05/0.3627, allocations: 0 / 423.9 MB, free: 8.848 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.065e-06/0.3627, allocations: 7.719 kB / 423.9 MB, free: 8.848 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001431/0.3641, allocations: 1.319 MB / 425.2 MB, free: 7.898 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002211/0.3643, allocations: 148.3 kB / 425.3 MB, free: 7.867 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001011/0.3645, allocations: 76.67 kB / 425.4 MB, free: 7.855 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.056e-05/0.3645, allocations: 3.969 kB / 425.4 MB, free: 7.855 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002094/0.3647, allocations: 139.8 kB / 425.5 MB, free: 7.762 MB / 298.7 MB Notification: Performance of pre-optimization done (n=21): time 1.573e-06/0.3647, allocations: 0 / 425.5 MB, free: 7.762 MB / 298.7 MB Notification: Performance of matching and sorting (n=21): time 0.0004841/0.3652, allocations: 220 kB / 425.8 MB, free: 7.672 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.165e-05/0.3652, allocations: 110.6 kB / 425.9 MB, free: 7.543 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001447/0.3654, allocations: 186.5 kB / 426 MB, free: 7.441 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.987e-05/0.3654, allocations: 33.53 kB / 426.1 MB, free: 7.406 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.133e-05/0.3655, allocations: 205.9 kB / 426.3 MB, free: 7.246 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.101e-05/0.3656, allocations: 70.17 kB / 426.3 MB, free: 7.203 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.21e-05/0.3656, allocations: 0 / 426.3 MB, free: 7.203 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.602e-05/0.3656, allocations: 340.9 kB / 426.7 MB, free: 6.875 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.894e-05/0.3657, allocations: 57.03 kB / 426.7 MB, free: 6.875 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001231/0.3659, allocations: 158.9 kB / 426.9 MB, free: 6.758 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001043/0.366, allocations: 63.94 kB / 427 MB, free: 6.75 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.366, allocations: 3.844 kB / 427 MB, free: 6.75 MB / 298.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0004695/0.3665, allocations: 289.7 kB / 427.2 MB, free: 6.648 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.534e-05/0.3665, allocations: 7.688 kB / 427.3 MB, free: 6.648 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.671e-06/0.3665, allocations: 0 / 427.3 MB, free: 6.648 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002198/0.3667, allocations: 62.06 kB / 427.3 MB, free: 6.625 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002382/0.367, allocations: 58.19 kB / 427.4 MB, free: 6.613 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008377/0.3678, allocations: 1.377 MB / 428.7 MB, free: 5.277 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002258/0.3681, allocations: 34.67 kB / 428.8 MB, free: 5.262 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.939e-05/0.3681, allocations: 11.19 kB / 428.8 MB, free: 5.262 MB / 298.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: switch2.v:VARIABLE(unit = "V" ) "Voltage drop between the two pins (= p.v - n.v)" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition1,switch1.off,$PRE.switch2.off,switch2.off,$PRE.switch2.quenched,switch2.quenched,$PRE.switch2.tSwitch,switch2.tSwitch) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (36): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0001166/0.3682, allocations: 121.2 kB / 428.9 MB, free: 5.145 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.071e-05/0.3683, allocations: 27.3 kB / 428.9 MB, free: 5.129 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.372e-05/0.3683, allocations: 23.81 kB / 429 MB, free: 5.121 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.134e-06/0.3683, allocations: 3.812 kB / 429 MB, free: 5.121 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.264e-06/0.3683, allocations: 3.953 kB / 429 MB, free: 5.117 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.677e-06/0.3683, allocations: 3.984 kB / 429 MB, free: 5.113 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002137/0.3685, allocations: 283.4 kB / 429.2 MB, free: 4.906 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.723e-06/0.3686, allocations: 4 kB / 429.2 MB, free: 4.902 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001831/0.3687, allocations: 42.69 kB / 429.3 MB, free: 4.891 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001541/0.3689, allocations: 45.83 kB / 429.3 MB, free: 4.875 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.558e-05/0.3689, allocations: 3.984 kB / 429.3 MB, free: 4.871 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006786/0.3696, allocations: 1.279 MB / 430.6 MB, free: 3.633 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.974e-06/0.3696, allocations: 4.156 kB / 430.6 MB, free: 3.629 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004784/0.3701, allocations: 320.8 kB / 430.9 MB, free: 3.504 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.274e-05/0.3702, allocations: 103.6 kB / 431 MB, free: 3.398 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.435e-05/0.3703, allocations: 3.984 kB / 431 MB, free: 3.395 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001661/0.3704, allocations: 23.36 kB / 431.1 MB, free: 3.387 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.43e-05/0.3705, allocations: 26.52 kB / 431.1 MB, free: 3.375 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.491e-05/0.3705, allocations: 11.8 kB / 431.1 MB, free: 3.371 MB / 298.7 MB Notification: Performance of sorting global known variables: time 8.92e-05/0.3706, allocations: 148.5 kB / 431.2 MB, free: 3.285 MB / 298.7 MB Notification: Performance of sort global known variables: time 8.92e-07/0.3706, allocations: 0 / 431.2 MB, free: 3.285 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003842/0.371, allocations: 88.84 kB / 431.3 MB, free: 3.266 MB / 298.7 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) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001176/0.3711, allocations: 116.5 kB / 431.4 MB, free: 3.164 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003981/0.3716, allocations: 272.7 kB / 431.7 MB, free: 3.043 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.083e-06/0.3716, allocations: 0 / 431.7 MB, free: 3.043 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000188/0.3718, allocations: 184.1 kB / 431.9 MB, free: 2.926 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000186/0.372, allocations: 23.58 kB / 431.9 MB, free: 2.918 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001027/0.373, allocations: 486.2 kB / 432.4 MB, free: 2.625 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003099/0.3733, allocations: 0.7804 MB / 433.2 MB, free: 17.88 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0001052/0.3734, allocations: 19.89 kB / 433.2 MB, free: 17.87 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.964e-05/0.3735, allocations: 19.03 kB / 433.2 MB, free: 17.86 MB / 314.7 MB Notification: Performance of SimCode: time 2.71e-07/0.3735, allocations: 0 / 433.2 MB, free: 17.86 MB / 314.7 MB Notification: Performance of Templates: time 0.004713/0.3782, allocations: 2.373 MB / 435.6 MB, free: 16.69 MB / 314.7 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.sim & ./Modelica_3.2.2_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe 2>&1)