Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_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.1_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc") translateModel(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,tolerance=1e-06,outputFormat="empty",numberOfIntervals=48000,variableFilter="",fileNamePrefix="Modelica_3.1_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.005129/0.005129, allocations: 103.1 kB / 15.73 MB, free: 6.035 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.001054/0.001054, allocations: 199 kB / 16.67 MB, free: 5.969 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.537/1.537, allocations: 205.1 MB / 222.5 MB, free: 4.52 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.001324/0.001324, allocations: 58.84 kB / 326.6 MB, free: 14.41 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1611/0.1624, allocations: 46.61 MB / 373.2 MB, free: 1.324 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.004976/0.1674, allocations: 3.092 MB / 376.3 MB, free: 14.21 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001484/0.1689, allocations: 0.7912 MB / 377.1 MB, free: 13.41 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001666/0.1691, allocations: 4 kB / 377.1 MB, free: 13.41 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000222/0.1694, allocations: 67.36 kB / 377.1 MB, free: 13.34 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001966/0.1696, allocations: 103 kB / 377.2 MB, free: 13.24 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004036/0.17, allocations: 107.8 kB / 377.3 MB, free: 13.13 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004398/0.1704, allocations: 418.1 kB / 377.7 MB, free: 12.72 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002875/0.1707, allocations: 143.7 kB / 377.9 MB, free: 12.58 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002124/0.1709, allocations: 163.4 kB / 378 MB, free: 12.42 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002484/0.1712, allocations: 175.2 kB / 378.2 MB, free: 12.25 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.931e-05/0.1713, allocations: 36 kB / 378.2 MB, free: 12.21 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.878e-05/0.1713, allocations: 36 kB / 378.3 MB, free: 12.18 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.766e-05/0.1714, allocations: 79.75 kB / 378.4 MB, free: 12.1 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002026/0.1716, allocations: 191.1 kB / 378.5 MB, free: 11.91 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000443/0.1721, allocations: 418.5 kB / 379 MB, free: 11.5 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/0.1721, allocations: 0 / 379 MB, free: 11.5 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.1721, allocations: 4 kB / 379 MB, free: 11.5 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.429e-05/0.1721, allocations: 0 / 379 MB, free: 11.5 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: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.001204/0.1733, allocations: 0.6432 MB / 379.6 MB, free: 10.8 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.552e-05/0.1734, allocations: 8.031 kB / 379.6 MB, free: 10.8 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.494e-05/0.1735, allocations: 48.47 kB / 379.7 MB, free: 10.75 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004449/0.1739, allocations: 281.3 kB / 379.9 MB, free: 10.43 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001002/0.174, allocations: 80.62 kB / 380 MB, free: 10.34 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.127e-05/0.1741, allocations: 32.36 kB / 380 MB, free: 10.31 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005855/0.1747, allocations: 338.8 kB / 380.4 MB, free: 9.961 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.407e-05/0.1747, allocations: 4 kB / 380.4 MB, free: 9.957 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.687e-05/0.1748, allocations: 16 kB / 380.4 MB, free: 9.941 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.648e-05/0.1748, allocations: 8 kB / 380.4 MB, free: 9.934 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004103/0.1752, allocations: 218.5 kB / 380.6 MB, free: 9.719 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001948/0.1772, allocations: 1.364 MB / 382 MB, free: 8.254 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003531/0.1775, allocations: 166.6 kB / 382.1 MB, free: 8.082 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001692/0.1777, allocations: 92.77 kB / 382.2 MB, free: 7.988 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.856e-05/0.1777, allocations: 3.938 kB / 382.2 MB, free: 7.984 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003079/0.1781, allocations: 157.9 kB / 382.4 MB, free: 7.809 MB / 318.1 MB Notification: Performance of pre-optimization done (n=21): time 1.443e-06/0.1781, allocations: 0 / 382.4 MB, free: 7.809 MB / 318.1 MB Notification: Performance of matching and sorting (n=21): time 0.001229/0.1793, allocations: 403.1 kB / 382.8 MB, free: 7.387 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.091e-05/0.1794, allocations: 114.7 kB / 382.9 MB, free: 7.25 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002791/0.1797, allocations: 254.7 kB / 383.1 MB, free: 6.992 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001037/0.1798, allocations: 33.7 kB / 383.2 MB, free: 6.953 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001614/0.18, allocations: 207.7 kB / 383.4 MB, free: 6.742 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.284e-05/0.18, allocations: 67.09 kB / 383.4 MB, free: 6.676 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.909e-05/0.1801, allocations: 69.92 kB / 383.5 MB, free: 6.602 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001519/0.1803, allocations: 334.8 kB / 383.8 MB, free: 6.266 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001641/0.1805, allocations: 80.62 kB / 383.9 MB, free: 6.188 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002422/0.1807, allocations: 173.5 kB / 384.1 MB, free: 5.977 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003816/0.1811, allocations: 243.5 kB / 384.3 MB, free: 5.703 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.286e-06/0.1811, allocations: 0 / 384.3 MB, free: 5.703 MB / 318.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006522/0.1818, allocations: 339.6 kB / 384.7 MB, free: 5.363 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.671e-05/0.1818, allocations: 8 kB / 384.7 MB, free: 5.355 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.715e-06/0.1818, allocations: 4 kB / 384.7 MB, free: 5.352 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002801/0.1821, allocations: 53.03 kB / 384.7 MB, free: 5.297 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002517/0.1824, allocations: 63.91 kB / 384.8 MB, free: 5.234 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001448/0.1838, allocations: 1.572 MB / 386.4 MB, free: 3.523 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002377/0.1841, allocations: 47.58 kB / 386.4 MB, free: 3.477 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.897e-05/0.1841, allocations: 20.08 kB / 386.4 MB, free: 3.457 MB / 318.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 (switch2.tSwitch,$PRE.switch2.tSwitch,switch2.quenched,$PRE.switch2.quenched,switch2.off,$PRE.switch2.off,switch1.off,$whenCondition1) * 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 (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.0001634/0.1843, allocations: 145.8 kB / 386.6 MB, free: 3.305 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.565e-05/0.1843, allocations: 27.72 kB / 386.6 MB, free: 3.277 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.13e-05/0.1844, allocations: 34.05 kB / 386.6 MB, free: 3.242 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.029e-06/0.1844, allocations: 7.984 kB / 386.6 MB, free: 3.234 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.984e-06/0.1844, allocations: 0 / 386.6 MB, free: 3.234 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.975e-06/0.1844, allocations: 0 / 386.6 MB, free: 3.234 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003356/0.1848, allocations: 345.3 kB / 387 MB, free: 2.848 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.462e-06/0.1848, allocations: 4 kB / 387 MB, free: 2.844 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001863/0.185, allocations: 39.92 kB / 387 MB, free: 2.805 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001817/0.1852, allocations: 52.75 kB / 387.1 MB, free: 2.75 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.065e-05/0.1852, allocations: 4 kB / 387.1 MB, free: 2.746 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001183/0.1864, allocations: 1.418 MB / 388.5 MB, free: 1.188 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.502e-06/0.1864, allocations: 4.062 kB / 388.5 MB, free: 1.184 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000727/0.1871, allocations: 342.1 kB / 388.8 MB, free: 0.8281 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001037/0.1873, allocations: 116.8 kB / 388.9 MB, free: 0.6953 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.709e-05/0.1873, allocations: 7.938 kB / 388.9 MB, free: 0.6875 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001697/0.1875, allocations: 24.05 kB / 389 MB, free: 0.6641 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001056/0.1876, allocations: 31.89 kB / 389 MB, free: 0.6328 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.315e-05/0.1876, allocations: 4 kB / 389 MB, free: 0.6289 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001716/0.1878, allocations: 186 kB / 389.2 MB, free: 464 kB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1878, allocations: 0 / 389.2 MB, free: 464 kB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003749/0.1882, allocations: 95.69 kB / 389.3 MB, free: 368 kB / 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: 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 (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.0001407/0.1883, allocations: 111.2 kB / 389.4 MB, free: 244 kB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0006298/0.189, allocations: 314.4 kB / 389.7 MB, free: 15.92 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.189, allocations: 0 / 389.7 MB, free: 15.92 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002919/0.1893, allocations: 206.5 kB / 389.9 MB, free: 15.7 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002734/0.1896, allocations: 41.14 kB / 389.9 MB, free: 15.66 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001487/0.191, allocations: 0.6722 MB / 390.6 MB, free: 14.96 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004535/0.1915, allocations: 0.7713 MB / 391.4 MB, free: 14.17 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001064/0.1916, allocations: 26.28 kB / 391.4 MB, free: 14.14 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.661e-05/0.1917, allocations: 27.44 kB / 391.4 MB, free: 14.11 MB / 334.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1917, allocations: 0 / 391.4 MB, free: 14.11 MB / 334.1 MB Notification: Performance of Templates: time 0.007944/0.1997, allocations: 3.132 MB / 394.6 MB, free: 10.98 MB / 334.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.makefile (rm -f Modelica_3.1_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.sim & ./Modelica_3.1_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe 2>&1)