Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Math.TestScalarFunctions.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.TestScalarFunctions,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Math.TestScalarFunctions") translateModel(ModelicaTest.Math.TestScalarFunctions,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Math.TestScalarFunctions") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008876/0.0008877, allocations: 98.11 kB / 15.36 MB, free: 0.7344 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.007965/0.007965, allocations: 172.2 kB / 16.27 MB, free: 6.66 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.712/1.712, allocations: 205.4 MB / 222.4 MB, free: 5.797 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.4541/0.4541, allocations: 40 MB / 310.7 MB, free: 9.441 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.0008922/0.0008924, allocations: 16 kB / 379.4 MB, free: 12.02 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1656/0.1665, allocations: 57.96 MB / 437.4 MB, free: 1.961 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.0006835/0.1672, allocations: 222.1 kB / 437.6 MB, free: 1.746 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002285/0.1695, allocations: 1.395 MB / 439 MB, free: 340 kB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.258e-05/0.1696, allocations: 0 / 439 MB, free: 340 kB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 1.914e-05/0.1696, allocations: 4 kB / 439 MB, free: 336 kB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 5.25e-06/0.1696, allocations: 0 / 439 MB, free: 336 kB / 366.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/Math.mo:4:3-36:22:writable] Warning: Pure function ‘ModelicaTest.Math.ScalarFunctions‘ contains a call to impure function ‘Modelica.Utilities.Streams.print‘. Notification: Performance of NFTyping.typeClassSections: time 0.0006066/0.1702, allocations: 87.78 kB / 439.1 MB, free: 248 kB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 4.537e-05/0.1703, allocations: 4 kB / 439.1 MB, free: 244 kB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.262e-05/0.1703, allocations: 11.98 kB / 439.1 MB, free: 232 kB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.943e-05/0.1704, allocations: 3.938 kB / 439.1 MB, free: 228 kB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.697e-05/0.1704, allocations: 3.984 kB / 439.1 MB, free: 224 kB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 9.628e-06/0.1704, allocations: 0 / 439.1 MB, free: 224 kB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002122/0.1706, allocations: 39.97 kB / 439.2 MB, free: 184 kB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 8.135e-06/0.1707, allocations: 0 / 439.2 MB, free: 184 kB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 4.646e-05/0.1707, allocations: 29.7 kB / 439.2 MB, free: 148 kB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001322/0.1708, allocations: 47.86 kB / 439.2 MB, free: 100 kB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.1709, allocations: 4 kB / 439.2 MB, free: 96 kB / 366.1 MB Notification: Performance of FrontEnd: time 2.174e-06/0.1709, allocations: 0 / 439.2 MB, free: 96 kB / 366.1 MB Notification: Performance of Transformations before backend: time 5.821e-06/0.1709, allocations: 0 / 439.2 MB, free: 96 kB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0004071/0.1713, allocations: 337.3 kB / 439.6 MB, free: 15.71 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.492e-05/0.1713, allocations: 12.03 kB / 439.6 MB, free: 15.7 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.409e-05/0.1714, allocations: 0.9375 kB / 439.6 MB, free: 15.7 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001153/0.1715, allocations: 164.4 kB / 439.8 MB, free: 15.5 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.378e-05/0.1715, allocations: 4.312 kB / 439.8 MB, free: 15.5 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.062e-05/0.1715, allocations: 384 / 439.8 MB, free: 15.5 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.692e-05/0.1716, allocations: 42.02 kB / 439.8 MB, free: 15.45 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.142e-06/0.1717, allocations: 0 / 439.8 MB, free: 15.45 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.926e-06/0.1717, allocations: 0 / 439.8 MB, free: 15.45 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.045e-05/0.1717, allocations: 4 kB / 439.8 MB, free: 15.45 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.902e-05/0.1717, allocations: 0 / 439.8 MB, free: 15.45 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000123/0.1718, allocations: 149.7 kB / 439.9 MB, free: 15.25 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.068e-05/0.1719, allocations: 18.52 kB / 440 MB, free: 15.22 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.701e-05/0.1719, allocations: 4.953 kB / 440 MB, free: 15.21 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.837e-06/0.1719, allocations: 8 kB / 440 MB, free: 15.21 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.579e-05/0.172, allocations: 64.2 kB / 440 MB, free: 15.13 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 1.092e-06/0.172, allocations: 0 / 440 MB, free: 15.13 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001828/0.1722, allocations: 67.3 kB / 440.1 MB, free: 15.05 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.053e-05/0.1722, allocations: 77.11 kB / 440.2 MB, free: 14.96 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.194e-05/0.1723, allocations: 89.86 kB / 440.3 MB, free: 14.86 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.644e-05/0.1723, allocations: 25.7 kB / 440.3 MB, free: 14.83 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.32e-05/0.1723, allocations: 84.27 kB / 440.4 MB, free: 14.74 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.682e-05/0.1724, allocations: 8 kB / 440.4 MB, free: 14.73 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.574e-05/0.1724, allocations: 9.719 kB / 440.4 MB, free: 14.72 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001223/0.1725, allocations: 310.8 kB / 440.7 MB, free: 14.41 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.888e-06/0.1726, allocations: 3.938 kB / 440.7 MB, free: 14.4 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.941e-06/0.1726, allocations: 0 / 440.7 MB, free: 14.4 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.937e-05/0.1726, allocations: 64.25 kB / 440.8 MB, free: 14.32 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.215e-06/0.1726, allocations: 3.938 kB / 440.8 MB, free: 14.32 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.863e-05/0.1727, allocations: 67.47 kB / 440.8 MB, free: 14.24 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.859e-05/0.1728, allocations: 33.64 kB / 440.9 MB, free: 14.2 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.851e-06/0.1728, allocations: 0 / 440.9 MB, free: 14.2 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.344e-05/0.1728, allocations: 7.938 kB / 440.9 MB, free: 14.2 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.012e-06/0.1728, allocations: 0 / 440.9 MB, free: 14.2 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.579e-06/0.1728, allocations: 0 / 440.9 MB, free: 14.2 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.836e-05/0.1729, allocations: 0 / 440.9 MB, free: 14.2 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.006e-05/0.1729, allocations: 3.984 kB / 440.9 MB, free: 14.19 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: 1 (result) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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 8.998e-05/0.173, allocations: 139.5 kB / 441 MB, free: 14.04 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.418e-06/0.173, allocations: 7.969 kB / 441 MB, free: 14.03 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.199e-05/0.173, allocations: 3.125 kB / 441 MB, free: 14.03 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.294e-06/0.173, allocations: 0 / 441 MB, free: 14.03 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.691e-06/0.173, allocations: 0 / 441 MB, free: 14.03 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.315e-06/0.173, allocations: 0 / 441 MB, free: 14.03 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001147/0.1731, allocations: 149.7 kB / 441.2 MB, free: 13.83 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.532e-06/0.1732, allocations: 0 / 441.2 MB, free: 13.83 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.11e-07/0.1732, allocations: 0 / 441.2 MB, free: 13.83 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.745e-06/0.1732, allocations: 3.938 kB / 441.2 MB, free: 13.83 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.512e-06/0.1732, allocations: 0 / 441.2 MB, free: 13.83 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.533e-06/0.1732, allocations: 0 / 441.2 MB, free: 13.83 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.375e-06/0.1732, allocations: 8 kB / 441.2 MB, free: 13.82 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.672e-05/0.1733, allocations: 90.83 kB / 441.3 MB, free: 13.71 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.306e-05/0.1734, allocations: 77.11 kB / 441.3 MB, free: 13.61 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.605e-05/0.1734, allocations: 7.938 kB / 441.4 MB, free: 13.61 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.118e-05/0.1734, allocations: 0 / 441.4 MB, free: 13.61 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.553e-05/0.1734, allocations: 0 / 441.4 MB, free: 13.61 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.046e-06/0.1734, allocations: 3.938 kB / 441.4 MB, free: 13.6 MB / 382.1 MB Notification: Performance of sorting global known variables: time 3.307e-05/0.1735, allocations: 79.31 kB / 441.4 MB, free: 13.52 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1735, allocations: 0 / 441.4 MB, free: 13.52 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002172/0.1737, allocations: 12 kB / 441.4 MB, free: 13.51 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: 1 (result) * Number of discrete states: 1 (result) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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.000317/0.174, allocations: 155.3 kB / 441.6 MB, free: 13.35 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001029/0.1741, allocations: 63.39 kB / 441.7 MB, free: 13.28 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.1741, allocations: 0 / 441.7 MB, free: 13.28 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 3.152e-05/0.1742, allocations: 59.47 kB / 441.7 MB, free: 13.21 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001257/0.1743, allocations: 10.75 kB / 441.7 MB, free: 13.2 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000199/0.1745, allocations: 78.77 kB / 441.8 MB, free: 13.1 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000259/0.1748, allocations: 0.6731 MB / 442.5 MB, free: 12.4 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 7.063e-06/0.1748, allocations: 0 / 442.5 MB, free: 12.4 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.077e-05/0.1748, allocations: 7.438 kB / 442.5 MB, free: 12.4 MB / 382.1 MB Notification: Performance of SimCode: time 3.41e-07/0.1748, allocations: 0 / 442.5 MB, free: 12.4 MB / 382.1 MB Notification: Performance of Templates: time 0.00312/0.1779, allocations: 0.6878 MB / 443.2 MB, free: 11.71 MB / 382.1 MB make -j1 -f ModelicaTest_3.2.2_ModelicaTest.Math.TestScalarFunctions.makefile Environment - environmentSimulation: (rm -f ModelicaTest_3.2.2_ModelicaTest.Math.TestScalarFunctions.pipe ; mkfifo ModelicaTest_3.2.2_ModelicaTest.Math.TestScalarFunctions.pipe ; head -c 1048576 < ModelicaTest_3.2.2_ModelicaTest.Math.TestScalarFunctions.pipe >> ../files/ModelicaTest_3.2.2_ModelicaTest.Math.TestScalarFunctions.sim & ./ModelicaTest_3.2.2_ModelicaTest.Math.TestScalarFunctions -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.2_ModelicaTest.Math.TestScalarFunctions.pipe 2>&1) Environment - environmentSimulation: