Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.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.Fluid.TestUtilities.Test01RegFun3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.Test01RegFun3") translateModel(ModelicaTest.Fluid.TestUtilities.Test01RegFun3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.Test01RegFun3") [: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.001599/0.001599, allocations: 170.3 kB / 8.149 MB, free: 2.223 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.737/1.737, allocations: 205.2 MB / 213.8 MB, free: 13.93 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.001243/0.001242, allocations: 98.36 kB / 261.8 MB, free: 13.62 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.2631/0.2631, allocations: 43.49 MB / 353.2 MB, free: 2.035 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 1.106e-05/1.15e-05, allocations: 4 kB / 417.7 MB, free: 40.96 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2918/0.2918, allocations: 58.84 MB / 476.5 MB, free: 5.09 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1584/0.4502, allocations: 84.54 MB / 0.5479 GB, free: 14.54 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002574/0.4505, allocations: 67.47 kB / 0.548 GB, free: 14.48 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.04673/0.4973, allocations: 7.917 MB / 0.5557 GB, free: 6.555 MB / 394.7 MB Notification: Performance of Transformations before backend: time 8.085e-06/0.4973, allocations: 0 / 0.5557 GB, free: 6.555 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.0003949/0.4978, allocations: 342.3 kB / 0.556 GB, free: 6.176 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.356e-05/0.4978, allocations: 11.97 kB / 0.5561 GB, free: 6.164 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.532e-05/0.4979, allocations: 0 / 0.5561 GB, free: 6.164 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001436/0.498, allocations: 171 kB / 0.5562 GB, free: 5.957 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.455e-05/0.498, allocations: 4 kB / 0.5562 GB, free: 5.953 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.365e-06/0.498, allocations: 0 / 0.5562 GB, free: 5.953 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 4.184e-05/0.4981, allocations: 0 / 0.5562 GB, free: 5.953 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.117e-05/0.4982, allocations: 37.61 kB / 0.5563 GB, free: 5.91 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.514e-06/0.4982, allocations: 0 / 0.5563 GB, free: 5.91 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.1e-05/0.4982, allocations: 0 / 0.5563 GB, free: 5.91 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.671e-06/0.4982, allocations: 0 / 0.5563 GB, free: 5.91 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001501/0.4984, allocations: 130.2 kB / 0.5564 GB, free: 5.746 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.538e-05/0.4985, allocations: 22.52 kB / 0.5564 GB, free: 5.715 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.2e-05/0.4985, allocations: 8.953 kB / 0.5564 GB, free: 5.703 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.607e-05/0.4985, allocations: 4 kB / 0.5564 GB, free: 5.699 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.105e-05/0.4986, allocations: 30.56 kB / 0.5564 GB, free: 5.66 MB / 394.7 MB Notification: Performance of pre-optimization done (n=1): time 1.683e-06/0.4986, allocations: 0 / 0.5564 GB, free: 5.66 MB / 394.7 MB Notification: Performance of matching and sorting (n=1): time 0.000188/0.4988, allocations: 37.61 kB / 0.5565 GB, free: 5.617 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.225e-05/0.4988, allocations: 51.41 kB / 0.5565 GB, free: 5.555 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.918e-05/0.4989, allocations: 92.98 kB / 0.5566 GB, free: 5.457 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.791e-05/0.4989, allocations: 25.7 kB / 0.5566 GB, free: 5.426 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.145e-05/0.499, allocations: 154.7 kB / 0.5568 GB, free: 5.273 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.11e-05/0.499, allocations: 4 kB / 0.5568 GB, free: 5.27 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.456e-06/0.4991, allocations: 0 / 0.5568 GB, free: 5.27 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001613/0.4992, allocations: 310.8 kB / 0.5571 GB, free: 4.957 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.761e-05/0.4993, allocations: 7.938 kB / 0.5571 GB, free: 4.949 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.002e-05/0.4993, allocations: 0 / 0.5571 GB, free: 4.949 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.735e-05/0.4993, allocations: 4 kB / 0.5571 GB, free: 4.945 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.4993, allocations: 0 / 0.5571 GB, free: 4.945 MB / 394.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001132/0.4995, allocations: 41.69 kB / 0.5571 GB, free: 4.898 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.729e-05/0.4995, allocations: 11.28 kB / 0.5572 GB, free: 4.891 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.557e-05/0.4995, allocations: 0 / 0.5572 GB, free: 4.891 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.378e-05/0.4995, allocations: 0 / 0.5572 GB, free: 4.891 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.583e-06/0.4996, allocations: 0 / 0.5572 GB, free: 4.891 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.318e-06/0.4996, allocations: 0 / 0.5572 GB, free: 4.891 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.871e-05/0.4996, allocations: 4 kB / 0.5572 GB, free: 4.887 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.002e-05/0.4996, allocations: 0 / 0.5572 GB, free: 4.887 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: 0 () * 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: 0 * Record equations: 1 * 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 4.807e-05/0.4997, allocations: 33.58 kB / 0.5572 GB, free: 4.848 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.425e-05/0.4997, allocations: 3.906 kB / 0.5572 GB, free: 4.844 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001895/0.4999, allocations: 56.78 kB / 0.5572 GB, free: 4.777 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.537e-06/0.4999, allocations: 0 / 0.5572 GB, free: 4.777 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.508e-06/0.4999, allocations: 0 / 0.5572 GB, free: 4.777 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.607e-06/0.4999, allocations: 0 / 0.5572 GB, free: 4.777 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001067/0.5001, allocations: 126.2 kB / 0.5574 GB, free: 4.617 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.011e-06/0.5001, allocations: 4 kB / 0.5574 GB, free: 4.613 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.132e-06/0.5001, allocations: 4.031 kB / 0.5574 GB, free: 4.609 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.264e-06/0.5001, allocations: 0 / 0.5574 GB, free: 4.609 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.038e-05/0.5001, allocations: 3.906 kB / 0.5574 GB, free: 4.605 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.513e-06/0.5001, allocations: 0 / 0.5574 GB, free: 4.605 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.398e-06/0.5001, allocations: 4 kB / 0.5574 GB, free: 4.602 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001217/0.5003, allocations: 61.14 kB / 0.5574 GB, free: 4.523 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.108e-05/0.5003, allocations: 85 kB / 0.5575 GB, free: 4.422 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.469e-05/0.5004, allocations: 32 / 0.5575 GB, free: 4.422 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.325e-05/0.5004, allocations: 4 kB / 0.5575 GB, free: 4.418 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.777e-05/0.5005, allocations: 4 kB / 0.5575 GB, free: 4.414 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.901e-06/0.5005, allocations: 3.938 kB / 0.5575 GB, free: 4.41 MB / 394.7 MB Notification: Performance of sort global known variables: time 4.116e-05/0.5005, allocations: 75.28 kB / 0.5576 GB, free: 4.336 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0003959/0.5009, allocations: 51.92 kB / 0.5577 GB, free: 4.285 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: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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.0004084/0.5014, allocations: 147.2 kB / 0.5578 GB, free: 4.133 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 9.499e-05/0.5015, allocations: 33.8 kB / 0.5578 GB, free: 4.094 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.869e-06/0.5015, allocations: 4 kB / 0.5578 GB, free: 4.09 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 2.812e-05/0.5015, allocations: 25.7 kB / 0.5579 GB, free: 4.059 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001401/0.5017, allocations: 7.984 kB / 0.5579 GB, free: 4.051 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002787/0.502, allocations: 66.88 kB / 0.5579 GB, free: 3.957 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003139/0.5023, allocations: 0.6918 MB / 0.5586 GB, free: 3.238 MB / 394.7 MB Notification: Performance of SimCode: time 7.01e-07/0.5023, allocations: 0 / 0.5586 GB, free: 3.238 MB / 394.7 MB Notification: Performance of Templates: time 0.00363/0.5059, allocations: 0.9907 MB / 0.5596 GB, free: 2.246 MB / 394.7 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.Test01RegFun3 --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.Test01RegFun3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestUtilities/Test01RegFun3/Test01RegFun3.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches