Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_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.2.2_Modelica.Electrical.Analog.Examples.SwitchWithArc") translateModel(Modelica.Electrical.Analog.Examples.SwitchWithArc,tolerance=1e-06,outputFormat="empty",numberOfIntervals=16000,variableFilter="",fileNamePrefix="Modelica_3.2.2_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.0008082/0.0008083, allocations: 87.34 kB / 16.31 MB, free: 6.453 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.00086/0.00086, allocations: 183.8 kB / 17.21 MB, free: 6.32 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.535/1.535, allocations: 205.4 MB / 223.4 MB, free: 5.262 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.0004778/0.0004778, allocations: 16 kB / 280.1 MB, free: 12.68 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2616/0.2621, allocations: 47.59 MB / 327.7 MB, free: 1.453 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.002437/0.2645, allocations: 2.398 MB / 330.1 MB, free: 15.56 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001355/0.2659, allocations: 0.7279 MB / 330.9 MB, free: 14.96 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001498/0.2661, allocations: 4.719 kB / 330.9 MB, free: 14.96 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001394/0.2662, allocations: 37.78 kB / 330.9 MB, free: 14.93 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001681/0.2664, allocations: 80.66 kB / 331 MB, free: 14.86 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000322/0.2667, allocations: 74.2 kB / 331.1 MB, free: 14.8 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003502/0.2671, allocations: 348.1 kB / 331.4 MB, free: 14.6 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002111/0.2673, allocations: 82.44 kB / 331.5 MB, free: 14.55 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001656/0.2675, allocations: 119.5 kB / 331.6 MB, free: 14.49 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000215/0.2677, allocations: 134.8 kB / 331.7 MB, free: 14.4 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 4.667e-05/0.2678, allocations: 19.81 kB / 331.7 MB, free: 14.39 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.293e-05/0.2678, allocations: 16.41 kB / 331.8 MB, free: 14.39 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 6.067e-05/0.2679, allocations: 53.81 kB / 331.8 MB, free: 14.35 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001073/0.268, allocations: 84.08 kB / 331.9 MB, free: 14.29 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003087/0.2683, allocations: 259.7 kB / 332.1 MB, free: 14.1 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.524e-06/0.2683, allocations: 1.281 kB / 332.1 MB, free: 14.1 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.2684, allocations: 0 / 332.1 MB, free: 14.1 MB / 270.1 MB Notification: Performance of Transformations before backend: time 5.981e-06/0.2684, allocations: 0 / 332.1 MB, free: 14.1 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.001061/0.2694, allocations: 0.5597 MB / 332.7 MB, free: 13.6 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.323e-05/0.2695, allocations: 8.875 kB / 332.7 MB, free: 13.6 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.762e-05/0.2696, allocations: 38.47 kB / 332.8 MB, free: 13.58 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003462/0.2699, allocations: 258.5 kB / 333 MB, free: 13.32 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.255e-05/0.27, allocations: 77.77 kB / 333.1 MB, free: 13.24 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.693e-05/0.2701, allocations: 27.44 kB / 333.1 MB, free: 13.23 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005391/0.2707, allocations: 291.8 kB / 333.4 MB, free: 13.04 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.479e-05/0.2707, allocations: 0 / 333.4 MB, free: 13.04 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.777e-05/0.2707, allocations: 19.62 kB / 333.4 MB, free: 13.03 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.288e-05/0.2707, allocations: 6.812 kB / 333.4 MB, free: 13.03 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003873/0.2711, allocations: 187.7 kB / 333.6 MB, free: 12.94 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001778/0.2729, allocations: 1.144 MB / 334.7 MB, free: 11.95 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003067/0.2732, allocations: 157.3 kB / 334.9 MB, free: 11.86 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001393/0.2734, allocations: 82.94 kB / 335 MB, free: 11.81 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.353e-05/0.2734, allocations: 2.031 kB / 335 MB, free: 11.81 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003093/0.2737, allocations: 159.9 kB / 335.1 MB, free: 11.68 MB / 270.1 MB Notification: Performance of pre-optimization done (n=21): time 1.453e-06/0.2738, allocations: 5.5 kB / 335.1 MB, free: 11.68 MB / 270.1 MB Notification: Performance of matching and sorting (n=21): time 0.001019/0.2748, allocations: 392.4 kB / 335.5 MB, free: 11.41 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.561e-05/0.2749, allocations: 110.8 kB / 335.6 MB, free: 11.28 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002212/0.2751, allocations: 220.9 kB / 335.9 MB, free: 11.05 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 2.82e-05/0.2751, allocations: 37.64 kB / 335.9 MB, free: 11.01 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001266/0.2753, allocations: 184.1 kB / 336.1 MB, free: 10.82 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.213e-05/0.2753, allocations: 74.95 kB / 336.1 MB, free: 10.75 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.517e-05/0.2754, allocations: 8 kB / 336.2 MB, free: 10.74 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001415/0.2755, allocations: 330.8 kB / 336.5 MB, free: 10.41 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001482/0.2757, allocations: 71.97 kB / 336.5 MB, free: 10.34 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001737/0.2758, allocations: 137.8 kB / 336.7 MB, free: 10.18 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001565/0.276, allocations: 85.83 kB / 336.8 MB, free: 10.09 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.344e-06/0.276, allocations: 0 / 336.8 MB, free: 10.09 MB / 270.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004679/0.2765, allocations: 264 kB / 337 MB, free: 9.828 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.99e-05/0.2765, allocations: 11.95 kB / 337 MB, free: 9.816 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.602e-06/0.2765, allocations: 224 / 337 MB, free: 9.816 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002787/0.2768, allocations: 56.81 kB / 337.1 MB, free: 9.758 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002263/0.2771, allocations: 59.91 kB / 337.1 MB, free: 9.699 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001344/0.2784, allocations: 1.401 MB / 338.5 MB, free: 8.168 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002169/0.2786, allocations: 43.83 kB / 338.6 MB, free: 8.125 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.975e-05/0.2787, allocations: 8 kB / 338.6 MB, free: 8.117 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.0001643/0.2788, allocations: 153.7 kB / 338.7 MB, free: 7.957 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.434e-05/0.2789, allocations: 19.81 kB / 338.8 MB, free: 7.938 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.176e-05/0.2789, allocations: 26.17 kB / 338.8 MB, free: 7.914 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.707e-06/0.2789, allocations: 4 kB / 338.8 MB, free: 7.91 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.124e-06/0.279, allocations: 4 kB / 338.8 MB, free: 7.906 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.292e-06/0.279, allocations: 3.984 kB / 338.8 MB, free: 7.902 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003439/0.2793, allocations: 325.3 kB / 339.1 MB, free: 7.535 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.783e-06/0.2793, allocations: 0 / 339.1 MB, free: 7.535 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001618/0.2795, allocations: 35.98 kB / 339.2 MB, free: 7.5 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001703/0.2797, allocations: 52.81 kB / 339.2 MB, free: 7.445 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.197e-05/0.2797, allocations: 7.984 kB / 339.2 MB, free: 7.438 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001135/0.2808, allocations: 1.319 MB / 340.5 MB, free: 5.98 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.2809, allocations: 0 / 340.5 MB, free: 5.98 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006109/0.2815, allocations: 338.3 kB / 340.9 MB, free: 5.629 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001043/0.2816, allocations: 116.7 kB / 341 MB, free: 5.496 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.401e-05/0.2816, allocations: 4 kB / 341 MB, free: 5.492 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001553/0.2818, allocations: 19.98 kB / 341 MB, free: 5.473 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.191e-05/0.2819, allocations: 35.94 kB / 341 MB, free: 5.438 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.31e-05/0.2819, allocations: 4 kB / 341 MB, free: 5.434 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.0001422/0.2821, allocations: 168.5 kB / 341.2 MB, free: 5.266 MB / 270.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2821, allocations: 0 / 341.2 MB, free: 5.266 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0003596/0.2824, allocations: 79.84 kB / 341.3 MB, free: 5.188 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.0001502/0.2826, allocations: 107.2 kB / 341.4 MB, free: 5.074 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.0005389/0.2831, allocations: 286.6 kB / 341.7 MB, free: 4.781 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.2831, allocations: 7.875 kB / 341.7 MB, free: 4.773 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002609/0.2834, allocations: 195 kB / 341.9 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.0003016/0.2837, allocations: 36.38 kB / 341.9 MB, free: 4.535 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001525/0.2853, allocations: 0.8145 MB / 342.7 MB, free: 3.695 MB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003172/0.2856, allocations: 0.7676 MB / 343.5 MB, free: 2.902 MB / 270.1 MB Notification: Performance of simCode: alias equations: time 9.925e-05/0.2857, allocations: 22.3 kB / 343.5 MB, free: 2.883 MB / 270.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.021e-05/0.2858, allocations: 19.44 kB / 343.5 MB, free: 2.863 MB / 270.1 MB Notification: Performance of SimCode: time 2.2e-07/0.2858, allocations: 0 / 343.5 MB, free: 2.863 MB / 270.1 MB Notification: Performance of Templates: time 0.006033/0.2918, allocations: 2.645 MB / 346.2 MB, free: 228 kB / 270.1 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Analog.Examples.SwitchWithArc.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Analog.Examples.SwitchWithArc.sim & ./Modelica_3.2.2_Modelica.Electrical.Analog.Examples.SwitchWithArc -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe 2>&1)