Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.Analog.Examples.SwitchWithArc.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.SwitchWithArc,tolerance=1e-06,outputFormat="empty",numberOfIntervals=16000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Analog.Examples.SwitchWithArc") translateModel(Modelica.Electrical.Analog.Examples.SwitchWithArc,tolerance=1e-06,outputFormat="empty",numberOfIntervals=16000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Analog.Examples.SwitchWithArc") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.001219/0.001218, allocations: 164.4 kB / 7.635 MB, free: 1.418 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.35/1.35, allocations: 170.7 MB / 178.7 MB, free: 15.64 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001681/0.001681, allocations: 115.4 kB / 218 MB, free: 8.406 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.284e-05/2.286e-05, allocations: 4 kB / 262.2 MB, free: 26.39 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.109/0.109, allocations: 38.77 MB / 301 MB, free: 3.633 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3317/0.4407, allocations: 67.7 MB / 368.7 MB, free: 0.625 MB / 250.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000294/0.4411, allocations: 72.89 kB / 368.8 MB, free: 0.5859 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01432/0.4554, allocations: 5.307 MB / 374.1 MB, free: 12.14 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.943e-06/0.4555, allocations: 0 / 374.1 MB, free: 12.14 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.718e-05/0.4555, allocations: 4 kB / 374.1 MB, free: 12.14 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 71 * Number of variables: 71 Notification: Performance of Generate backend data structure: time 0.0008229/0.4564, allocations: 0.533 MB / 374.6 MB, free: 11.59 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.518e-05/0.4564, allocations: 12.03 kB / 374.6 MB, free: 11.57 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.695e-05/0.4565, allocations: 31.62 kB / 374.6 MB, free: 11.54 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000292/0.4568, allocations: 248.6 kB / 374.9 MB, free: 11.28 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.33e-05/0.4569, allocations: 72.14 kB / 375 MB, free: 11.2 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.706e-05/0.457, allocations: 19.44 kB / 375 MB, free: 11.18 MB / 266.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003405/0.4573, allocations: 169.1 kB / 375.1 MB, free: 11.07 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004161/0.4578, allocations: 246.3 kB / 375.4 MB, free: 10.88 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.786e-05/0.4578, allocations: 3.938 kB / 375.4 MB, free: 10.87 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.772e-05/0.4578, allocations: 0 / 375.4 MB, free: 10.87 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.043e-05/0.4579, allocations: 8 kB / 375.4 MB, free: 10.86 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001612/0.4595, allocations: 1.083 MB / 376.5 MB, free: 9.859 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002498/0.4597, allocations: 151.5 kB / 376.6 MB, free: 9.75 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001044/0.4598, allocations: 68.92 kB / 376.7 MB, free: 9.707 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.065e-05/0.4599, allocations: 7.938 kB / 376.7 MB, free: 9.699 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002521/0.4601, allocations: 149.4 kB / 376.8 MB, free: 9.555 MB / 266.7 MB Notification: Performance of pre-optimization done (n=21): time 1.353e-06/0.4602, allocations: 0 / 376.8 MB, free: 9.555 MB / 266.7 MB Notification: Performance of matching and sorting (n=21): time 0.0005674/0.4607, allocations: 203 kB / 377 MB, free: 9.383 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.656e-05/0.4608, allocations: 109.4 kB / 377.2 MB, free: 9.254 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001828/0.461, allocations: 170.2 kB / 377.3 MB, free: 9.102 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.912e-05/0.461, allocations: 29.7 kB / 377.3 MB, free: 9.066 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001123/0.4612, allocations: 170.9 kB / 377.5 MB, free: 8.918 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.695e-05/0.4612, allocations: 65.42 kB / 377.6 MB, free: 8.863 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.143e-05/0.4612, allocations: 0 / 377.6 MB, free: 8.863 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001079/0.4613, allocations: 337.1 kB / 377.9 MB, free: 8.535 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.132e-05/0.4614, allocations: 55.88 kB / 378 MB, free: 8.5 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001255/0.4616, allocations: 110.9 kB / 378.1 MB, free: 8.395 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001098/0.4617, allocations: 72.67 kB / 378.1 MB, free: 8.348 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.4617, allocations: 0 / 378.1 MB, free: 8.348 MB / 266.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.000335/0.462, allocations: 224.3 kB / 378.4 MB, free: 8.164 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.276e-05/0.4621, allocations: 15.86 kB / 378.4 MB, free: 8.148 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.913e-06/0.4621, allocations: 0 / 378.4 MB, free: 8.148 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002574/0.4624, allocations: 54.67 kB / 378.4 MB, free: 8.102 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002198/0.4626, allocations: 51.28 kB / 378.5 MB, free: 8.055 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001175/0.4638, allocations: 1.366 MB / 379.8 MB, free: 6.637 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002208/0.464, allocations: 35.89 kB / 379.9 MB, free: 6.602 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.061e-05/0.464, allocations: 8 kB / 379.9 MB, free: 6.594 MB / 266.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: 6 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition2,$whenCondition1,$PRE.booleanPulse.pulsStart,booleanPulse.pulsStart,$PRE.switch2.off,switch2.off,$PRE.switch2.tSwitch,switch2.tSwitch,$PRE.switch2.quenched,switch2.quenched) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (32): * Single equations (assignments): 31 * 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.0001486/0.4642, allocations: 118.5 kB / 380 MB, free: 6.477 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.875e-05/0.4642, allocations: 23.77 kB / 380 MB, free: 6.453 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.539e-05/0.4643, allocations: 24.2 kB / 380 MB, free: 6.434 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.613e-06/0.4643, allocations: 0 / 380 MB, free: 6.434 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.235e-06/0.4643, allocations: 0 / 380 MB, free: 6.434 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.948e-06/0.4643, allocations: 4 kB / 380.1 MB, free: 6.43 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002865/0.4646, allocations: 277.2 kB / 380.3 MB, free: 6.164 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.934e-06/0.4646, allocations: 4 kB / 380.3 MB, free: 6.16 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001714/0.4648, allocations: 35.88 kB / 380.4 MB, free: 6.125 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002069/0.465, allocations: 55.88 kB / 380.4 MB, free: 6.078 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.935e-05/0.4651, allocations: 4 kB / 380.4 MB, free: 6.074 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001025/0.4661, allocations: 1.283 MB / 381.7 MB, free: 4.734 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.201e-05/0.4661, allocations: 3.984 kB / 381.7 MB, free: 4.73 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005671/0.4667, allocations: 307 kB / 382 MB, free: 4.477 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.474e-05/0.4668, allocations: 108.2 kB / 382.1 MB, free: 4.359 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.422e-05/0.4668, allocations: 7.984 kB / 382.1 MB, free: 4.352 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00016/0.467, allocations: 15.98 kB / 382.1 MB, free: 4.336 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.434e-05/0.4671, allocations: 31.88 kB / 382.2 MB, free: 4.309 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.33e-05/0.4671, allocations: 7.562 kB / 382.2 MB, free: 4.305 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001046/0.4672, allocations: 128.6 kB / 382.3 MB, free: 4.195 MB / 266.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4672, allocations: 0 / 382.3 MB, free: 4.195 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000383/0.4676, allocations: 79.69 kB / 382.4 MB, free: 4.117 MB / 266.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: 6 ($whenCondition2,$whenCondition1,booleanPulse.pulsStart,switch2.off,switch2.tSwitch,switch2.quenched) * Number of discrete states: 2 (switch2.quenched,switch2.off) * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0001879/0.4678, allocations: 111.2 kB / 382.5 MB, free: 4.004 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004622/0.4683, allocations: 249.9 kB / 382.7 MB, free: 3.797 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.896e-06/0.4683, allocations: 0 / 382.7 MB, free: 3.797 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002323/0.4686, allocations: 182.1 kB / 382.9 MB, free: 3.633 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002401/0.4688, allocations: 27.42 kB / 382.9 MB, free: 3.613 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001438/0.4703, allocations: 0.4924 MB / 383.4 MB, free: 3.129 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003729/0.4706, allocations: 0.7633 MB / 384.2 MB, free: 2.34 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001011/0.4708, allocations: 26 kB / 384.2 MB, free: 2.316 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.219e-05/0.4708, allocations: 19.44 kB / 384.2 MB, free: 2.297 MB / 266.7 MB Notification: Performance of SimCode: time 2.71e-07/0.4708, allocations: 0 / 384.2 MB, free: 2.297 MB / 266.7 MB Notification: Performance of Templates: time 0.005673/0.4765, allocations: 2.353 MB / 386.6 MB, free: 15.95 MB / 282.7 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Analog.Examples.SwitchWithArc.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Analog.Examples.SwitchWithArc.sim & ./Modelica_3.2.1_Modelica.Electrical.Analog.Examples.SwitchWithArc -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe 2>&1)