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/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/ModelicaServices 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) 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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009561/0.0009562, allocations: 182.8 kB / 8.524 MB, free: 1.832 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.351/1.351, allocations: 221.4 MB / 230.3 MB, free: 7.641 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00103/0.00103, allocations: 101.8 kB / 281.2 MB, free: 5.438 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2048/0.2048, allocations: 44.15 MB / 376.1 MB, free: 3.207 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 8.736e-06/8.766e-06, allocations: 4.219 kB / 444 MB, free: 15.6 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1481/0.1482, allocations: 61.9 MB / 0.4941 GB, free: 1.633 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4448/0.5931, allocations: 85.73 MB / 0.5778 GB, free: 11.07 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001977/0.5933, allocations: 55.55 kB / 0.5778 GB, free: 11.04 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.01742/0.6108, allocations: 5.965 MB / 0.5837 GB, free: 5.109 MB / 394.7 MB Notification: Performance of Transformations before backend: time 6.903e-06/0.6108, allocations: 7.938 kB / 0.5837 GB, free: 5.102 MB / 394.7 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.0003268/0.6112, allocations: 360.1 kB / 0.584 GB, free: 4.699 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.896e-05/0.6112, allocations: 11.97 kB / 0.584 GB, free: 4.688 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.64e-05/0.6113, allocations: 7.906 kB / 0.584 GB, free: 4.68 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.66e-05/0.6114, allocations: 163 kB / 0.5842 GB, free: 4.48 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.333e-05/0.6114, allocations: 0 / 0.5842 GB, free: 4.48 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.214e-05/0.6114, allocations: 4 kB / 0.5842 GB, free: 4.477 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 4.266e-05/0.6114, allocations: 0 / 0.5842 GB, free: 4.477 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.056e-05/0.6115, allocations: 33.69 kB / 0.5842 GB, free: 4.438 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.073e-06/0.6115, allocations: 0 / 0.5842 GB, free: 4.438 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.628e-06/0.6115, allocations: 0 / 0.5842 GB, free: 4.438 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.322e-06/0.6116, allocations: 7.906 kB / 0.5842 GB, free: 4.43 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001127/0.6117, allocations: 126.2 kB / 0.5844 GB, free: 4.27 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.237e-05/0.6117, allocations: 14.58 kB / 0.5844 GB, free: 4.246 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.621e-05/0.6117, allocations: 8.797 kB / 0.5844 GB, free: 4.234 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.097e-06/0.6118, allocations: 4.094 kB / 0.5844 GB, free: 4.23 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.506e-05/0.6118, allocations: 56.27 kB / 0.5844 GB, free: 4.16 MB / 394.7 MB Notification: Performance of pre-optimization done (n=1): time 1.232e-06/0.6118, allocations: 0 / 0.5844 GB, free: 4.16 MB / 394.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001272/0.6119, allocations: 33.69 kB / 0.5845 GB, free: 4.121 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.159e-05/0.612, allocations: 85.14 kB / 0.5846 GB, free: 4.02 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.484e-05/0.6121, allocations: 85 kB / 0.5846 GB, free: 3.93 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.184e-05/0.6121, allocations: 25.7 kB / 0.5847 GB, free: 3.898 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.109e-05/0.6121, allocations: 80.14 kB / 0.5847 GB, free: 3.816 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.827e-05/0.6121, allocations: 3.906 kB / 0.5847 GB, free: 3.812 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.773e-06/0.6121, allocations: 0 / 0.5847 GB, free: 3.812 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001166/0.6123, allocations: 314.8 kB / 0.585 GB, free: 3.496 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.264e-06/0.6123, allocations: 0 / 0.585 GB, free: 3.496 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.753e-06/0.6123, allocations: 4 kB / 0.585 GB, free: 3.492 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.561e-05/0.6123, allocations: 0 / 0.585 GB, free: 3.492 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.122e-06/0.6123, allocations: 3.938 kB / 0.585 GB, free: 3.488 MB / 394.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.559e-05/0.6124, allocations: 33.7 kB / 0.5851 GB, free: 3.449 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.54e-05/0.6124, allocations: 7.984 kB / 0.5851 GB, free: 3.441 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.428e-06/0.6124, allocations: 3.938 kB / 0.5851 GB, free: 3.438 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.359e-05/0.6124, allocations: 0.8438 kB / 0.5851 GB, free: 3.438 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.184e-06/0.6124, allocations: 4 kB / 0.5851 GB, free: 3.434 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.36e-06/0.6124, allocations: 0.625 kB / 0.5851 GB, free: 3.434 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.139e-05/0.6125, allocations: 96 / 0.5851 GB, free: 3.434 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.466e-06/0.6125, allocations: 8 kB / 0.5851 GB, free: 3.426 MB / 394.7 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 () * 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 0.0001037/0.6126, allocations: 130.6 kB / 0.5852 GB, free: 3.285 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.528e-06/0.6126, allocations: 4 kB / 0.5852 GB, free: 3.281 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.658e-05/0.6126, allocations: 10.94 kB / 0.5852 GB, free: 3.27 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.22e-07/0.6126, allocations: 0 / 0.5852 GB, free: 3.27 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.709e-06/0.6126, allocations: 7.938 kB / 0.5852 GB, free: 3.262 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.827e-06/0.6126, allocations: 0 / 0.5852 GB, free: 3.262 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.96e-05/0.6127, allocations: 130.1 kB / 0.5854 GB, free: 3.098 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.41e-07/0.6127, allocations: 0 / 0.5854 GB, free: 3.098 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.61e-07/0.6127, allocations: 4 kB / 0.5854 GB, free: 3.094 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.133e-06/0.6128, allocations: 0 / 0.5854 GB, free: 3.094 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.418e-06/0.6128, allocations: 4 kB / 0.5854 GB, free: 3.09 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.62e-07/0.6128, allocations: 0 / 0.5854 GB, free: 3.09 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/0.6128, allocations: 0 / 0.5854 GB, free: 3.09 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 7.007e-05/0.6129, allocations: 61.06 kB / 0.5854 GB, free: 3.012 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.403e-05/0.6129, allocations: 85.02 kB / 0.5855 GB, free: 2.91 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.469e-05/0.6129, allocations: 0 / 0.5855 GB, free: 2.91 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.306e-06/0.6129, allocations: 4.031 kB / 0.5855 GB, free: 2.906 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.28e-05/0.6129, allocations: 0 / 0.5855 GB, free: 2.906 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.204e-06/0.613, allocations: 0 / 0.5855 GB, free: 2.906 MB / 394.7 MB Notification: Performance of sort global known variables: time 2.797e-05/0.613, allocations: 75.28 kB / 0.5856 GB, free: 2.832 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0002001/0.6132, allocations: 4 kB / 0.5856 GB, free: 2.828 MB / 394.7 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) * 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.0001016/0.6133, allocations: 91.25 kB / 0.5857 GB, free: 2.73 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 7.677e-05/0.6134, allocations: 29.7 kB / 0.5857 GB, free: 2.695 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.347e-06/0.6134, allocations: 4.062 kB / 0.5857 GB, free: 2.691 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 2.048e-05/0.6134, allocations: 37.62 kB / 0.5858 GB, free: 2.648 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.699e-05/0.6135, allocations: 0 / 0.5858 GB, free: 2.648 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001412/0.6137, allocations: 44.08 kB / 0.5858 GB, free: 2.582 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002462/0.6139, allocations: 0.6879 MB / 0.5865 GB, free: 1.867 MB / 394.7 MB Notification: Performance of SimCode: time 3.11e-07/0.6139, allocations: 0 / 0.5865 GB, free: 1.867 MB / 394.7 MB Notification: Performance of Templates: time 0.001647/0.6156, allocations: 184.6 kB / 0.5866 GB, free: 1.688 MB / 394.7 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