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.00106/0.00106, allocations: 111.3 kB / 15.23 MB, free: 0.6367 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.001095/0.001096, allocations: 195.9 kB / 16.14 MB, free: 6.738 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.613/1.613, allocations: 205.1 MB / 222 MB, free: 4.992 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.3474/0.3474, allocations: 39.94 MB / 309.3 MB, free: 9.578 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.00132/0.00132, allocations: 67.89 kB / 376.9 MB, free: 13.47 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1303/0.1317, allocations: 56.88 MB / 433.8 MB, free: 4.492 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.001784/0.1335, allocations: 0.5558 MB / 434.4 MB, free: 3.934 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002/0.1355, allocations: 1.414 MB / 435.8 MB, free: 2.5 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.382e-05/0.1355, allocations: 0 / 435.8 MB, free: 2.5 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 1.479e-05/0.1356, allocations: 4 kB / 435.8 MB, free: 2.496 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 5.39e-06/0.1356, allocations: 0 / 435.8 MB, free: 2.496 MB / 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.0005946/0.1362, allocations: 91.78 kB / 435.9 MB, free: 2.406 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 4.202e-05/0.1362, allocations: 0 / 435.9 MB, free: 2.406 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.068e-05/0.1363, allocations: 4 kB / 435.9 MB, free: 2.402 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.114e-05/0.1363, allocations: 0 / 435.9 MB, free: 2.402 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.638e-05/0.1363, allocations: 0 / 435.9 MB, free: 2.402 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 9.418e-06/0.1364, allocations: 0 / 435.9 MB, free: 2.402 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000205/0.1366, allocations: 43.97 kB / 435.9 MB, free: 2.359 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 7.724e-06/0.1366, allocations: 0 / 435.9 MB, free: 2.359 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 2.7e-05/0.1366, allocations: 7.922 kB / 435.9 MB, free: 2.352 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001307/0.1368, allocations: 35.94 kB / 436 MB, free: 2.316 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.1368, allocations: 4 kB / 436 MB, free: 2.312 MB / 366.1 MB Notification: Performance of FrontEnd: time 8.52e-07/0.1368, allocations: 0 / 436 MB, free: 2.312 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.615e-06/0.1368, allocations: 4 kB / 436 MB, free: 2.309 MB / 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.0003921/0.1372, allocations: 345.3 kB / 436.3 MB, free: 1.918 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.377e-05/0.1372, allocations: 12.03 kB / 436.3 MB, free: 1.906 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.118e-05/0.1373, allocations: 8.906 kB / 436.3 MB, free: 1.898 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000128/0.1374, allocations: 160.4 kB / 436.5 MB, free: 1.703 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.285e-05/0.1374, allocations: 384 / 436.5 MB, free: 1.703 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.899e-06/0.1375, allocations: 384 / 436.5 MB, free: 1.703 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001005/0.1376, allocations: 41.95 kB / 436.5 MB, free: 1.656 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.284e-06/0.1376, allocations: 0 / 436.5 MB, free: 1.656 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.027e-06/0.1376, allocations: 0 / 436.5 MB, free: 1.656 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.37e-06/0.1376, allocations: 0 / 436.5 MB, free: 1.656 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.04e-05/0.1376, allocations: 4 kB / 436.5 MB, free: 1.652 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000146/0.1378, allocations: 149.7 kB / 436.7 MB, free: 1.457 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.736e-05/0.1378, allocations: 14.58 kB / 436.7 MB, free: 1.434 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.916e-05/0.1379, allocations: 8.953 kB / 436.7 MB, free: 1.422 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.683e-06/0.1379, allocations: 4 kB / 436.7 MB, free: 1.418 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.369e-05/0.1379, allocations: 68.08 kB / 436.8 MB, free: 1.336 MB / 366.1 MB Notification: Performance of pre-optimization done (n=1): time 1.422e-06/0.1379, allocations: 0 / 436.8 MB, free: 1.336 MB / 366.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002024/0.1381, allocations: 71.3 kB / 436.8 MB, free: 1.254 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.415e-05/0.1382, allocations: 77.11 kB / 436.9 MB, free: 1.16 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.156e-05/0.1383, allocations: 89.86 kB / 437 MB, free: 1.062 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.215e-05/0.1383, allocations: 29.64 kB / 437 MB, free: 1.027 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.892e-05/0.1383, allocations: 92.25 kB / 437.1 MB, free: 0.9336 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.889e-05/0.1383, allocations: 0 / 437.1 MB, free: 0.9336 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.547e-05/0.1384, allocations: 9.719 kB / 437.1 MB, free: 0.918 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001264/0.1385, allocations: 314.8 kB / 437.4 MB, free: 0.6016 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.11e-05/0.1385, allocations: 4 kB / 437.4 MB, free: 0.5977 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.266e-06/0.1385, allocations: 3.984 kB / 437.4 MB, free: 0.5938 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.223e-05/0.1386, allocations: 64.2 kB / 437.5 MB, free: 0.5156 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.563e-06/0.1386, allocations: 0 / 437.5 MB, free: 0.5156 MB / 366.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.461e-05/0.1387, allocations: 67.47 kB / 437.6 MB, free: 448 kB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.019e-05/0.1387, allocations: 33.64 kB / 437.6 MB, free: 408 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.608e-06/0.1387, allocations: 0 / 437.6 MB, free: 408 kB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.092e-05/0.1387, allocations: 3.984 kB / 437.6 MB, free: 404 kB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.22e-07/0.1387, allocations: 0 / 437.6 MB, free: 404 kB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.789e-06/0.1387, allocations: 0 / 437.6 MB, free: 404 kB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.751e-05/0.1388, allocations: 4 kB / 437.6 MB, free: 400 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.133e-06/0.1388, allocations: 0 / 437.6 MB, free: 400 kB / 366.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.316e-05/0.1389, allocations: 139.5 kB / 437.7 MB, free: 244 kB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.235e-05/0.1389, allocations: 11.97 kB / 437.8 MB, free: 232 kB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.111e-05/0.1389, allocations: 3.125 kB / 437.8 MB, free: 228 kB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.21e-07/0.1389, allocations: 0 / 437.8 MB, free: 228 kB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.99e-06/0.1389, allocations: 0 / 437.8 MB, free: 228 kB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.354e-06/0.1389, allocations: 3.938 kB / 437.8 MB, free: 224 kB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.586e-05/0.139, allocations: 145.7 kB / 437.9 MB, free: 28 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.61e-07/0.139, allocations: 0 / 437.9 MB, free: 28 kB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.21e-07/0.139, allocations: 4 kB / 437.9 MB, free: 24 kB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.675e-06/0.139, allocations: 3.938 kB / 437.9 MB, free: 20 kB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.732e-06/0.1391, allocations: 0 / 437.9 MB, free: 20 kB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.61e-07/0.1391, allocations: 4 kB / 437.9 MB, free: 16 kB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.11e-07/0.1391, allocations: 0 / 437.9 MB, free: 16 kB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001073/0.1392, allocations: 90.83 kB / 438 MB, free: 15.9 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.58e-05/0.1393, allocations: 77.11 kB / 438.1 MB, free: 15.81 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.424e-05/0.1393, allocations: 3.938 kB / 438.1 MB, free: 15.8 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.405e-06/0.1393, allocations: 0 / 438.1 MB, free: 15.8 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.428e-05/0.1393, allocations: 4 kB / 438.1 MB, free: 15.8 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.957e-06/0.1393, allocations: 0 / 438.1 MB, free: 15.8 MB / 382.1 MB Notification: Performance of sorting global known variables: time 3.278e-05/0.1394, allocations: 91.23 kB / 438.2 MB, free: 15.71 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1394, allocations: 3.938 kB / 438.2 MB, free: 15.71 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002236/0.1396, allocations: 12 kB / 438.2 MB, free: 15.7 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.0002876/0.1399, allocations: 146.6 kB / 438.3 MB, free: 15.55 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 8.757e-05/0.14, allocations: 59.41 kB / 438.4 MB, free: 15.48 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.14, allocations: 4.062 kB / 438.4 MB, free: 15.48 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 3.133e-05/0.14, allocations: 55.41 kB / 438.4 MB, free: 15.41 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001213/0.1402, allocations: 4 kB / 438.5 MB, free: 15.41 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001744/0.1403, allocations: 74.75 kB / 438.5 MB, free: 15.31 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002419/0.1406, allocations: 0.6731 MB / 439.2 MB, free: 14.61 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 5.15e-06/0.1406, allocations: 0 / 439.2 MB, free: 14.61 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.658e-06/0.1406, allocations: 7.438 kB / 439.2 MB, free: 14.6 MB / 382.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1406, allocations: 0 / 439.2 MB, free: 14.6 MB / 382.1 MB Notification: Performance of Templates: time 0.003068/0.1437, allocations: 0.7073 MB / 439.9 MB, free: 13.89 MB / 382.1 MB make -j1 -f ModelicaTest_3.2.2_ModelicaTest.Math.TestScalarFunctions.makefile (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)