Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Math.TestScalarFunctions.conf.json loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ModelicaTest.Math.TestScalarFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Math.TestScalarFunctions") translateModel(ModelicaTest.Math.TestScalarFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_cpp_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(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002396/0.002396, allocations: 172.2 kB / 8.147 MB, free: 2.207 MB / 5.871 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.707/1.707, allocations: 205.2 MB / 213.8 MB, free: 13.92 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00125/0.00125, allocations: 94.73 kB / 261.8 MB, free: 13.63 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2539/0.2539, allocations: 43.5 MB / 353.2 MB, free: 2.035 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 7.634e-06/7.825e-06, allocations: 0 / 417.7 MB, free: 40.96 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2838/0.2839, allocations: 58.84 MB / 476.5 MB, free: 5.086 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1545/0.4384, allocations: 84.74 MB / 0.5481 GB, free: 14.36 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002988/0.4388, allocations: 55.97 kB / 0.5482 GB, free: 14.3 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.04561/0.4844, allocations: 5.849 MB / 0.5539 GB, free: 8.457 MB / 394.7 MB Notification: Performance of Transformations before backend: time 7.434e-06/0.4845, allocations: 0 / 0.5539 GB, free: 8.457 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.0004551/0.4849, allocations: 368 kB / 0.5542 GB, free: 8.047 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.144e-05/0.485, allocations: 8.031 kB / 0.5542 GB, free: 8.039 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.351e-05/0.4851, allocations: 3.938 kB / 0.5542 GB, free: 8.035 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001369/0.4852, allocations: 159.1 kB / 0.5544 GB, free: 7.84 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.126e-05/0.4853, allocations: 4 kB / 0.5544 GB, free: 7.836 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.421e-05/0.4853, allocations: 0 / 0.5544 GB, free: 7.836 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 4.507e-05/0.4854, allocations: 4 kB / 0.5544 GB, free: 7.832 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.829e-05/0.4855, allocations: 33.62 kB / 0.5544 GB, free: 7.793 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.638e-06/0.4855, allocations: 4 kB / 0.5544 GB, free: 7.789 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.582e-05/0.4855, allocations: 3.906 kB / 0.5544 GB, free: 7.785 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.552e-06/0.4855, allocations: 0 / 0.5544 GB, free: 7.785 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001684/0.4857, allocations: 122.2 kB / 0.5546 GB, free: 7.629 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.021e-05/0.4858, allocations: 18.58 kB / 0.5546 GB, free: 7.602 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.946e-05/0.4858, allocations: 12.95 kB / 0.5546 GB, free: 7.586 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.147e-05/0.4859, allocations: 0 / 0.5546 GB, free: 7.586 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.082e-05/0.486, allocations: 60.2 kB / 0.5546 GB, free: 7.512 MB / 394.7 MB Notification: Performance of pre-optimization done (n=1): time 3.025e-06/0.486, allocations: 0 / 0.5546 GB, free: 7.512 MB / 394.7 MB Notification: Performance of matching and sorting (n=1): time 0.0002215/0.4862, allocations: 37.62 kB / 0.5547 GB, free: 7.469 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.4e-05/0.4863, allocations: 77.11 kB / 0.5548 GB, free: 7.375 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.734e-05/0.4864, allocations: 85 kB / 0.5548 GB, free: 7.285 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.907e-05/0.4864, allocations: 25.7 kB / 0.5549 GB, free: 7.254 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.205e-05/0.4865, allocations: 154.6 kB / 0.555 GB, free: 7.102 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.754e-05/0.4866, allocations: 11.91 kB / 0.555 GB, free: 7.09 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.326e-06/0.4866, allocations: 0 / 0.555 GB, free: 7.09 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001634/0.4868, allocations: 310.8 kB / 0.5553 GB, free: 6.777 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.223e-05/0.4868, allocations: 0 / 0.5553 GB, free: 6.777 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.435e-06/0.4868, allocations: 0 / 0.5553 GB, free: 6.777 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.641e-05/0.4869, allocations: 4 kB / 0.5553 GB, free: 6.773 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.4869, allocations: 0 / 0.5553 GB, free: 6.773 MB / 394.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001076/0.487, allocations: 37.75 kB / 0.5554 GB, free: 6.73 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.505e-05/0.487, allocations: 6.812 kB / 0.5554 GB, free: 6.727 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.374e-06/0.4871, allocations: 0 / 0.5554 GB, free: 6.727 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.776e-05/0.4871, allocations: 0 / 0.5554 GB, free: 6.727 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.943e-06/0.4871, allocations: 0 / 0.5554 GB, free: 6.727 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.51e-06/0.4871, allocations: 0 / 0.5554 GB, free: 6.727 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.504e-05/0.4872, allocations: 4 kB / 0.5554 GB, free: 6.723 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.927e-06/0.4872, allocations: 3.938 kB / 0.5554 GB, free: 6.719 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.0001001/0.4873, allocations: 55.31 kB / 0.5554 GB, free: 6.652 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.687e-05/0.4874, allocations: 7.969 kB / 0.5554 GB, free: 6.645 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.928e-05/0.4874, allocations: 7 kB / 0.5554 GB, free: 6.633 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.306e-06/0.4874, allocations: 0 / 0.5554 GB, free: 6.633 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.222e-06/0.4874, allocations: 0 / 0.5554 GB, free: 6.633 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.198e-06/0.4874, allocations: 0 / 0.5554 GB, free: 6.633 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001402/0.4876, allocations: 134.1 kB / 0.5556 GB, free: 6.465 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.839e-06/0.4876, allocations: 4 kB / 0.5556 GB, free: 6.461 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.814e-06/0.4876, allocations: 0 / 0.5556 GB, free: 6.461 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.143e-06/0.4877, allocations: 4 kB / 0.5556 GB, free: 6.457 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.004e-05/0.4877, allocations: 0 / 0.5556 GB, free: 6.457 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.635e-06/0.4877, allocations: 0 / 0.5556 GB, free: 6.457 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.447e-06/0.4877, allocations: 4 kB / 0.5556 GB, free: 6.453 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000133/0.4879, allocations: 61.12 kB / 0.5556 GB, free: 6.375 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.485e-05/0.4879, allocations: 81.02 kB / 0.5557 GB, free: 6.277 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.273e-05/0.488, allocations: 0 / 0.5557 GB, free: 6.277 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.992e-05/0.488, allocations: 0 / 0.5557 GB, free: 6.277 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.099e-05/0.488, allocations: 0 / 0.5557 GB, free: 6.277 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.187e-05/0.4881, allocations: 4 kB / 0.5557 GB, free: 6.273 MB / 394.7 MB Notification: Performance of sort global known variables: time 5.077e-05/0.4881, allocations: 79.31 kB / 0.5558 GB, free: 6.195 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0003287/0.4885, allocations: 7.875 kB / 0.5558 GB, free: 6.188 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.0001485/0.4887, allocations: 91.25 kB / 0.5559 GB, free: 6.09 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 9.941e-05/0.4888, allocations: 37.69 kB / 0.5559 GB, free: 6.047 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.025e-06/0.4888, allocations: 0 / 0.5559 GB, free: 6.047 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 4.447e-05/0.4889, allocations: 29.7 kB / 0.5559 GB, free: 6.012 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001671/0.489, allocations: 0 / 0.5559 GB, free: 6.012 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002021/0.4893, allocations: 71 kB / 0.556 GB, free: 5.914 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003706/0.4896, allocations: 0.6919 MB / 0.5567 GB, free: 5.195 MB / 394.7 MB Notification: Performance of SimCode: time 1.122e-06/0.4897, allocations: 0 / 0.5567 GB, free: 5.195 MB / 394.7 MB Notification: Performance of Templates: time 0.002534/0.4922, allocations: 331.4 kB / 0.557 GB, free: 4.871 MB / 394.7 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Math.TestScalarFunctions.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Math.TestScalarFunctions.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Math.TestScalarFunctions.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Math.TestScalarFunctions.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Math.TestScalarFunctions.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Math.TestScalarFunctions --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Math.TestScalarFunctions.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Math.TestScalarFunctions_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Math/TestScalarFunctions/TestScalarFunctions.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Math.TestScalarFunctions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches