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.001274/0.001274, allocations: 93.08 kB / 16.3 MB, free: 6.133 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.001282/0.001282, allocations: 179 kB / 17.2 MB, free: 6.016 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.684/1.684, allocations: 205.4 MB / 223.3 MB, free: 13.18 MB / 190.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.0005851/0.0005852, allocations: 12 kB / 280.1 MB, free: 3.758 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1263/0.1269, allocations: 47.58 MB / 327.7 MB, free: 4.109 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.003297/0.1302, allocations: 2.272 MB / 330 MB, free: 1.82 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001618/0.1319, allocations: 0.7453 MB / 330.7 MB, free: 1.066 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002915/0.1322, allocations: 4 kB / 330.7 MB, free: 1.062 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001249/0.1323, allocations: 39.67 kB / 330.8 MB, free: 1.023 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003588/0.1327, allocations: 111.7 kB / 330.9 MB, free: 0.9141 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004488/0.1332, allocations: 79.84 kB / 331 MB, free: 0.8359 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004658/0.1336, allocations: 251.4 kB / 331.2 MB, free: 0.5898 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002268/0.1339, allocations: 90.28 kB / 331.3 MB, free: 0.5039 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001874/0.1341, allocations: 115.6 kB / 331.4 MB, free: 400 kB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002407/0.1343, allocations: 127.5 kB / 331.5 MB, free: 272 kB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 4.895e-05/0.1344, allocations: 16 kB / 331.5 MB, free: 256 kB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.52e-05/0.1344, allocations: 16 kB / 331.6 MB, free: 240 kB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 5.702e-05/0.1345, allocations: 55.81 kB / 331.6 MB, free: 184 kB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001016/0.1346, allocations: 89.52 kB / 331.7 MB, free: 88 kB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002878/0.1349, allocations: 259.5 kB / 331.9 MB, free: 15.83 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.1349, allocations: 0 / 331.9 MB, free: 15.83 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.978e-06/0.1349, allocations: 0 / 331.9 MB, free: 15.83 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.543e-05/0.135, allocations: 0 / 331.9 MB, free: 15.83 MB / 286.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.001255/0.1362, allocations: 0.5588 MB / 332.5 MB, free: 15.22 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.399e-05/0.1363, allocations: 12.03 kB / 332.5 MB, free: 15.21 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001221/0.1364, allocations: 31.62 kB / 332.5 MB, free: 15.18 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004474/0.1369, allocations: 255.2 kB / 332.8 MB, free: 14.89 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001039/0.137, allocations: 80 kB / 332.9 MB, free: 14.8 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.385e-05/0.137, allocations: 32 kB / 332.9 MB, free: 14.77 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005615/0.1376, allocations: 289.8 kB / 333.2 MB, free: 14.47 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.101e-05/0.1376, allocations: 11.91 kB / 333.2 MB, free: 14.46 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.728e-05/0.1377, allocations: 12 kB / 333.2 MB, free: 14.45 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.359e-05/0.1377, allocations: 8 kB / 333.2 MB, free: 14.44 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003536/0.1381, allocations: 178.2 kB / 333.4 MB, free: 14.27 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002019/0.1401, allocations: 1.15 MB / 334.5 MB, free: 13.03 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003064/0.1404, allocations: 154.6 kB / 334.7 MB, free: 12.87 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.179e-05/0.1405, allocations: 4 kB / 334.7 MB, free: 12.86 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003266/0.1408, allocations: 159.4 kB / 334.9 MB, free: 12.69 MB / 286.1 MB Notification: Performance of pre-optimization done (n=21): time 1.723e-06/0.1408, allocations: 0 / 334.9 MB, free: 12.69 MB / 286.1 MB Notification: Performance of matching and sorting (n=21): time 0.001097/0.1419, allocations: 393.4 kB / 335.2 MB, free: 12.28 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.137e-05/0.142, allocations: 106.8 kB / 335.3 MB, free: 12.15 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002442/0.1423, allocations: 232.9 kB / 335.6 MB, free: 11.91 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.992e-05/0.1423, allocations: 33.64 kB / 335.6 MB, free: 11.87 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001315/0.1424, allocations: 180.2 kB / 335.8 MB, free: 11.69 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.712e-05/0.1425, allocations: 71.08 kB / 335.9 MB, free: 11.62 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.532e-05/0.1425, allocations: 8 kB / 335.9 MB, free: 11.61 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001401/0.1427, allocations: 334.8 kB / 336.2 MB, free: 11.28 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001285/0.1428, allocations: 59.98 kB / 336.2 MB, free: 11.22 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001815/0.143, allocations: 144.6 kB / 336.4 MB, free: 11.05 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001631/0.1432, allocations: 77.16 kB / 336.5 MB, free: 10.97 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.937e-06/0.1432, allocations: 3.938 kB / 336.5 MB, free: 10.97 MB / 286.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.000492/0.1437, allocations: 272 kB / 336.7 MB, free: 10.7 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.225e-05/0.1437, allocations: 4 kB / 336.7 MB, free: 10.69 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.277e-06/0.1437, allocations: 0 / 336.7 MB, free: 10.69 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003088/0.1441, allocations: 64.98 kB / 336.8 MB, free: 10.62 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002284/0.1443, allocations: 51.92 kB / 336.8 MB, free: 10.57 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001334/0.1457, allocations: 1.412 MB / 338.3 MB, free: 9.031 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002396/0.1459, allocations: 43.77 kB / 338.3 MB, free: 8.988 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.546e-05/0.1459, allocations: 11.98 kB / 338.3 MB, free: 8.977 MB / 286.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.0001669/0.1461, allocations: 161.9 kB / 338.5 MB, free: 8.809 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.957e-05/0.1462, allocations: 19.77 kB / 338.5 MB, free: 8.789 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.286e-05/0.1462, allocations: 26.19 kB / 338.5 MB, free: 8.766 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.859e-06/0.1462, allocations: 3.984 kB / 338.5 MB, free: 8.762 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.116e-06/0.1462, allocations: 0 / 338.5 MB, free: 8.762 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.509e-06/0.1463, allocations: 0 / 338.5 MB, free: 8.762 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003695/0.1466, allocations: 313.4 kB / 338.8 MB, free: 8.406 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.266e-06/0.1466, allocations: 4 kB / 338.8 MB, free: 8.402 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001719/0.1468, allocations: 35.94 kB / 338.9 MB, free: 8.367 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001849/0.147, allocations: 52.81 kB / 338.9 MB, free: 8.312 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.216e-05/0.1471, allocations: 11.98 kB / 338.9 MB, free: 8.301 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001129/0.1482, allocations: 1.323 MB / 340.3 MB, free: 6.84 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.1482, allocations: 0 / 340.3 MB, free: 6.84 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006251/0.1488, allocations: 338.4 kB / 340.6 MB, free: 6.488 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001147/0.149, allocations: 116.8 kB / 340.7 MB, free: 6.355 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.663e-05/0.149, allocations: 4 kB / 340.7 MB, free: 6.352 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001769/0.1492, allocations: 31.98 kB / 340.7 MB, free: 6.32 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.608e-05/0.1493, allocations: 35.88 kB / 340.8 MB, free: 6.285 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.289e-05/0.1493, allocations: 4 kB / 340.8 MB, free: 6.281 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001444/0.1495, allocations: 160.5 kB / 340.9 MB, free: 6.125 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1495, allocations: 0 / 340.9 MB, free: 6.125 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003958/0.1499, allocations: 79.84 kB / 341 MB, free: 6.047 MB / 286.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.0001457/0.15, allocations: 107.2 kB / 341.1 MB, free: 5.934 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0005145/0.1506, allocations: 290.5 kB / 341.4 MB, free: 5.637 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.527e-06/0.1506, allocations: 0 / 341.4 MB, free: 5.637 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002514/0.1508, allocations: 186.6 kB / 341.6 MB, free: 5.441 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002564/0.1511, allocations: 40.83 kB / 341.6 MB, free: 5.398 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00164/0.1527, allocations: 0.8144 MB / 342.4 MB, free: 4.559 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003745/0.1531, allocations: 0.7677 MB / 343.2 MB, free: 3.766 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001067/0.1533, allocations: 26.28 kB / 343.2 MB, free: 3.742 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.966e-05/0.1533, allocations: 19.44 kB / 343.2 MB, free: 3.727 MB / 286.1 MB Notification: Performance of SimCode: time 3.51e-07/0.1533, allocations: 0 / 343.2 MB, free: 3.727 MB / 286.1 MB Notification: Performance of Templates: time 0.007107/0.1604, allocations: 2.648 MB / 345.9 MB, free: 1.086 MB / 286.1 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Analog.Examples.SwitchWithArc.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: