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.0008254/0.0008255, allocations: 86.72 kB / 15.06 MB, free: 1.09 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.0008261/0.0008262, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.721/1.721, allocations: 205.4 MB / 222.1 MB, free: 5.871 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.3702/0.3702, allocations: 40 MB / 310.4 MB, free: 9.828 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.0005506/0.0005508, allocations: 16 kB / 378.8 MB, free: 12.65 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1393/0.1398, allocations: 57.96 MB / 436.8 MB, free: 2.598 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.0006309/0.1405, allocations: 222.1 kB / 437 MB, free: 2.383 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001906/0.1424, allocations: 1.356 MB / 438.4 MB, free: 1.008 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.861e-05/0.1425, allocations: 4 kB / 438.4 MB, free: 1.004 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 1.12e-05/0.1425, allocations: 0 / 438.4 MB, free: 1.004 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 7.014e-06/0.1425, allocations: 0 / 438.4 MB, free: 1.004 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.0005018/0.143, allocations: 91.78 kB / 438.5 MB, free: 0.9141 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 3.419e-05/0.143, allocations: 4 kB / 438.5 MB, free: 0.9102 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.561e-05/0.1431, allocations: 7.984 kB / 438.5 MB, free: 0.9023 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.9e-05/0.1431, allocations: 0 / 438.5 MB, free: 0.9023 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.994e-05/0.1431, allocations: 3.984 kB / 438.5 MB, free: 0.8984 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 8.076e-06/0.1432, allocations: 3.938 kB / 438.5 MB, free: 0.8945 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001719/0.1433, allocations: 39.91 kB / 438.5 MB, free: 0.8555 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 8.757e-06/0.1434, allocations: 0 / 438.5 MB, free: 0.8555 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 3.089e-05/0.1434, allocations: 29.7 kB / 438.5 MB, free: 0.8203 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 8.898e-05/0.1435, allocations: 31.95 kB / 438.6 MB, free: 0.7891 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.723e-06/0.1435, allocations: 3.938 kB / 438.6 MB, free: 0.7852 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.923e-06/0.1435, allocations: 0 / 438.6 MB, free: 0.7852 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.33e-06/0.1435, allocations: 0 / 438.6 MB, free: 0.7852 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.0003479/0.1439, allocations: 341.1 kB / 438.9 MB, free: 408 kB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.65e-05/0.1439, allocations: 8.031 kB / 438.9 MB, free: 400 kB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.573e-05/0.144, allocations: 11.98 kB / 438.9 MB, free: 388 kB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001581/0.1441, allocations: 163.1 kB / 439.1 MB, free: 184 kB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.655e-05/0.1442, allocations: 0 / 439.1 MB, free: 184 kB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.004e-05/0.1442, allocations: 4 kB / 439.1 MB, free: 180 kB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.519e-05/0.1443, allocations: 33.7 kB / 439.1 MB, free: 140 kB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.774e-06/0.1443, allocations: 0 / 439.1 MB, free: 140 kB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.187e-06/0.1443, allocations: 0 / 439.1 MB, free: 140 kB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.234e-06/0.1443, allocations: 3.953 kB / 439.1 MB, free: 136 kB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.123e-05/0.1444, allocations: 3.938 kB / 439.1 MB, free: 132 kB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001585/0.1445, allocations: 145.7 kB / 439.3 MB, free: 15.94 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.137e-05/0.1446, allocations: 18.56 kB / 439.3 MB, free: 15.91 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.841e-05/0.1446, allocations: 8.859 kB / 439.3 MB, free: 15.9 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.205e-06/0.1446, allocations: 4.094 kB / 439.3 MB, free: 15.89 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.874e-05/0.1447, allocations: 60.27 kB / 439.4 MB, free: 15.82 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 1.032e-06/0.1447, allocations: 0 / 439.4 MB, free: 15.82 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001972/0.1449, allocations: 67.25 kB / 439.4 MB, free: 15.74 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.164e-05/0.1449, allocations: 85.05 kB / 439.5 MB, free: 15.64 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.939e-05/0.145, allocations: 89.86 kB / 439.6 MB, free: 15.54 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.486e-05/0.145, allocations: 33.77 kB / 439.6 MB, free: 15.5 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.814e-05/0.1451, allocations: 80.14 kB / 439.7 MB, free: 15.42 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.93e-05/0.1451, allocations: 0 / 439.7 MB, free: 15.42 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.853e-06/0.1451, allocations: 4 kB / 439.7 MB, free: 15.42 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001295/0.1452, allocations: 314.8 kB / 440 MB, free: 15.1 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.368e-06/0.1452, allocations: 0 / 440 MB, free: 15.1 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.39e-06/0.1452, allocations: 0 / 440 MB, free: 15.1 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.175e-05/0.1453, allocations: 29.7 kB / 440.1 MB, free: 15.07 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.033e-06/0.1453, allocations: 4.062 kB / 440.1 MB, free: 15.06 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.96e-05/0.1454, allocations: 63.33 kB / 440.1 MB, free: 14.99 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.963e-05/0.1454, allocations: 33.7 kB / 440.1 MB, free: 14.95 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.529e-06/0.1454, allocations: 0 / 440.1 MB, free: 14.95 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.42e-05/0.1455, allocations: 0 / 440.1 MB, free: 14.95 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.12e-07/0.1455, allocations: 0 / 440.1 MB, free: 14.95 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.609e-06/0.1455, allocations: 0 / 440.1 MB, free: 14.95 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.774e-05/0.1455, allocations: 3.953 kB / 440.2 MB, free: 14.95 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.766e-06/0.1455, allocations: 4 kB / 440.2 MB, free: 14.94 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.406e-05/0.1456, allocations: 144.6 kB / 440.3 MB, free: 14.79 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.171e-06/0.1456, allocations: 0 / 440.3 MB, free: 14.79 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.249e-05/0.1456, allocations: 11.06 kB / 440.3 MB, free: 14.77 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.81e-07/0.1456, allocations: 0 / 440.3 MB, free: 14.77 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.908e-06/0.1457, allocations: 0 / 440.3 MB, free: 14.77 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.685e-06/0.1457, allocations: 0 / 440.3 MB, free: 14.77 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.923e-05/0.1458, allocations: 145.6 kB / 440.5 MB, free: 14.58 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.71e-07/0.1458, allocations: 0 / 440.5 MB, free: 14.58 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.146e-06/0.1458, allocations: 3.984 kB / 440.5 MB, free: 14.58 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.906e-06/0.1458, allocations: 4 kB / 440.5 MB, free: 14.57 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.083e-06/0.1458, allocations: 0 / 440.5 MB, free: 14.57 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.92e-07/0.1458, allocations: 4 kB / 440.5 MB, free: 14.57 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.61e-07/0.1458, allocations: 0 / 440.5 MB, free: 14.57 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.591e-05/0.1459, allocations: 94.73 kB / 440.6 MB, free: 14.45 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.79e-05/0.1459, allocations: 81.09 kB / 440.6 MB, free: 14.36 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.224e-05/0.146, allocations: 0 / 440.6 MB, free: 14.36 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.135e-06/0.146, allocations: 0 / 440.6 MB, free: 14.36 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.102e-05/0.146, allocations: 0 / 440.6 MB, free: 14.36 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.4e-06/0.146, allocations: 12.03 kB / 440.6 MB, free: 14.34 MB / 382.1 MB Notification: Performance of sorting global known variables: time 2.9e-05/0.146, allocations: 79.22 kB / 440.7 MB, free: 14.27 MB / 382.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1461, allocations: 0 / 440.7 MB, free: 14.27 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002171/0.1463, allocations: 20 kB / 440.7 MB, free: 14.25 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002838/0.1466, allocations: 147 kB / 440.9 MB, free: 14.1 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 8.441e-05/0.1467, allocations: 55.41 kB / 440.9 MB, free: 14.03 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.945e-06/0.1467, allocations: 4.062 kB / 440.9 MB, free: 14.03 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 3.42e-05/0.1467, allocations: 67.33 kB / 441 MB, free: 13.95 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001279/0.1468, allocations: 11.39 kB / 441 MB, free: 13.94 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001867/0.147, allocations: 70.77 kB / 441.1 MB, free: 13.85 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002588/0.1473, allocations: 0.6692 MB / 441.8 MB, free: 13.15 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 9.818e-06/0.1473, allocations: 3.984 kB / 441.8 MB, free: 13.15 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.948e-06/0.1473, allocations: 11.44 kB / 441.8 MB, free: 13.14 MB / 382.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1474, allocations: 0 / 441.8 MB, free: 13.14 MB / 382.1 MB Notification: Performance of Templates: time 0.002967/0.1503, allocations: 0.5974 MB / 442.4 MB, free: 12.54 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: