Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Electrical.Analog.Examples.SwitchWithArc.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.SwitchWithArc,tolerance=1e-06,outputFormat="empty",numberOfIntervals=16000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Analog.Examples.SwitchWithArc") translateModel(Modelica.Electrical.Analog.Examples.SwitchWithArc,tolerance=1e-06,outputFormat="empty",numberOfIntervals=16000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Analog.Examples.SwitchWithArc") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001122/0.001122, allocations: 92.16 kB / 15.06 MB, free: 1.098 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.001389/0.001389, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.527/1.527, allocations: 205.4 MB / 222.1 MB, free: 5.527 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.0004507/0.0004509, allocations: 8 kB / 278.9 MB, free: 12.71 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2516/0.252, allocations: 47.58 MB / 326.5 MB, free: 1.438 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.002345/0.2544, allocations: 2.401 MB / 328.9 MB, free: 15.54 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001165/0.2556, allocations: 0.7403 MB / 329.6 MB, free: 14.93 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001274/0.2558, allocations: 4.656 kB / 329.6 MB, free: 14.93 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001376/0.2559, allocations: 36.97 kB / 329.7 MB, free: 14.9 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001511/0.2561, allocations: 74.23 kB / 329.7 MB, free: 14.84 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002908/0.2564, allocations: 81.06 kB / 329.8 MB, free: 14.77 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003704/0.2567, allocations: 343.1 kB / 330.1 MB, free: 14.57 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002032/0.257, allocations: 88.28 kB / 330.2 MB, free: 14.52 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000137/0.2571, allocations: 119 kB / 330.3 MB, free: 14.46 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001716/0.2573, allocations: 126.5 kB / 330.5 MB, free: 14.38 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 3.675e-05/0.2573, allocations: 16.06 kB / 330.5 MB, free: 14.38 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.442e-05/0.2574, allocations: 16.84 kB / 330.5 MB, free: 14.38 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 6.26e-05/0.2574, allocations: 57.02 kB / 330.6 MB, free: 14.33 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 7.725e-05/0.2575, allocations: 80.39 kB / 330.6 MB, free: 14.27 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002418/0.2578, allocations: 264.9 kB / 330.9 MB, free: 14.08 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.999e-06/0.2578, allocations: 0 / 330.9 MB, free: 14.08 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.372e-06/0.2578, allocations: 0 / 330.9 MB, free: 14.08 MB / 270.1 MB Notification: Performance of Transformations before backend: time 4.98e-06/0.2578, allocations: 0 / 330.9 MB, free: 14.08 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: 71 * Number of variables: 71 Notification: Performance of Generate backend data structure: time 0.0008688/0.2587, allocations: 0.5604 MB / 331.5 MB, free: 13.58 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.681e-05/0.2587, allocations: 8.812 kB / 331.5 MB, free: 13.58 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.597e-05/0.2588, allocations: 37.17 kB / 331.5 MB, free: 13.56 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000284/0.2591, allocations: 251.3 kB / 331.7 MB, free: 13.3 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.654e-05/0.2592, allocations: 77.39 kB / 331.8 MB, free: 13.23 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.905e-05/0.2592, allocations: 35.53 kB / 331.9 MB, free: 13.21 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005397/0.2598, allocations: 295.2 kB / 332.1 MB, free: 13.02 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.161e-05/0.2598, allocations: 9.266 kB / 332.2 MB, free: 13.01 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.307e-05/0.2598, allocations: 10.75 kB / 332.2 MB, free: 13 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.484e-05/0.2599, allocations: 7.312 kB / 332.2 MB, free: 13 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003848/0.2603, allocations: 191.2 kB / 332.4 MB, free: 12.91 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001631/0.2619, allocations: 1.14 MB / 333.5 MB, free: 11.92 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002736/0.2622, allocations: 149.3 kB / 333.6 MB, free: 11.84 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001316/0.2623, allocations: 87.33 kB / 333.7 MB, free: 11.79 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.181e-05/0.2624, allocations: 1.969 kB / 333.7 MB, free: 11.79 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002812/0.2626, allocations: 160.2 kB / 333.9 MB, free: 11.66 MB / 270.1 MB Notification: Performance of pre-optimization done (n=21): time 1.433e-06/0.2627, allocations: 0 / 333.9 MB, free: 11.66 MB / 270.1 MB Notification: Performance of matching and sorting (n=21): time 0.0009465/0.2636, allocations: 396.9 kB / 334.3 MB, free: 11.4 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.938e-05/0.2637, allocations: 114.5 kB / 334.4 MB, free: 11.27 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002187/0.2639, allocations: 227.5 kB / 334.6 MB, free: 11.04 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 2.605e-05/0.264, allocations: 29.7 kB / 334.6 MB, free: 11 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001147/0.2641, allocations: 184 kB / 334.8 MB, free: 10.82 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.826e-05/0.2642, allocations: 71.08 kB / 334.9 MB, free: 10.75 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.472e-05/0.2642, allocations: 8 kB / 334.9 MB, free: 10.74 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001299/0.2643, allocations: 334.8 kB / 335.2 MB, free: 10.4 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000126/0.2644, allocations: 59.97 kB / 335.3 MB, free: 10.34 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001595/0.2646, allocations: 149.8 kB / 335.4 MB, free: 10.17 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000139/0.2648, allocations: 77.8 kB / 335.5 MB, free: 10.09 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.2648, allocations: 4.031 kB / 335.5 MB, free: 10.09 MB / 270.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0003991/0.2652, allocations: 267.9 kB / 335.8 MB, free: 9.82 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.543e-05/0.2652, allocations: 7.953 kB / 335.8 MB, free: 9.812 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.42e-06/0.2652, allocations: 4 kB / 335.8 MB, free: 9.809 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002382/0.2654, allocations: 61.03 kB / 335.8 MB, free: 9.746 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002003/0.2657, allocations: 51.91 kB / 335.9 MB, free: 9.695 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001229/0.2669, allocations: 1.404 MB / 337.3 MB, free: 8.16 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002001/0.2671, allocations: 39.86 kB / 337.3 MB, free: 8.121 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.061e-05/0.2671, allocations: 16 kB / 337.3 MB, free: 8.105 MB / 270.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition2,$whenCondition1,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart,$PRE.switch2.off,switch2.off,$PRE.switch2.quenched,switch2.quenched,$PRE.switch2.tSwitch,switch2.tSwitch) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (34): * Single equations (assignments): 33 * 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.0001521/0.2673, allocations: 153.7 kB / 337.5 MB, free: 7.945 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.854e-05/0.2673, allocations: 15.81 kB / 337.5 MB, free: 7.93 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.086e-05/0.2674, allocations: 34.17 kB / 337.5 MB, free: 7.898 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.034e-06/0.2674, allocations: 0 / 337.5 MB, free: 7.898 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.813e-06/0.2674, allocations: 0 / 337.5 MB, free: 7.898 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.477e-06/0.2674, allocations: 0 / 337.5 MB, free: 7.898 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003305/0.2677, allocations: 321.3 kB / 337.9 MB, free: 7.535 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.2678, allocations: 8 kB / 337.9 MB, free: 7.527 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001562/0.2679, allocations: 35.91 kB / 337.9 MB, free: 7.492 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001672/0.2681, allocations: 52.81 kB / 338 MB, free: 7.438 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.702e-05/0.2681, allocations: 4 kB / 338 MB, free: 7.434 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001048/0.2692, allocations: 1.319 MB / 339.3 MB, free: 5.977 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.444e-06/0.2692, allocations: 8.094 kB / 339.3 MB, free: 5.969 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005749/0.2698, allocations: 330.3 kB / 339.6 MB, free: 5.625 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.476e-05/0.2699, allocations: 116.8 kB / 339.7 MB, free: 5.492 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.256e-05/0.2699, allocations: 4 kB / 339.7 MB, free: 5.488 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001478/0.2701, allocations: 24.05 kB / 339.7 MB, free: 5.465 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.102e-05/0.2702, allocations: 31.94 kB / 339.8 MB, free: 5.434 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.29e-05/0.2702, allocations: 4 kB / 339.8 MB, free: 5.43 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.0001508/0.2703, allocations: 164.5 kB / 339.9 MB, free: 5.266 MB / 270.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2703, allocations: 0 / 339.9 MB, free: 5.266 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0003435/0.2707, allocations: 75.84 kB / 340 MB, free: 5.191 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: 6 ($whenCondition2,$whenCondition1,booleanPulse.pulseStart,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): 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.0001322/0.2708, allocations: 115.2 kB / 340.1 MB, free: 5.07 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.0004711/0.2713, allocations: 286.6 kB / 340.4 MB, free: 4.777 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.2713, allocations: 0 / 340.4 MB, free: 4.777 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002461/0.2716, allocations: 198.5 kB / 340.6 MB, free: 4.57 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003124/0.2719, allocations: 40.81 kB / 340.6 MB, free: 4.531 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001456/0.2734, allocations: 0.8143 MB / 341.5 MB, free: 3.691 MB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000303/0.2737, allocations: 0.756 MB / 342.2 MB, free: 2.91 MB / 270.1 MB Notification: Performance of simCode: alias equations: time 9.685e-05/0.2738, allocations: 22.3 kB / 342.2 MB, free: 2.891 MB / 270.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.927e-05/0.2738, allocations: 19.44 kB / 342.3 MB, free: 2.871 MB / 270.1 MB Notification: Performance of SimCode: time 2.31e-07/0.2738, allocations: 0 / 342.3 MB, free: 2.871 MB / 270.1 MB Notification: Performance of Templates: time 0.006536/0.2804, allocations: 2.649 MB / 344.9 MB, free: 228 kB / 270.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Analog.Examples.SwitchWithArc.makefile (rm -f Modelica_3.1_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Analog.Examples.SwitchWithArc.sim & ./Modelica_3.1_Modelica.Electrical.Analog.Examples.SwitchWithArc -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe 2>&1)