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.00098/0.0009799, allocations: 91.84 kB / 15.36 MB, free: 0.7344 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.008025/0.008025, allocations: 169.4 kB / 16.26 MB, free: 6.68 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.565/1.565, allocations: 205.4 MB / 222.5 MB, free: 5.789 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.0004321/0.0004321, allocations: 11.94 kB / 279.4 MB, free: 12.74 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2392/0.2397, allocations: 47.58 MB / 327 MB, free: 1.379 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.00267/0.2424, allocations: 2.497 MB / 329.5 MB, free: 15.39 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001344/0.2438, allocations: 0.7663 MB / 330.3 MB, free: 14.76 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001496/0.244, allocations: 4.719 kB / 330.3 MB, free: 14.76 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001487/0.2441, allocations: 41.19 kB / 330.3 MB, free: 14.73 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001718/0.2443, allocations: 73.61 kB / 330.4 MB, free: 14.66 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003144/0.2446, allocations: 80.55 kB / 330.5 MB, free: 14.6 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003975/0.245, allocations: 358.2 kB / 330.8 MB, free: 14.39 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002518/0.2453, allocations: 96.56 kB / 330.9 MB, free: 14.33 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001508/0.2454, allocations: 123.3 kB / 331.1 MB, free: 14.27 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001942/0.2456, allocations: 135.5 kB / 331.2 MB, free: 14.18 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 4.114e-05/0.2457, allocations: 16.06 kB / 331.2 MB, free: 14.18 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.611e-05/0.2457, allocations: 15.94 kB / 331.2 MB, free: 14.18 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 6.154e-05/0.2458, allocations: 52.89 kB / 331.3 MB, free: 14.13 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001883/0.246, allocations: 174.5 kB / 331.4 MB, free: 14.01 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003292/0.2463, allocations: 333.9 kB / 331.8 MB, free: 13.77 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.2464, allocations: 0.9062 kB / 331.8 MB, free: 13.77 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.064e-06/0.2464, allocations: 0 / 331.8 MB, free: 13.77 MB / 270.1 MB Notification: Performance of Transformations before backend: time 6.142e-06/0.2464, allocations: 4 kB / 331.8 MB, free: 13.76 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.0009851/0.2474, allocations: 0.561 MB / 332.3 MB, free: 13.26 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.194e-05/0.2474, allocations: 9.219 kB / 332.3 MB, free: 13.26 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.832e-05/0.2475, allocations: 34.66 kB / 332.4 MB, free: 13.24 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003229/0.2478, allocations: 265.4 kB / 332.6 MB, free: 12.97 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.161e-05/0.2479, allocations: 82.27 kB / 332.7 MB, free: 12.89 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.495e-05/0.248, allocations: 27.12 kB / 332.7 MB, free: 12.89 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005089/0.2485, allocations: 298.1 kB / 333 MB, free: 12.69 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.223e-05/0.2486, allocations: 4 kB / 333 MB, free: 12.69 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.358e-05/0.2486, allocations: 16.27 kB / 333 MB, free: 12.68 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.13e-05/0.2486, allocations: 9.844 kB / 333.1 MB, free: 12.67 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003535/0.249, allocations: 186.5 kB / 333.2 MB, free: 12.59 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001802/0.2508, allocations: 1.152 MB / 334.4 MB, free: 11.59 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003213/0.2511, allocations: 157.6 kB / 334.5 MB, free: 11.5 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001325/0.2513, allocations: 75.62 kB / 334.6 MB, free: 11.46 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.774e-05/0.2513, allocations: 2.344 kB / 334.6 MB, free: 11.46 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002809/0.2516, allocations: 158.7 kB / 334.8 MB, free: 11.33 MB / 270.1 MB Notification: Performance of pre-optimization done (n=21): time 1.312e-06/0.2516, allocations: 0.9688 kB / 334.8 MB, free: 11.33 MB / 270.1 MB Notification: Performance of matching and sorting (n=21): time 0.001013/0.2526, allocations: 403.3 kB / 335.2 MB, free: 10.98 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.334e-05/0.2527, allocations: 106.8 kB / 335.3 MB, free: 10.86 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002177/0.2529, allocations: 232.9 kB / 335.5 MB, free: 10.62 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 2.58e-05/0.2529, allocations: 29.7 kB / 335.5 MB, free: 10.58 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001124/0.2531, allocations: 176.2 kB / 335.7 MB, free: 10.41 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.678e-05/0.2531, allocations: 67.09 kB / 335.8 MB, free: 10.34 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.137e-05/0.2532, allocations: 37.7 kB / 335.8 MB, free: 10.3 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001384/0.2533, allocations: 338.8 kB / 336.1 MB, free: 9.957 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001193/0.2535, allocations: 67.97 kB / 336.2 MB, free: 9.891 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001733/0.2536, allocations: 137.8 kB / 336.3 MB, free: 9.727 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002742/0.2539, allocations: 196.9 kB / 336.5 MB, free: 9.512 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.2539, allocations: 4 kB / 336.5 MB, free: 9.508 MB / 270.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004111/0.2544, allocations: 267.7 kB / 336.8 MB, free: 9.238 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.854e-05/0.2544, allocations: 4 kB / 336.8 MB, free: 9.234 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.645e-06/0.2544, allocations: 4 kB / 336.8 MB, free: 9.23 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002795/0.2547, allocations: 61.03 kB / 336.9 MB, free: 9.168 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002057/0.2549, allocations: 51.91 kB / 336.9 MB, free: 9.117 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001197/0.2561, allocations: 1.412 MB / 338.3 MB, free: 7.574 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002226/0.2563, allocations: 39.77 kB / 338.4 MB, free: 7.535 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.438e-05/0.2564, allocations: 16.09 kB / 338.4 MB, free: 7.52 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.0001386/0.2565, allocations: 145.7 kB / 338.5 MB, free: 7.367 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.411e-05/0.2566, allocations: 23.66 kB / 338.5 MB, free: 7.344 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.661e-05/0.2566, allocations: 34.17 kB / 338.6 MB, free: 7.312 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.874e-06/0.2566, allocations: 0 / 338.6 MB, free: 7.312 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.056e-06/0.2566, allocations: 0 / 338.6 MB, free: 7.312 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.62e-06/0.2566, allocations: 4 kB / 338.6 MB, free: 7.309 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002935/0.2569, allocations: 309.5 kB / 338.9 MB, free: 6.957 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.2569, allocations: 8 kB / 338.9 MB, free: 6.949 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001558/0.2571, allocations: 35.86 kB / 338.9 MB, free: 6.914 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000185/0.2573, allocations: 52.81 kB / 339 MB, free: 6.859 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.532e-05/0.2573, allocations: 4 kB / 339 MB, free: 6.855 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009726/0.2583, allocations: 1.327 MB / 340.3 MB, free: 5.391 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.2583, allocations: 4.156 kB / 340.3 MB, free: 5.387 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005735/0.2589, allocations: 330.2 kB / 340.6 MB, free: 5.043 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.446e-05/0.259, allocations: 116.8 kB / 340.8 MB, free: 4.91 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.005e-05/0.259, allocations: 3.938 kB / 340.8 MB, free: 4.906 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001652/0.2592, allocations: 32.05 kB / 340.8 MB, free: 4.875 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.79e-05/0.2593, allocations: 35.92 kB / 340.8 MB, free: 4.84 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.336e-05/0.2593, allocations: 7.938 kB / 340.8 MB, free: 4.832 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.0001264/0.2595, allocations: 156.5 kB / 341 MB, free: 4.68 MB / 270.1 MB Notification: Performance of sort global known variables: time 3.126e-06/0.2595, allocations: 4 kB / 341 MB, free: 4.676 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0003479/0.2598, allocations: 83.77 kB / 341.1 MB, free: 4.594 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.0001302/0.26, allocations: 107.4 kB / 341.2 MB, free: 4.48 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.0004995/0.2605, allocations: 286.5 kB / 341.5 MB, free: 4.188 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.2605, allocations: 0 / 341.5 MB, free: 4.188 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002493/0.2607, allocations: 186.6 kB / 341.6 MB, free: 3.992 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003059/0.261, allocations: 44.78 kB / 341.7 MB, free: 3.945 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001533/0.2626, allocations: 0.832 MB / 342.5 MB, free: 3.09 MB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002791/0.2629, allocations: 0.7599 MB / 343.3 MB, free: 2.305 MB / 270.1 MB Notification: Performance of simCode: alias equations: time 9.745e-05/0.263, allocations: 22.3 kB / 343.3 MB, free: 2.281 MB / 270.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.682e-05/0.263, allocations: 19.44 kB / 343.3 MB, free: 2.266 MB / 270.1 MB Notification: Performance of SimCode: time 2.41e-07/0.263, allocations: 0 / 343.3 MB, free: 2.266 MB / 270.1 MB Notification: Performance of Templates: time 0.006111/0.2692, allocations: 2.751 MB / 346.1 MB, free: 15.51 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)