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.01092/0.01092, allocations: 102.1 kB / 15.73 MB, free: 6.438 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.00197/0.00197, allocations: 194.3 kB / 16.67 MB, free: 6.355 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.551/1.551, allocations: 205.1 MB / 222.6 MB, free: 4.504 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.001151/0.001151, allocations: 55.5 kB / 326.6 MB, free: 14.37 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1278/0.1289, allocations: 46.62 MB / 373.2 MB, free: 1.312 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.007022/0.136, allocations: 2.816 MB / 376 MB, free: 14.48 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002916/0.139, allocations: 0.7834 MB / 376.8 MB, free: 13.68 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00021/0.1393, allocations: 4 kB / 376.8 MB, free: 13.68 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002214/0.1395, allocations: 47.5 kB / 376.8 MB, free: 13.63 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002679/0.1398, allocations: 87.19 kB / 376.9 MB, free: 13.55 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004563/0.1403, allocations: 107.7 kB / 377 MB, free: 13.44 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005979/0.1409, allocations: 374.3 kB / 377.4 MB, free: 13.07 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004204/0.1413, allocations: 115.2 kB / 377.5 MB, free: 12.96 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003143/0.1417, allocations: 139.5 kB / 377.6 MB, free: 12.82 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003703/0.142, allocations: 155.3 kB / 377.8 MB, free: 12.67 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.153e-05/0.1421, allocations: 28 kB / 377.8 MB, free: 12.64 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.798e-05/0.1422, allocations: 32 kB / 377.8 MB, free: 12.61 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000113/0.1424, allocations: 71.81 kB / 377.9 MB, free: 12.54 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002768/0.1426, allocations: 167.2 kB / 378.1 MB, free: 12.38 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007542/0.1434, allocations: 362.7 kB / 378.4 MB, free: 12.02 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.384e-06/0.1434, allocations: 4 kB / 378.4 MB, free: 12.02 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.246e-06/0.1435, allocations: 0 / 378.4 MB, free: 12.02 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.401e-05/0.1435, allocations: 0 / 378.4 MB, free: 12.02 MB / 318.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.001498/0.145, allocations: 0.6095 MB / 379 MB, free: 11.36 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.451e-05/0.1451, allocations: 11.97 kB / 379.1 MB, free: 11.35 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001321/0.1452, allocations: 36.56 kB / 379.1 MB, free: 11.31 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005747/0.1458, allocations: 256.5 kB / 379.3 MB, free: 11.02 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001302/0.1459, allocations: 80.61 kB / 379.4 MB, free: 10.93 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.174e-05/0.146, allocations: 28.36 kB / 379.4 MB, free: 10.91 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007607/0.1468, allocations: 309.8 kB / 379.8 MB, free: 10.59 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.86e-05/0.1468, allocations: 0 / 379.8 MB, free: 10.59 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.828e-05/0.1469, allocations: 15.98 kB / 379.8 MB, free: 10.57 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.022e-05/0.1469, allocations: 8 kB / 379.8 MB, free: 10.56 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005311/0.1475, allocations: 186.1 kB / 380 MB, free: 10.38 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002442/0.1499, allocations: 1.119 MB / 381.1 MB, free: 9.18 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004624/0.1504, allocations: 158.5 kB / 381.2 MB, free: 9.016 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000218/0.1506, allocations: 76.84 kB / 381.3 MB, free: 8.938 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.68e-05/0.1507, allocations: 7.984 kB / 381.3 MB, free: 8.93 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003945/0.1511, allocations: 161.7 kB / 381.5 MB, free: 8.75 MB / 318.1 MB Notification: Performance of pre-optimization done (n=21): time 2.004e-06/0.1511, allocations: 0 / 381.5 MB, free: 8.75 MB / 318.1 MB Notification: Performance of matching and sorting (n=21): time 0.001552/0.1527, allocations: 379.2 kB / 381.8 MB, free: 8.352 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.892e-05/0.1528, allocations: 106.8 kB / 381.9 MB, free: 8.223 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003297/0.1531, allocations: 232.9 kB / 382.2 MB, free: 7.984 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.141e-05/0.1532, allocations: 25.7 kB / 382.2 MB, free: 7.953 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001743/0.1534, allocations: 184.1 kB / 382.4 MB, free: 7.766 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.019e-05/0.1535, allocations: 71.08 kB / 382.4 MB, free: 7.695 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001413/0.1536, allocations: 61.56 kB / 382.5 MB, free: 7.629 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.00021/0.1539, allocations: 338.8 kB / 382.8 MB, free: 7.289 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002217/0.1541, allocations: 71.97 kB / 382.9 MB, free: 7.219 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003118/0.1544, allocations: 140.6 kB / 383 MB, free: 7.051 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00048/0.1549, allocations: 192.5 kB / 383.2 MB, free: 6.84 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.807e-06/0.155, allocations: 0 / 383.2 MB, free: 6.84 MB / 318.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0007676/0.1557, allocations: 275.8 kB / 383.5 MB, free: 6.562 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.226e-05/0.1558, allocations: 5.094 kB / 383.5 MB, free: 6.559 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.706e-06/0.1558, allocations: 4 kB / 383.5 MB, free: 6.555 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004031/0.1562, allocations: 48.81 kB / 383.6 MB, free: 6.504 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003631/0.1566, allocations: 60.02 kB / 383.6 MB, free: 6.445 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002128/0.1587, allocations: 1.568 MB / 385.2 MB, free: 4.734 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003967/0.1591, allocations: 39.69 kB / 385.2 MB, free: 4.695 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.234e-05/0.1592, allocations: 11.98 kB / 385.2 MB, free: 4.684 MB / 318.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.0002614/0.1595, allocations: 149.7 kB / 385.4 MB, free: 4.527 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.021e-05/0.1596, allocations: 27.81 kB / 385.4 MB, free: 4.5 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.531e-05/0.1596, allocations: 30.17 kB / 385.4 MB, free: 4.473 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.486e-06/0.1597, allocations: 0 / 385.4 MB, free: 4.473 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.724e-06/0.1597, allocations: 0 / 385.4 MB, free: 4.473 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.24e-06/0.1597, allocations: 3.938 kB / 385.4 MB, free: 4.469 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005086/0.1602, allocations: 321.3 kB / 385.8 MB, free: 4.105 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.821e-06/0.1602, allocations: 4 kB / 385.8 MB, free: 4.102 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002921/0.1605, allocations: 31.98 kB / 385.8 MB, free: 4.07 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000287/0.1608, allocations: 52.81 kB / 385.8 MB, free: 4.016 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.713e-05/0.1609, allocations: 11.92 kB / 385.9 MB, free: 4.004 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001797/0.1627, allocations: 1.422 MB / 387.3 MB, free: 2.441 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.989e-06/0.1627, allocations: 3.984 kB / 387.3 MB, free: 2.438 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001002/0.1637, allocations: 326.2 kB / 387.6 MB, free: 2.098 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001646/0.1639, allocations: 116.8 kB / 387.7 MB, free: 1.965 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.543e-05/0.164, allocations: 4 kB / 387.7 MB, free: 1.961 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002766/0.1643, allocations: 15.98 kB / 387.7 MB, free: 1.945 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001217/0.1644, allocations: 31.95 kB / 387.8 MB, free: 1.914 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.273e-05/0.1644, allocations: 11.92 kB / 387.8 MB, free: 1.902 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002259/0.1647, allocations: 164.5 kB / 387.9 MB, free: 1.742 MB / 318.1 MB Notification: Performance of sort global known variables: time 3.41e-07/0.1647, allocations: 0 / 387.9 MB, free: 1.742 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0007216/0.1654, allocations: 87.69 kB / 388 MB, free: 1.656 MB / 318.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.0001755/0.1656, allocations: 107.2 kB / 388.1 MB, free: 1.543 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0008182/0.1665, allocations: 286.5 kB / 388.4 MB, free: 1.25 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.096e-06/0.1665, allocations: 448 / 388.4 MB, free: 1.25 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004083/0.1669, allocations: 198.6 kB / 388.6 MB, free: 1.043 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004808/0.1674, allocations: 40.41 kB / 388.6 MB, free: 1.004 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002376/0.1698, allocations: 0.6435 MB / 389.3 MB, free: 340 kB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004432/0.1703, allocations: 0.7558 MB / 390 MB, free: 15.55 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001528/0.1704, allocations: 26.28 kB / 390.1 MB, free: 15.53 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.269e-05/0.1705, allocations: 19.44 kB / 390.1 MB, free: 15.51 MB / 334.1 MB Notification: Performance of SimCode: time 4.51e-07/0.1705, allocations: 0 / 390.1 MB, free: 15.51 MB / 334.1 MB Notification: Performance of Templates: time 0.01042/0.181, allocations: 3.093 MB / 393.2 MB, free: 12.41 MB / 334.1 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Analog.Examples.SwitchWithArc.makefile (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)