Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.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.ControlledSwitchWithArc,tolerance=1e-06,outputFormat="empty",numberOfIntervals=48000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc") translateModel(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,tolerance=1e-06,outputFormat="empty",numberOfIntervals=48000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001317/0.001324, allocations: 90.12 kB / 16.31 MB, free: 6.461 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.002062/0.002062, allocations: 183.9 kB / 17.21 MB, free: 6.336 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.782/1.782, allocations: 205.4 MB / 223.4 MB, free: 13.16 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.0005176/0.0005181, allocations: 16 kB / 280.1 MB, free: 3.723 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1457/0.1463, allocations: 47.58 MB / 327.7 MB, free: 4.074 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.004722/0.1511, allocations: 2.641 MB / 330.4 MB, free: 1.414 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002055/0.1532, allocations: 0.7374 MB / 331.1 MB, free: 0.668 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003197/0.1536, allocations: 11.94 kB / 331.1 MB, free: 0.6562 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002376/0.1538, allocations: 39.67 kB / 331.2 MB, free: 0.6172 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002768/0.1541, allocations: 95.22 kB / 331.2 MB, free: 0.5234 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006109/0.1547, allocations: 79.86 kB / 331.3 MB, free: 456 kB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005494/0.1553, allocations: 390.1 kB / 331.7 MB, free: 64 kB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003027/0.1556, allocations: 110.8 kB / 331.8 MB, free: 15.96 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002635/0.1559, allocations: 131.5 kB / 331.9 MB, free: 15.83 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002551/0.1562, allocations: 151.3 kB / 332.1 MB, free: 15.68 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.196e-05/0.1562, allocations: 20 kB / 332.1 MB, free: 15.66 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.994e-05/0.1563, allocations: 20 kB / 332.1 MB, free: 15.64 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 7.381e-05/0.1564, allocations: 55.75 kB / 332.2 MB, free: 15.59 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001101/0.1565, allocations: 93.52 kB / 332.3 MB, free: 15.49 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003577/0.1568, allocations: 303.4 kB / 332.6 MB, free: 15.19 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.144e-06/0.1569, allocations: 0 / 332.6 MB, free: 15.19 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.927e-06/0.1569, allocations: 4 kB / 332.6 MB, free: 15.19 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.473e-05/0.1569, allocations: 4 kB / 332.6 MB, free: 15.18 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: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.001173/0.1581, allocations: 0.6002 MB / 333.2 MB, free: 14.53 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.611e-05/0.1581, allocations: 8.031 kB / 333.2 MB, free: 14.52 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001035/0.1582, allocations: 39.53 kB / 333.2 MB, free: 14.48 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004125/0.1587, allocations: 272 kB / 333.5 MB, free: 14.18 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001105/0.1588, allocations: 80.05 kB / 333.6 MB, free: 14.09 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.28e-05/0.1589, allocations: 35.98 kB / 333.6 MB, free: 14.05 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005858/0.1595, allocations: 334.8 kB / 333.9 MB, free: 13.71 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.557e-05/0.1595, allocations: 3.938 kB / 333.9 MB, free: 13.7 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.591e-05/0.1595, allocations: 12 kB / 333.9 MB, free: 13.69 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.2e-05/0.1595, allocations: 8 kB / 334 MB, free: 13.68 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004391/0.16, allocations: 218.5 kB / 334.2 MB, free: 13.47 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00216/0.1622, allocations: 1.387 MB / 335.6 MB, free: 11.98 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003859/0.1626, allocations: 178.5 kB / 335.7 MB, free: 11.8 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001844/0.1628, allocations: 84.83 kB / 335.8 MB, free: 11.71 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.737e-05/0.1628, allocations: 4 kB / 335.8 MB, free: 11.71 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003831/0.1632, allocations: 159.5 kB / 336 MB, free: 11.53 MB / 286.1 MB Notification: Performance of pre-optimization done (n=21): time 2.274e-06/0.1632, allocations: 0 / 336 MB, free: 11.53 MB / 286.1 MB Notification: Performance of matching and sorting (n=21): time 0.001378/0.1646, allocations: 428.8 kB / 336.4 MB, free: 11.09 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.427e-05/0.1647, allocations: 106.8 kB / 336.5 MB, free: 10.96 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003029/0.165, allocations: 262.6 kB / 336.8 MB, free: 10.69 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.241e-05/0.1651, allocations: 29.7 kB / 336.8 MB, free: 10.66 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001716/0.1652, allocations: 203.9 kB / 337 MB, free: 10.45 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.101e-05/0.1653, allocations: 78.98 kB / 337.1 MB, free: 10.38 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.415e-05/0.1653, allocations: 4 kB / 337.1 MB, free: 10.37 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001872/0.1655, allocations: 339.1 kB / 337.4 MB, free: 10.03 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001559/0.1657, allocations: 76.62 kB / 337.5 MB, free: 9.957 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002236/0.1659, allocations: 189.3 kB / 337.7 MB, free: 9.73 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001859/0.1661, allocations: 89.19 kB / 337.7 MB, free: 9.645 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.337e-06/0.1661, allocations: 0 / 337.7 MB, free: 9.645 MB / 286.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006983/0.1669, allocations: 348 kB / 338.1 MB, free: 9.297 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.471e-05/0.1669, allocations: 16.02 kB / 338.1 MB, free: 9.281 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.124e-05/0.1669, allocations: 0 / 338.1 MB, free: 9.281 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003249/0.1672, allocations: 56.81 kB / 338.2 MB, free: 9.223 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002794/0.1675, allocations: 63.91 kB / 338.2 MB, free: 9.16 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001501/0.1691, allocations: 1.412 MB / 339.6 MB, free: 7.613 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003278/0.1694, allocations: 51.7 kB / 339.7 MB, free: 7.562 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.714e-05/0.1694, allocations: 12 kB / 339.7 MB, free: 7.551 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition1,switch1.off,$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 (38): * Single equations (assignments): 37 * 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.0002339/0.1697, allocations: 149.7 kB / 339.8 MB, free: 7.395 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.673e-05/0.1697, allocations: 31.72 kB / 339.9 MB, free: 7.363 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.015e-05/0.1698, allocations: 34.17 kB / 339.9 MB, free: 7.332 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.438e-06/0.1698, allocations: 3.953 kB / 339.9 MB, free: 7.328 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.521e-06/0.1698, allocations: 0 / 339.9 MB, free: 7.328 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.402e-06/0.1698, allocations: 0 / 339.9 MB, free: 7.328 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004103/0.1703, allocations: 337.4 kB / 340.2 MB, free: 6.949 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.717e-06/0.1703, allocations: 0 / 340.2 MB, free: 6.949 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001926/0.1705, allocations: 39.98 kB / 340.3 MB, free: 6.91 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001962/0.1707, allocations: 52.81 kB / 340.3 MB, free: 6.855 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.108e-05/0.1707, allocations: 7.984 kB / 340.3 MB, free: 6.848 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001191/0.1719, allocations: 1.323 MB / 341.7 MB, free: 5.391 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.1719, allocations: 3.938 kB / 341.7 MB, free: 5.387 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007064/0.1726, allocations: 358.1 kB / 342 MB, free: 5.016 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001261/0.1728, allocations: 120.8 kB / 342.1 MB, free: 4.879 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.11e-05/0.1728, allocations: 8 kB / 342.1 MB, free: 4.871 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001721/0.173, allocations: 32 kB / 342.2 MB, free: 4.84 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001055/0.1731, allocations: 31.94 kB / 342.2 MB, free: 4.809 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.595e-05/0.1731, allocations: 4 kB / 342.2 MB, free: 4.805 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001884/0.1733, allocations: 186 kB / 342.4 MB, free: 4.621 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1733, allocations: 0 / 342.4 MB, free: 4.621 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0004233/0.1738, allocations: 83.84 kB / 342.5 MB, free: 4.539 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: 5 ($whenCondition1,switch1.off,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): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0001525/0.1739, allocations: 111.2 kB / 342.6 MB, free: 4.422 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0006424/0.1746, allocations: 322.3 kB / 342.9 MB, free: 4.094 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.1746, allocations: 0 / 342.9 MB, free: 4.094 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000284/0.1749, allocations: 199.3 kB / 343.1 MB, free: 3.887 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000301/0.1752, allocations: 36.48 kB / 343.1 MB, free: 3.852 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001694/0.1769, allocations: 0.8378 MB / 344 MB, free: 2.992 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004105/0.1773, allocations: 0.7716 MB / 344.7 MB, free: 2.195 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.000152/0.1775, allocations: 22.3 kB / 344.7 MB, free: 2.172 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.049e-05/0.1775, allocations: 23.44 kB / 344.8 MB, free: 2.148 MB / 286.1 MB Notification: Performance of SimCode: time 1.001e-06/0.1776, allocations: 0 / 344.8 MB, free: 2.148 MB / 286.1 MB Notification: Performance of Templates: time 0.007223/0.1848, allocations: 2.688 MB / 347.5 MB, free: 15.46 MB / 302.1 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.sim & ./Modelica_3.2.2_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe 2>&1)