Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.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.Fluid.TestUtilities.Test02RegFun3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x|a|b",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3") translateModel(ModelicaTest.Fluid.TestUtilities.Test02RegFun3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x|a|b",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3") [: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.00115/0.00115, allocations: 179.7 kB / 8.517 MB, free: 1.859 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.26/1.26, allocations: 221.4 MB / 230.3 MB, free: 7.656 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.0009053/0.0009053, allocations: 90.03 kB / 281.2 MB, free: 5.457 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.1628/0.1628, allocations: 44.15 MB / 376.1 MB, free: 3.23 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 6.262e-06/6.292e-06, allocations: 4 kB / 444 MB, free: 15.61 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1209/0.1209, allocations: 61.9 MB / 0.4941 GB, free: 1.641 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2758/0.3968, allocations: 85.62 MB / 0.5777 GB, free: 11.11 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000199/0.397, allocations: 68.27 kB / 0.5778 GB, free: 11.08 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.0257/0.4227, allocations: 8.005 MB / 0.5856 GB, free: 3.152 MB / 394.7 MB Notification: Performance of Transformations before backend: time 6.001e-06/0.4228, allocations: 0 / 0.5856 GB, free: 3.152 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: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0002702/0.4231, allocations: 342.3 kB / 0.5859 GB, free: 2.773 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.738e-05/0.4231, allocations: 13.22 kB / 0.5859 GB, free: 2.762 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.23e-05/0.4231, allocations: 7.906 kB / 0.5859 GB, free: 2.754 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.631e-05/0.4232, allocations: 163.8 kB / 0.5861 GB, free: 2.555 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.019e-05/0.4232, allocations: 0 / 0.5861 GB, free: 2.555 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.025e-05/0.4233, allocations: 4 kB / 0.5861 GB, free: 2.551 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 4.939e-05/0.4233, allocations: 0 / 0.5861 GB, free: 2.551 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.53e-05/0.4234, allocations: 37.7 kB / 0.5861 GB, free: 2.508 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.502e-06/0.4234, allocations: 0 / 0.5861 GB, free: 2.508 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.065e-05/0.4234, allocations: 3.906 kB / 0.5861 GB, free: 2.504 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.428e-06/0.4234, allocations: 0 / 0.5861 GB, free: 2.504 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002735/0.4237, allocations: 225.4 kB / 0.5863 GB, free: 2.242 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.415e-05/0.4238, allocations: 22.48 kB / 0.5864 GB, free: 2.211 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.305e-05/0.4238, allocations: 8.922 kB / 0.5864 GB, free: 2.199 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.821e-05/0.4238, allocations: 4 kB / 0.5864 GB, free: 2.195 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.959e-05/0.4238, allocations: 30.56 kB / 0.5864 GB, free: 2.156 MB / 394.7 MB Notification: Performance of pre-optimization done (n=1): time 1.042e-06/0.4238, allocations: 0 / 0.5864 GB, free: 2.156 MB / 394.7 MB Notification: Performance of matching and sorting (n=1): time 0.000162/0.424, allocations: 37.69 kB / 0.5864 GB, free: 2.113 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.359e-05/0.424, allocations: 51.41 kB / 0.5865 GB, free: 2.051 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.631e-05/0.4241, allocations: 93 kB / 0.5866 GB, free: 1.953 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.199e-05/0.4241, allocations: 25.7 kB / 0.5866 GB, free: 1.922 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.052e-05/0.4242, allocations: 92.14 kB / 0.5867 GB, free: 1.828 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.767e-06/0.4242, allocations: 0 / 0.5867 GB, free: 1.828 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.344e-06/0.4242, allocations: 0 / 0.5867 GB, free: 1.828 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 8.475e-05/0.4243, allocations: 318.7 kB / 0.587 GB, free: 1.508 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.705e-06/0.4243, allocations: 4 kB / 0.587 GB, free: 1.504 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.329e-05/0.4243, allocations: 22.58 kB / 0.587 GB, free: 1.473 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.521e-05/0.4243, allocations: 11.94 kB / 0.587 GB, free: 1.461 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.493e-06/0.4244, allocations: 0 / 0.587 GB, free: 1.461 MB / 394.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 8.695e-05/0.4244, allocations: 45.62 kB / 0.5871 GB, free: 1.41 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.125e-05/0.4245, allocations: 5.094 kB / 0.5871 GB, free: 1.406 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.261e-05/0.4245, allocations: 4 kB / 0.5871 GB, free: 1.402 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.09e-05/0.4245, allocations: 0 / 0.5871 GB, free: 1.402 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.52e-05/0.4245, allocations: 4 kB / 0.5871 GB, free: 1.398 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.807e-06/0.4245, allocations: 0 / 0.5871 GB, free: 1.398 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.981e-05/0.4246, allocations: 3.906 kB / 0.5871 GB, free: 1.395 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.794e-06/0.4246, allocations: 8.094 kB / 0.5871 GB, free: 1.387 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 2 * 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 5.935e-05/0.4247, allocations: 101 kB / 0.5872 GB, free: 1.281 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.363e-05/0.4247, allocations: 0 / 0.5872 GB, free: 1.281 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001299/0.4248, allocations: 64.81 kB / 0.5873 GB, free: 1.211 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.104e-06/0.4248, allocations: 0 / 0.5873 GB, free: 1.211 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.17e-06/0.4248, allocations: 3.906 kB / 0.5873 GB, free: 1.207 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.156e-06/0.4248, allocations: 4.031 kB / 0.5873 GB, free: 1.203 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001098/0.425, allocations: 130.2 kB / 0.5874 GB, free: 1.039 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.106e-06/0.425, allocations: 4 kB / 0.5874 GB, free: 1.035 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.81e-07/0.425, allocations: 0 / 0.5874 GB, free: 1.035 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.743e-06/0.425, allocations: 0 / 0.5874 GB, free: 1.035 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.729e-06/0.425, allocations: 0 / 0.5874 GB, free: 1.035 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.41e-07/0.425, allocations: 0 / 0.5874 GB, free: 1.035 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.033e-06/0.425, allocations: 0 / 0.5874 GB, free: 1.035 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001291/0.4251, allocations: 139.5 kB / 0.5875 GB, free: 0.8828 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.919e-05/0.4252, allocations: 81.11 kB / 0.5876 GB, free: 0.7852 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.155e-05/0.4252, allocations: 0 / 0.5876 GB, free: 0.7852 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.602e-05/0.4252, allocations: 3.938 kB / 0.5876 GB, free: 0.7812 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.077e-06/0.4253, allocations: 3.938 kB / 0.5876 GB, free: 0.7773 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.823e-06/0.4253, allocations: 7.906 kB / 0.5876 GB, free: 0.7695 MB / 394.7 MB Notification: Performance of sort global known variables: time 3.058e-05/0.4253, allocations: 75.28 kB / 0.5877 GB, free: 0.6953 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0002718/0.4256, allocations: 51.92 kB / 0.5877 GB, free: 0.6445 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.0002754/0.4259, allocations: 151.3 kB / 0.5879 GB, free: 500 kB / 394.7 MB Notification: Performance of simCode: created initialization part: time 9.798e-05/0.426, allocations: 33.7 kB / 0.5879 GB, free: 460 kB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.157e-06/0.426, allocations: 0 / 0.5879 GB, free: 460 kB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 1.994e-05/0.426, allocations: 33.62 kB / 0.5879 GB, free: 420 kB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001343/0.4262, allocations: 4 kB / 0.5879 GB, free: 416 kB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001855/0.4263, allocations: 48.02 kB / 0.588 GB, free: 344 kB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002131/0.4266, allocations: 0.688 MB / 0.5887 GB, free: 15.62 MB / 410.7 MB Notification: Performance of SimCode: time 2.11e-07/0.4266, allocations: 4.25 kB / 0.5887 GB, free: 15.62 MB / 410.7 MB Notification: Performance of Templates: time 0.002629/0.4292, allocations: 0.9608 MB / 0.5896 GB, free: 14.66 MB / 410.7 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.sim & ./ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestUtilities/Test02RegFun3/Test02RegFun3.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches