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.001221/0.001221, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001348/0.001348, allocations: 199.7 kB / 16.54 MB, free: 6.672 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.414/1.414, allocations: 205.1 MB / 222.4 MB, free: 4.625 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.001331/0.001331, allocations: 55.92 kB / 278.7 MB, free: 12.37 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2413/0.2426, allocations: 46.63 MB / 325.3 MB, free: 1.844 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.004176/0.2468, allocations: 2.827 MB / 328.1 MB, free: 15.6 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001684/0.2486, allocations: 0.7729 MB / 328.9 MB, free: 14.96 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002972/0.2489, allocations: 8 kB / 328.9 MB, free: 14.96 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001963/0.2491, allocations: 52.84 kB / 329 MB, free: 14.91 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002731/0.2494, allocations: 89.62 kB / 329.1 MB, free: 14.84 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000387/0.2498, allocations: 101.4 kB / 329.2 MB, free: 14.75 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005197/0.2503, allocations: 369.1 kB / 329.5 MB, free: 14.54 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002551/0.2506, allocations: 124.2 kB / 329.6 MB, free: 14.47 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002468/0.2509, allocations: 133.8 kB / 329.8 MB, free: 14.39 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002927/0.2512, allocations: 151.7 kB / 329.9 MB, free: 14.29 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 7.547e-05/0.2512, allocations: 29.69 kB / 329.9 MB, free: 14.29 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.675e-05/0.2513, allocations: 30.88 kB / 330 MB, free: 14.29 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 8.26e-05/0.2514, allocations: 73.17 kB / 330 MB, free: 14.23 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002398/0.2517, allocations: 160.6 kB / 330.2 MB, free: 14.12 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005235/0.2522, allocations: 355.1 kB / 330.5 MB, free: 13.86 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.687e-06/0.2522, allocations: 5.234 kB / 330.6 MB, free: 13.86 MB / 270.1 MB Notification: Performance of FrontEnd: time 3.146e-06/0.2522, allocations: 0 / 330.6 MB, free: 13.86 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.987e-05/0.2523, allocations: 7.938 kB / 330.6 MB, free: 13.85 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.001462/0.2537, allocations: 0.6073 MB / 331.2 MB, free: 13.31 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.728e-05/0.2538, allocations: 8.219 kB / 331.2 MB, free: 13.31 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001781/0.254, allocations: 35.5 kB / 331.2 MB, free: 13.29 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005509/0.2546, allocations: 265 kB / 331.5 MB, free: 13.02 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001289/0.2547, allocations: 85.3 kB / 331.6 MB, free: 12.94 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.417e-05/0.2548, allocations: 27.03 kB / 331.6 MB, free: 12.93 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007197/0.2555, allocations: 295.1 kB / 331.9 MB, free: 12.74 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.794e-05/0.2556, allocations: 0 / 331.9 MB, free: 12.74 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.861e-05/0.2556, allocations: 10.41 kB / 331.9 MB, free: 12.73 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.503e-05/0.2556, allocations: 11.64 kB / 331.9 MB, free: 12.73 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004593/0.2561, allocations: 193.6 kB / 332.1 MB, free: 12.64 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00222/0.2583, allocations: 1.129 MB / 333.2 MB, free: 11.65 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003377/0.2587, allocations: 158 kB / 333.4 MB, free: 11.56 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001813/0.2589, allocations: 75 kB / 333.4 MB, free: 11.52 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.465e-05/0.2589, allocations: 6.156 kB / 333.4 MB, free: 11.52 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004039/0.2593, allocations: 162.4 kB / 333.6 MB, free: 11.37 MB / 270.1 MB Notification: Performance of pre-optimization done (n=21): time 2.174e-06/0.2593, allocations: 0 / 333.6 MB, free: 11.37 MB / 270.1 MB Notification: Performance of matching and sorting (n=21): time 0.001171/0.2605, allocations: 387.1 kB / 334 MB, free: 10.96 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.169e-05/0.2606, allocations: 110.8 kB / 334.1 MB, free: 10.83 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000256/0.2609, allocations: 229 kB / 334.3 MB, free: 10.6 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 2.53e-05/0.2609, allocations: 29.7 kB / 334.3 MB, free: 10.56 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001116/0.261, allocations: 180.2 kB / 334.5 MB, free: 10.38 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.951e-05/0.2611, allocations: 59.11 kB / 334.6 MB, free: 10.32 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.984e-05/0.2612, allocations: 65.59 kB / 334.6 MB, free: 10.25 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001474/0.2614, allocations: 342.8 kB / 335 MB, free: 9.91 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000134/0.2615, allocations: 55.98 kB / 335 MB, free: 9.855 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001688/0.2617, allocations: 153.7 kB / 335.2 MB, free: 9.676 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000275/0.262, allocations: 184.2 kB / 335.4 MB, free: 9.473 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.126e-06/0.262, allocations: 4 kB / 335.4 MB, free: 9.469 MB / 270.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004918/0.2625, allocations: 279.6 kB / 335.6 MB, free: 9.188 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.773e-05/0.2625, allocations: 4 kB / 335.6 MB, free: 9.184 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.736e-06/0.2626, allocations: 4 kB / 335.6 MB, free: 9.18 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003172/0.2629, allocations: 61.03 kB / 335.7 MB, free: 9.117 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000206/0.2631, allocations: 47.92 kB / 335.7 MB, free: 9.07 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001443/0.2645, allocations: 1.572 MB / 337.3 MB, free: 7.363 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000244/0.2648, allocations: 35.83 kB / 337.4 MB, free: 7.328 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.857e-05/0.2648, allocations: 19.98 kB / 337.4 MB, free: 7.309 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,switch2.tSwitch,$PRE.switch2.tSwitch,switch2.quenched,$PRE.switch2.quenched,switch2.off,$PRE.switch2.off,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,$whenCondition1) * 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 (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.0001505/0.265, allocations: 145.7 kB / 337.5 MB, free: 7.156 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.046e-05/0.265, allocations: 19.81 kB / 337.5 MB, free: 7.137 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.923e-05/0.2651, allocations: 30.11 kB / 337.6 MB, free: 7.109 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.188e-06/0.2651, allocations: 4 kB / 337.6 MB, free: 7.105 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.286e-06/0.2651, allocations: 0 / 337.6 MB, free: 7.105 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.447e-06/0.2651, allocations: 0 / 337.6 MB, free: 7.105 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000342/0.2655, allocations: 321.3 kB / 337.9 MB, free: 6.742 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.005e-06/0.2655, allocations: 7.938 kB / 337.9 MB, free: 6.734 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001572/0.2656, allocations: 31.98 kB / 337.9 MB, free: 6.703 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001854/0.2658, allocations: 52.81 kB / 338 MB, free: 6.648 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.76e-05/0.2659, allocations: 3.984 kB / 338 MB, free: 6.645 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00118/0.2671, allocations: 1.422 MB / 339.4 MB, free: 5.082 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.957e-06/0.2671, allocations: 3.984 kB / 339.4 MB, free: 5.078 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005949/0.2677, allocations: 322.3 kB / 339.7 MB, free: 4.742 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001417/0.2678, allocations: 120.7 kB / 339.8 MB, free: 4.605 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.945e-05/0.2679, allocations: 8.125 kB / 339.8 MB, free: 4.598 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001686/0.2681, allocations: 19.98 kB / 339.9 MB, free: 4.578 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.405e-05/0.2681, allocations: 27.95 kB / 339.9 MB, free: 4.551 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.291e-05/0.2682, allocations: 8 kB / 339.9 MB, free: 4.543 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.0001467/0.2683, allocations: 160.5 kB / 340.1 MB, free: 4.387 MB / 270.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2683, allocations: 0 / 340.1 MB, free: 4.387 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0003611/0.2687, allocations: 79.84 kB / 340.1 MB, free: 4.309 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 (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.0001459/0.2688, allocations: 111.4 kB / 340.2 MB, free: 4.191 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.0006078/0.2695, allocations: 302.4 kB / 340.5 MB, free: 3.883 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.2695, allocations: 0 / 340.5 MB, free: 3.883 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002797/0.2698, allocations: 194.6 kB / 340.7 MB, free: 3.68 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003167/0.2701, allocations: 40.8 kB / 340.8 MB, free: 3.637 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001657/0.2718, allocations: 0.6629 MB / 341.4 MB, free: 2.945 MB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003518/0.2721, allocations: 0.7518 MB / 342.2 MB, free: 2.168 MB / 270.1 MB Notification: Performance of simCode: alias equations: time 0.0001123/0.2722, allocations: 26.28 kB / 342.2 MB, free: 2.141 MB / 270.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.982e-05/0.2723, allocations: 19.44 kB / 342.2 MB, free: 2.125 MB / 270.1 MB Notification: Performance of SimCode: time 2.31e-07/0.2723, allocations: 0 / 342.2 MB, free: 2.125 MB / 270.1 MB Notification: Performance of Templates: time 0.006777/0.2791, allocations: 3.048 MB / 345.3 MB, free: 15.08 MB / 286.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)