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/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001068/0.001068, allocations: 99.86 kB / 15.05 MB, free: 1.105 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.001171/0.001172, allocations: 177.3 kB / 15.94 MB, free: 228 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.546/1.546, allocations: 205.4 MB / 222.1 MB, free: 5.5 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.0004494/0.0004494, allocations: 12 kB / 278.9 MB, free: 12.72 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2406/0.241, allocations: 47.58 MB / 326.4 MB, free: 1.453 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.002657/0.2438, allocations: 2.273 MB / 328.7 MB, free: 15.67 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001273/0.2451, allocations: 0.759 MB / 329.5 MB, free: 15.06 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000132/0.2452, allocations: 4.75 kB / 329.5 MB, free: 15.06 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 7.128e-05/0.2453, allocations: 31.56 kB / 329.5 MB, free: 15.03 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002321/0.2455, allocations: 109.4 kB / 329.6 MB, free: 14.94 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003091/0.2458, allocations: 73.5 kB / 329.7 MB, free: 14.88 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003412/0.2462, allocations: 261.7 kB / 329.9 MB, free: 14.71 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002218/0.2464, allocations: 86.88 kB / 330 MB, free: 14.66 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001487/0.2466, allocations: 117.1 kB / 330.1 MB, free: 14.6 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001914/0.2468, allocations: 127.2 kB / 330.3 MB, free: 14.52 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 4.511e-05/0.2468, allocations: 16.03 kB / 330.3 MB, free: 14.52 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.263e-05/0.2469, allocations: 17.03 kB / 330.3 MB, free: 14.52 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 5.714e-05/0.247, allocations: 56.22 kB / 330.4 MB, free: 14.47 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 8.401e-05/0.247, allocations: 81.08 kB / 330.4 MB, free: 14.42 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002578/0.2473, allocations: 257.9 kB / 330.7 MB, free: 14.23 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.615e-06/0.2473, allocations: 1.062 kB / 330.7 MB, free: 14.23 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.144e-06/0.2473, allocations: 4 kB / 330.7 MB, free: 14.22 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.034e-05/0.2473, allocations: 0 / 330.7 MB, free: 14.22 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.001016/0.2484, allocations: 0.5628 MB / 331.3 MB, free: 13.72 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.331e-05/0.2484, allocations: 13.88 kB / 331.3 MB, free: 13.71 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.172e-05/0.2485, allocations: 33.03 kB / 331.3 MB, free: 13.7 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003104/0.2488, allocations: 255.7 kB / 331.5 MB, free: 13.44 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.023e-05/0.2489, allocations: 77.73 kB / 331.6 MB, free: 13.36 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.087e-05/0.249, allocations: 26.66 kB / 331.6 MB, free: 13.36 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004946/0.2495, allocations: 301.6 kB / 331.9 MB, free: 13.15 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.378e-05/0.2495, allocations: 3.984 kB / 331.9 MB, free: 13.15 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.252e-05/0.2496, allocations: 11.97 kB / 332 MB, free: 13.14 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.07e-05/0.2496, allocations: 7.594 kB / 332 MB, free: 13.14 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003357/0.2499, allocations: 187.6 kB / 332.2 MB, free: 13.05 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001739/0.2517, allocations: 1.14 MB / 333.3 MB, free: 12.07 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003017/0.252, allocations: 160.5 kB / 333.4 MB, free: 11.97 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.882e-05/0.252, allocations: 1.969 kB / 333.4 MB, free: 11.97 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002974/0.2523, allocations: 151.9 kB / 333.6 MB, free: 11.85 MB / 270.1 MB Notification: Performance of pre-optimization done (n=21): time 1.743e-06/0.2523, allocations: 0 / 333.6 MB, free: 11.85 MB / 270.1 MB Notification: Performance of matching and sorting (n=21): time 0.00103/0.2534, allocations: 401 kB / 334 MB, free: 11.59 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.922e-05/0.2534, allocations: 109.5 kB / 334.1 MB, free: 11.46 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002631/0.2537, allocations: 226.4 kB / 334.3 MB, free: 11.29 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 3.097e-05/0.2537, allocations: 27.92 kB / 334.3 MB, free: 11.26 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000132/0.2539, allocations: 186.8 kB / 334.5 MB, free: 11.09 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.391e-05/0.254, allocations: 72.11 kB / 334.6 MB, free: 11.02 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.325e-05/0.254, allocations: 5.062 kB / 334.6 MB, free: 11.02 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001388/0.2541, allocations: 335.4 kB / 334.9 MB, free: 10.69 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001166/0.2542, allocations: 67.44 kB / 335 MB, free: 10.62 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001608/0.2544, allocations: 141.8 kB / 335.1 MB, free: 10.46 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001301/0.2546, allocations: 77.83 kB / 335.2 MB, free: 10.38 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/0.2546, allocations: 4 kB / 335.2 MB, free: 10.38 MB / 270.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0003977/0.255, allocations: 268.1 kB / 335.5 MB, free: 10.11 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.898e-05/0.255, allocations: 12 kB / 335.5 MB, free: 10.1 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.691e-06/0.255, allocations: 0 / 335.5 MB, free: 10.1 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002583/0.2553, allocations: 64.77 kB / 335.6 MB, free: 10.03 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002055/0.2555, allocations: 51.91 kB / 335.6 MB, free: 9.98 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001268/0.2568, allocations: 1.408 MB / 337 MB, free: 8.441 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000219/0.257, allocations: 39.73 kB / 337 MB, free: 8.402 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.284e-05/0.257, allocations: 15.98 kB / 337.1 MB, free: 8.387 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.0001483/0.2572, allocations: 145.8 kB / 337.2 MB, free: 8.234 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.518e-05/0.2572, allocations: 23.95 kB / 337.2 MB, free: 8.211 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.815e-05/0.2573, allocations: 34.17 kB / 337.3 MB, free: 8.18 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.873e-06/0.2573, allocations: 4 kB / 337.3 MB, free: 8.176 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.026e-06/0.2573, allocations: 0 / 337.3 MB, free: 8.176 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.948e-06/0.2573, allocations: 0 / 337.3 MB, free: 8.176 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003489/0.2577, allocations: 321.3 kB / 337.6 MB, free: 7.812 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.974e-06/0.2577, allocations: 0 / 337.6 MB, free: 7.812 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001702/0.2579, allocations: 43.86 kB / 337.6 MB, free: 7.77 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001735/0.258, allocations: 52.83 kB / 337.7 MB, free: 7.715 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.934e-05/0.2581, allocations: 7.984 kB / 337.7 MB, free: 7.707 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001048/0.2591, allocations: 1.327 MB / 339 MB, free: 6.242 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.965e-06/0.2591, allocations: 4 kB / 339 MB, free: 6.238 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006056/0.2597, allocations: 330.5 kB / 339.3 MB, free: 5.895 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001119/0.2599, allocations: 112.8 kB / 339.4 MB, free: 5.766 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.444e-05/0.2599, allocations: 4 kB / 339.5 MB, free: 5.762 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001634/0.2601, allocations: 23.98 kB / 339.5 MB, free: 5.738 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.142e-05/0.2602, allocations: 35.94 kB / 339.5 MB, free: 5.703 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.296e-05/0.2602, allocations: 11.94 kB / 339.5 MB, free: 5.691 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.0001457/0.2604, allocations: 160.5 kB / 339.7 MB, free: 5.531 MB / 270.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2604, allocations: 0 / 339.7 MB, free: 5.531 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0003559/0.2607, allocations: 79.84 kB / 339.8 MB, free: 5.453 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.0001372/0.2609, allocations: 99.25 kB / 339.9 MB, free: 5.348 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.0005125/0.2614, allocations: 291 kB / 340.1 MB, free: 5.051 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 2.875e-06/0.2614, allocations: 4.062 kB / 340.1 MB, free: 5.047 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002676/0.2617, allocations: 190.6 kB / 340.3 MB, free: 4.848 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002721/0.262, allocations: 40.34 kB / 340.4 MB, free: 4.809 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001539/0.2635, allocations: 0.8105 MB / 341.2 MB, free: 3.973 MB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003255/0.2639, allocations: 0.7677 MB / 341.9 MB, free: 3.18 MB / 270.1 MB Notification: Performance of simCode: alias equations: time 9.593e-05/0.264, allocations: 22.28 kB / 342 MB, free: 3.16 MB / 270.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.877e-05/0.264, allocations: 19.44 kB / 342 MB, free: 3.141 MB / 270.1 MB Notification: Performance of SimCode: time 3.81e-07/0.264, allocations: 4 kB / 342 MB, free: 3.137 MB / 270.1 MB Notification: Performance of Templates: time 0.006157/0.2702, allocations: 2.645 MB / 344.6 MB, free: 0.4922 MB / 270.1 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Analog.Examples.SwitchWithArc.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: