Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Math.TestNonlinear.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo) 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(ModelicaTest.Math.TestNonlinear,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Math.TestNonlinear") translateModel(ModelicaTest.Math.TestNonlinear,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Math.TestNonlinear") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001052/0.001052, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001066/0.001066, allocations: 195.9 kB / 16.14 MB, free: 6.703 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.606/1.606, allocations: 205.1 MB / 222 MB, free: 4.766 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo): time 0.3788/0.3788, allocations: 39.93 MB / 309.3 MB, free: 9.406 MB / 254.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: ModelicaTest requested package Modelica of version 3.2.2. Modelica 3.2.3 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002541/0.002541, allocations: 62.97 kB / 376.9 MB, free: 13.14 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1521/0.1547, allocations: 56.88 MB / 433.8 MB, free: 4.148 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestNonlinear): time 0.001998/0.1567, allocations: 0.5557 MB / 434.3 MB, free: 3.59 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.003435/0.1602, allocations: 2.33 MB / 436.7 MB, free: 1.238 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.428e-06/0.1602, allocations: 4 kB / 436.7 MB, free: 1.234 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 4.258e-06/0.1603, allocations: 3.938 kB / 436.7 MB, free: 1.23 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 1.433e-06/0.1603, allocations: 0 / 436.7 MB, free: 1.23 MB / 366.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Math/Nonlinear.mo:8:5-85:27:writable] Warning: Pure function ‘Modelica.Math.Nonlinear.Examples.quadratureLobatto1‘ contains a call to impure function ‘Modelica.Utilities.Streams.print‘. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Math/Nonlinear.mo:87:5-157:27:writable] Warning: Pure function ‘Modelica.Math.Nonlinear.Examples.quadratureLobatto2‘ contains a call to impure function ‘Modelica.Utilities.Streams.print‘. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Math/Nonlinear.mo:159:5-233:33:writable] Warning: Pure function ‘Modelica.Math.Nonlinear.Examples.solveNonlinearEquations1‘ contains a call to impure function ‘Modelica.Utilities.Streams.print‘. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Math/Nonlinear.mo:235:5-313:33:writable] Warning: Pure function ‘Modelica.Math.Nonlinear.Examples.solveNonlinearEquations2‘ contains a call to impure function ‘Modelica.Utilities.Streams.print‘. Notification: Performance of NFTyping.typeClassSections: time 0.001884/0.1622, allocations: 0.5069 MB / 437.2 MB, free: 0.7227 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 3.143e-05/0.1622, allocations: 8 kB / 437.2 MB, free: 0.7148 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.439e-05/0.1622, allocations: 0 / 437.2 MB, free: 0.7148 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.759e-05/0.1623, allocations: 11.94 kB / 437.2 MB, free: 0.7031 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.36e-05/0.1624, allocations: 4 kB / 437.2 MB, free: 0.6992 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 6.052e-06/0.1624, allocations: 0 / 437.2 MB, free: 0.6992 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008278/0.1632, allocations: 0.6008 MB / 437.8 MB, free: 100 kB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 8.707e-06/0.1632, allocations: 3.984 kB / 437.8 MB, free: 96 kB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 1.88e-05/0.1633, allocations: 4 kB / 437.8 MB, free: 92 kB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005778/0.1638, allocations: 431.3 kB / 438.2 MB, free: 15.67 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.1639, allocations: 4 kB / 438.3 MB, free: 15.66 MB / 382.1 MB Notification: Performance of FrontEnd: time 9.82e-07/0.1639, allocations: 0 / 438.3 MB, free: 15.66 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.159e-06/0.1639, allocations: 0 / 438.3 MB, free: 15.66 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 0 * Number of variables: 0 Notification: Performance of Generate backend data structure: time 0.0004016/0.1643, allocations: 421.3 kB / 438.7 MB, free: 15.2 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.578e-05/0.1643, allocations: 8.031 kB / 438.7 MB, free: 15.19 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.668e-05/0.1644, allocations: 76.22 kB / 438.7 MB, free: 15.12 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001083/0.1645, allocations: 239.7 kB / 439 MB, free: 14.84 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.929e-05/0.1646, allocations: 154.9 kB / 439.1 MB, free: 14.69 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.557e-05/0.1646, allocations: 162.7 kB / 439.3 MB, free: 14.53 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.01e-05/0.1647, allocations: 101 kB / 439.4 MB, free: 14.43 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.601e-05/0.1647, allocations: 83.2 kB / 439.5 MB, free: 14.34 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.866e-05/0.1648, allocations: 150.6 kB / 439.6 MB, free: 14.2 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.813e-05/0.1648, allocations: 150.6 kB / 439.8 MB, free: 14.05 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.522e-05/0.1649, allocations: 158.5 kB / 439.9 MB, free: 13.89 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002413/0.1652, allocations: 446 kB / 440.4 MB, free: 13.41 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.704e-05/0.1652, allocations: 165.1 kB / 440.5 MB, free: 13.23 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.485e-05/0.1653, allocations: 84.08 kB / 440.6 MB, free: 13.15 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.624e-05/0.1653, allocations: 79.28 kB / 440.7 MB, free: 13.07 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.25e-05/0.1654, allocations: 143.4 kB / 440.8 MB, free: 12.91 MB / 382.1 MB Notification: Performance of pre-optimization done (n=0): time 7.91e-07/0.1654, allocations: 0 / 440.8 MB, free: 12.91 MB / 382.1 MB Notification: Performance of matching and sorting (n=0): time 8.09e-05/0.1655, allocations: 29.69 kB / 440.8 MB, free: 12.88 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.272e-05/0.1656, allocations: 156.4 kB / 441 MB, free: 12.71 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.812e-05/0.1656, allocations: 89.86 kB / 441.1 MB, free: 12.61 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.635e-05/0.1656, allocations: 25.7 kB / 441.1 MB, free: 12.58 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.373e-05/0.1657, allocations: 84.14 kB / 441.2 MB, free: 12.49 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.804e-06/0.1657, allocations: 4 kB / 441.2 MB, free: 12.49 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.346e-05/0.1657, allocations: 13.72 kB / 441.2 MB, free: 12.47 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001021/0.1658, allocations: 310.8 kB / 441.5 MB, free: 12.16 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.14e-06/0.1658, allocations: 0 / 441.5 MB, free: 12.16 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.168e-05/0.1658, allocations: 0 / 441.5 MB, free: 12.16 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.949e-05/0.1659, allocations: 79.28 kB / 441.6 MB, free: 12.08 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-05/0.1659, allocations: 79.22 kB / 441.7 MB, free: 12 MB / 382.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 5.42e-05/0.166, allocations: 33.62 kB / 441.7 MB, free: 11.96 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.049e-05/0.166, allocations: 87.31 kB / 441.8 MB, free: 11.88 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.374e-05/0.1661, allocations: 75.28 kB / 441.9 MB, free: 11.8 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.982e-05/0.1661, allocations: 158.5 kB / 442 MB, free: 11.64 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.344e-05/0.1662, allocations: 75.28 kB / 442.1 MB, free: 11.57 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.08e-05/0.1662, allocations: 162.5 kB / 442.2 MB, free: 11.41 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.234e-05/0.1663, allocations: 75.42 kB / 442.3 MB, free: 11.34 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.226e-05/0.1663, allocations: 79.28 kB / 442.4 MB, free: 11.26 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (0): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001172/0.1664, allocations: 264.4 kB / 442.7 MB, free: 10.99 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.117e-05/0.1665, allocations: 116.9 kB / 442.8 MB, free: 10.87 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.857e-05/0.1665, allocations: 108.1 kB / 442.9 MB, free: 10.75 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.033e-05/0.1666, allocations: 180.2 kB / 443.1 MB, free: 10.57 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.689e-05/0.1667, allocations: 180.3 kB / 443.2 MB, free: 10.39 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.577e-05/0.1667, allocations: 180.2 kB / 443.4 MB, free: 10.2 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002098/0.167, allocations: 409.2 kB / 443.8 MB, free: 9.746 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.256e-05/0.167, allocations: 104.9 kB / 443.9 MB, free: 9.637 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.399e-05/0.167, allocations: 104.9 kB / 444 MB, free: 9.527 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.795e-05/0.1671, allocations: 180.2 kB / 444.2 MB, free: 9.344 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.289e-05/0.1672, allocations: 184.3 kB / 444.4 MB, free: 9.156 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.843e-05/0.1672, allocations: 180.2 kB / 444.5 MB, free: 8.973 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.456e-05/0.1673, allocations: 180.2 kB / 444.7 MB, free: 8.789 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001228/0.1674, allocations: 307.8 kB / 445 MB, free: 8.465 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.732e-05/0.1675, allocations: 198 kB / 445.2 MB, free: 8.246 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.039e-05/0.1676, allocations: 188.2 kB / 445.4 MB, free: 8.055 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.677e-05/0.1677, allocations: 101 kB / 445.5 MB, free: 7.949 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.934e-05/0.1677, allocations: 188.2 kB / 445.7 MB, free: 7.758 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.959e-05/0.1678, allocations: 101 kB / 445.8 MB, free: 7.652 MB / 382.1 MB Notification: Performance of sorting global known variables: time 2.794e-05/0.1678, allocations: 75.28 kB / 445.8 MB, free: 7.578 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1678, allocations: 4 kB / 445.9 MB, free: 7.574 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004992/0.1683, allocations: 124 kB / 446 MB, free: 7.453 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (0): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008131/0.1691, allocations: 409.2 kB / 446.4 MB, free: 7.055 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 5.17e-05/0.1692, allocations: 7.984 kB / 446.4 MB, free: 7.047 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.1692, allocations: 7.938 kB / 446.4 MB, free: 7.039 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 1.243e-06/0.1692, allocations: 0 / 446.4 MB, free: 7.039 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003625/0.1696, allocations: 0.5224 MB / 446.9 MB, free: 6.512 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001577/0.1697, allocations: 154.1 kB / 447.1 MB, free: 6.336 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003251/0.1701, allocations: 0.6692 MB / 447.7 MB, free: 5.641 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 7.904e-06/0.1701, allocations: 4 kB / 447.7 MB, free: 5.637 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.303e-05/0.1701, allocations: 7.438 kB / 447.7 MB, free: 5.633 MB / 382.1 MB Notification: Performance of SimCode: time 2e-07/0.1701, allocations: 0 / 447.7 MB, free: 5.633 MB / 382.1 MB Notification: Performance of Templates: time 0.006498/0.1766, allocations: 3.069 MB / 450.8 MB, free: 2.562 MB / 382.1 MB make -j1 -f ModelicaTest_3.2.2_ModelicaTest.Math.TestNonlinear.makefile (rm -f ModelicaTest_3.2.2_ModelicaTest.Math.TestNonlinear.pipe ; mkfifo ModelicaTest_3.2.2_ModelicaTest.Math.TestNonlinear.pipe ; head -c 1048576 < ModelicaTest_3.2.2_ModelicaTest.Math.TestNonlinear.pipe >> ../files/ModelicaTest_3.2.2_ModelicaTest.Math.TestNonlinear.sim & ./ModelicaTest_3.2.2_ModelicaTest.Math.TestNonlinear -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.2_ModelicaTest.Math.TestNonlinear.pipe 2>&1)