Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions") translateModel(ModelicaTest.Math.TestScalarFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008615/0.0008615, allocations: 96.53 kB / 16.98 MB, free: 5.938 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.0009882/0.0009883, allocations: 189 kB / 17.88 MB, free: 5.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.368/1.368, allocations: 223.2 MB / 241.8 MB, free: 14.65 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2102/0.2102, allocations: 44.22 MB / 337.1 MB, free: 2.656 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000363/0.0003633, allocations: 8 kB / 409.5 MB, free: 27.67 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1318/0.1322, allocations: 61.91 MB / 471.4 MB, free: 13.73 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.000548/0.1328, allocations: 213.2 kB / 471.6 MB, free: 13.52 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001541/0.1343, allocations: 1.319 MB / 473 MB, free: 12.18 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.342e-05/0.1344, allocations: 0 / 473 MB, free: 12.18 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.111e-05/0.1344, allocations: 0 / 473 MB, free: 12.18 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.819e-06/0.1344, allocations: 0 / 473 MB, free: 12.18 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+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.0004328/0.1348, allocations: 95.39 kB / 473.1 MB, free: 12.09 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.128e-05/0.1349, allocations: 4 kB / 473.1 MB, free: 12.09 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.956e-05/0.1349, allocations: 3.984 kB / 473.1 MB, free: 12.09 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.331e-05/0.135, allocations: 0 / 473.1 MB, free: 12.09 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.571e-05/0.135, allocations: 4 kB / 473.1 MB, free: 12.08 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.025e-06/0.135, allocations: 0 / 473.1 MB, free: 12.08 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000158/0.1352, allocations: 39.97 kB / 473.1 MB, free: 12.04 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.943e-06/0.1352, allocations: 3.938 kB / 473.1 MB, free: 12.04 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.791e-05/0.1352, allocations: 29.64 kB / 473.1 MB, free: 12 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 7.811e-05/0.1353, allocations: 19.97 kB / 473.2 MB, free: 11.98 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.665e-06/0.1353, allocations: 0 / 473.2 MB, free: 11.98 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.734e-06/0.1353, allocations: 0 / 473.2 MB, free: 11.98 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.64e-06/0.1353, allocations: 4 kB / 473.2 MB, free: 11.98 MB / 350.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.0002851/0.1356, allocations: 349.1 kB / 473.5 MB, free: 11.59 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.78e-05/0.1357, allocations: 8.031 kB / 473.5 MB, free: 11.58 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.178e-05/0.1357, allocations: 0 / 473.5 MB, free: 11.58 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.72e-05/0.1358, allocations: 159.1 kB / 473.7 MB, free: 11.38 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.228e-05/0.1358, allocations: 4 kB / 473.7 MB, free: 11.38 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.034e-05/0.1358, allocations: 0 / 473.7 MB, free: 11.38 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.562e-05/0.1359, allocations: 33.64 kB / 473.7 MB, free: 11.34 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.373e-06/0.1359, allocations: 4 kB / 473.7 MB, free: 11.34 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.564e-06/0.1359, allocations: 4 kB / 473.7 MB, free: 11.33 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.927e-06/0.136, allocations: 0 / 473.7 MB, free: 11.33 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.698e-05/0.136, allocations: 7.938 kB / 473.7 MB, free: 11.32 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001135/0.1361, allocations: 145.7 kB / 473.9 MB, free: 11.13 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.647e-05/0.1361, allocations: 18.61 kB / 473.9 MB, free: 11.11 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.538e-06/0.1362, allocations: 3.984 kB / 473.9 MB, free: 11.1 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.292e-05/0.1362, allocations: 56.27 kB / 473.9 MB, free: 11.03 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.022e-06/0.1362, allocations: 0 / 473.9 MB, free: 11.03 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001605/0.1364, allocations: 75.47 kB / 474 MB, free: 10.95 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.135e-05/0.1364, allocations: 81.11 kB / 474.1 MB, free: 10.85 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.343e-05/0.1365, allocations: 89.86 kB / 474.2 MB, free: 10.75 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.401e-05/0.1365, allocations: 33.69 kB / 474.2 MB, free: 10.71 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.387e-05/0.1365, allocations: 80.14 kB / 474.3 MB, free: 10.63 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.656e-05/0.1365, allocations: 0 / 474.3 MB, free: 10.63 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.355e-06/0.1366, allocations: 0 / 474.3 MB, free: 10.63 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.51e-05/0.1366, allocations: 310.8 kB / 474.6 MB, free: 10.32 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.514e-06/0.1367, allocations: 0 / 474.6 MB, free: 10.32 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.951e-06/0.1367, allocations: 8 kB / 474.6 MB, free: 10.31 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.585e-05/0.1367, allocations: 29.7 kB / 474.6 MB, free: 10.27 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.1367, allocations: 0 / 474.6 MB, free: 10.27 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.306e-05/0.1368, allocations: 63.39 kB / 474.7 MB, free: 10.2 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.77e-05/0.1368, allocations: 29.7 kB / 474.7 MB, free: 10.16 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.823e-06/0.1368, allocations: 0 / 474.7 MB, free: 10.16 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.322e-05/0.1368, allocations: 7.891 kB / 474.7 MB, free: 10.16 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.897e-06/0.1368, allocations: 4 kB / 474.7 MB, free: 10.15 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.1e-06/0.1369, allocations: 3.938 kB / 474.7 MB, free: 10.15 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.636e-05/0.1369, allocations: 8.078 kB / 474.7 MB, free: 10.14 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.751e-06/0.1369, allocations: 0 / 474.7 MB, free: 10.14 MB / 350.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 8.024e-05/0.137, allocations: 136.1 kB / 474.9 MB, free: 9.992 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.743e-06/0.137, allocations: 3.938 kB / 474.9 MB, free: 9.988 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.225e-05/0.137, allocations: 11.06 kB / 474.9 MB, free: 9.977 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.092e-06/0.137, allocations: 0 / 474.9 MB, free: 9.977 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.53e-06/0.137, allocations: 3.953 kB / 474.9 MB, free: 9.973 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.094e-06/0.137, allocations: 0 / 474.9 MB, free: 9.973 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.101e-05/0.1371, allocations: 149.7 kB / 475 MB, free: 9.777 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.71e-07/0.1371, allocations: 4 kB / 475.1 MB, free: 9.773 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.51e-07/0.1371, allocations: 0 / 475.1 MB, free: 9.773 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.182e-06/0.1371, allocations: 0 / 475.1 MB, free: 9.773 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.823e-06/0.1371, allocations: 0 / 475.1 MB, free: 9.773 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.81e-07/0.1371, allocations: 0 / 475.1 MB, free: 9.773 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.246e-06/0.1372, allocations: 3.984 kB / 475.1 MB, free: 9.77 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.625e-05/0.1372, allocations: 98.64 kB / 475.2 MB, free: 9.648 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.599e-05/0.1373, allocations: 77.11 kB / 475.2 MB, free: 9.555 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.402e-05/0.1373, allocations: 12.02 kB / 475.2 MB, free: 9.543 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.506e-06/0.1373, allocations: 0 / 475.2 MB, free: 9.543 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.774e-05/0.1373, allocations: 0 / 475.2 MB, free: 9.543 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.274e-06/0.1373, allocations: 0 / 475.2 MB, free: 9.543 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.495e-05/0.1374, allocations: 79.23 kB / 475.3 MB, free: 9.465 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1374, allocations: 0 / 475.3 MB, free: 9.465 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000202/0.1376, allocations: 12 kB / 475.3 MB, free: 9.453 MB / 350.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.0002608/0.1378, allocations: 143.5 kB / 475.5 MB, free: 9.312 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 8.081e-05/0.1379, allocations: 59.41 kB / 475.5 MB, free: 9.242 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.963e-06/0.1379, allocations: 0 / 475.5 MB, free: 9.242 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 2.9e-05/0.138, allocations: 55.41 kB / 475.6 MB, free: 9.176 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 7.649e-05/0.1381, allocations: 4 kB / 475.6 MB, free: 9.172 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001481/0.1382, allocations: 86.84 kB / 475.7 MB, free: 9.059 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001821/0.1384, allocations: 0.677 MB / 476.3 MB, free: 8.355 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.631e-06/0.1384, allocations: 4.125 kB / 476.3 MB, free: 8.352 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.057e-05/0.1384, allocations: 11.38 kB / 476.4 MB, free: 8.34 MB / 350.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1384, allocations: 0 / 476.4 MB, free: 8.34 MB / 350.1 MB Notification: Performance of Templates: time 0.002794/0.1412, allocations: 0.5934 MB / 477 MB, free: 7.746 MB / 350.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions.sim & ./ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/TestScalarFunctions/TestScalarFunctions.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches