Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.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.TestRegFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x|sqrtx|sqrtx_a|x2|x2_a|x3|x3_a|sqrtxerr|x2err|x3err",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions") translateModel(ModelicaTest.Fluid.TestUtilities.TestRegFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x|sqrtx|sqrtx_a|x2|x2_a|x3|x3_a|sqrtxerr|x2err|x3err",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions") [: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.001015/0.001015, allocations: 180 kB / 8.519 MB, free: 1.848 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.294/1.294, allocations: 221.4 MB / 230.3 MB, free: 7.617 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.001352/0.001352, allocations: 90.22 kB / 281.2 MB, free: 5.434 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.1807/0.1807, allocations: 44.14 MB / 376.1 MB, free: 3.207 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 5.7e-06/5.801e-06, allocations: 0 / 444 MB, free: 15.59 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.108/0.108, allocations: 61.9 MB / 0.4941 GB, free: 1.609 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2751/0.3831, allocations: 84.35 MB / 0.5765 GB, free: 12.37 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002188/0.3834, allocations: 66.31 kB / 0.5765 GB, free: 12.34 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.002503/0.3859, allocations: 0.5974 MB / 0.5771 GB, free: 11.79 MB / 394.7 MB Notification: Performance of Transformations before backend: time 9.598e-06/0.3859, allocations: 4 kB / 0.5771 GB, free: 11.78 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0002191/0.3862, allocations: 338.3 kB / 0.5774 GB, free: 11.41 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.699e-05/0.3862, allocations: 11.97 kB / 0.5774 GB, free: 11.39 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.649e-05/0.3862, allocations: 0 / 0.5774 GB, free: 11.39 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001293/0.3864, allocations: 178.8 kB / 0.5776 GB, free: 11.18 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.116e-05/0.3864, allocations: 0 / 0.5776 GB, free: 11.18 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.392e-05/0.3864, allocations: 4 kB / 0.5776 GB, free: 11.18 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001284/0.3865, allocations: 47.97 kB / 0.5777 GB, free: 11.13 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.728e-05/0.3866, allocations: 45.69 kB / 0.5777 GB, free: 11.08 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.079e-05/0.3867, allocations: 7.984 kB / 0.5777 GB, free: 11.07 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.115e-05/0.3867, allocations: 0 / 0.5777 GB, free: 11.07 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.06e-06/0.3867, allocations: 0 / 0.5777 GB, free: 11.07 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001835/0.3869, allocations: 146.1 kB / 0.5779 GB, free: 10.89 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001065/0.387, allocations: 62.58 kB / 0.5779 GB, free: 10.82 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.508e-05/0.387, allocations: 24.86 kB / 0.5779 GB, free: 10.79 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003712/0.3874, allocations: 259.3 kB / 0.5782 GB, free: 10.48 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.563e-05/0.3875, allocations: 30.56 kB / 0.5782 GB, free: 10.45 MB / 394.7 MB Notification: Performance of pre-optimization done (n=10): time 1.412e-06/0.3875, allocations: 0 / 0.5782 GB, free: 10.45 MB / 394.7 MB Notification: Performance of matching and sorting (n=10): time 0.0003322/0.3878, allocations: 89.8 kB / 0.5783 GB, free: 10.35 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.542e-05/0.3878, allocations: 54.25 kB / 0.5784 GB, free: 10.29 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.249e-05/0.3879, allocations: 85 kB / 0.5784 GB, free: 10.2 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.726e-05/0.388, allocations: 25.83 kB / 0.5785 GB, free: 10.17 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.68e-05/0.388, allocations: 88.14 kB / 0.5785 GB, free: 10.08 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.671e-05/0.3881, allocations: 31.55 kB / 0.5786 GB, free: 10.05 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.248e-06/0.3881, allocations: 0 / 0.5786 GB, free: 10.05 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.00014/0.3882, allocations: 314.8 kB / 0.5789 GB, free: 9.73 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.234e-05/0.3883, allocations: 19.98 kB / 0.5789 GB, free: 9.711 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.608e-05/0.3883, allocations: 12.09 kB / 0.5789 GB, free: 9.699 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001096/0.3884, allocations: 32.05 kB / 0.5789 GB, free: 9.668 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.3884, allocations: 0 / 0.5789 GB, free: 9.668 MB / 394.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001762/0.3886, allocations: 81.66 kB / 0.579 GB, free: 9.582 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.411e-05/0.3886, allocations: 8 kB / 0.579 GB, free: 9.574 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.082e-06/0.3887, allocations: 0 / 0.579 GB, free: 9.574 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.549e-05/0.3887, allocations: 0 / 0.579 GB, free: 9.574 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001173/0.3888, allocations: 20.69 kB / 0.579 GB, free: 9.555 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.949e-06/0.3888, allocations: 8.453 kB / 0.579 GB, free: 9.547 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.563e-05/0.3888, allocations: 0 / 0.579 GB, free: 9.547 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.009e-05/0.3889, allocations: 3.984 kB / 0.5791 GB, free: 9.543 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 (10): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * 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 9.352e-05/0.389, allocations: 105 kB / 0.5792 GB, free: 9.434 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.181e-05/0.389, allocations: 3.906 kB / 0.5792 GB, free: 9.43 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002734/0.3893, allocations: 103.6 kB / 0.5793 GB, free: 9.32 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.889e-06/0.3893, allocations: 4 kB / 0.5793 GB, free: 9.316 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.14e-06/0.3893, allocations: 0 / 0.5793 GB, free: 9.316 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.289e-06/0.3893, allocations: 0 / 0.5793 GB, free: 9.316 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001491/0.3894, allocations: 154.1 kB / 0.5794 GB, free: 9.129 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.323e-06/0.3895, allocations: 224 / 0.5794 GB, free: 9.129 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.394e-05/0.3895, allocations: 15.98 kB / 0.5794 GB, free: 9.113 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.757e-06/0.3895, allocations: 7.938 kB / 0.5794 GB, free: 9.105 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.698e-06/0.3896, allocations: 0 / 0.5794 GB, free: 9.105 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.463e-06/0.3896, allocations: 4 kB / 0.5794 GB, free: 9.102 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.106e-06/0.3896, allocations: 0 / 0.5794 GB, free: 9.102 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002118/0.3898, allocations: 117.1 kB / 0.5795 GB, free: 8.969 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.478e-05/0.3898, allocations: 85.02 kB / 0.5796 GB, free: 8.867 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.624e-05/0.3899, allocations: 0 / 0.5796 GB, free: 8.867 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.494e-05/0.3899, allocations: 0 / 0.5796 GB, free: 8.867 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.379e-05/0.3899, allocations: 7.984 kB / 0.5796 GB, free: 8.859 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.559e-06/0.3899, allocations: 4 kB / 0.5796 GB, free: 8.855 MB / 394.7 MB Notification: Performance of sort global known variables: time 3.85e-05/0.39, allocations: 79.28 kB / 0.5797 GB, free: 8.777 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0002054/0.3902, allocations: 19.94 kB / 0.5797 GB, free: 8.758 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 (10): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * 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.0001515/0.3903, allocations: 107.2 kB / 0.5798 GB, free: 8.645 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0001056/0.3905, allocations: 47.94 kB / 0.5799 GB, free: 8.598 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.823e-06/0.3905, allocations: 0 / 0.5799 GB, free: 8.598 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 3.426e-05/0.3905, allocations: 24 kB / 0.5799 GB, free: 8.574 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001033/0.3906, allocations: 7.891 kB / 0.5799 GB, free: 8.566 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000259/0.3909, allocations: 99.78 kB / 0.58 GB, free: 8.445 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000282/0.3912, allocations: 0.6997 MB / 0.5807 GB, free: 7.719 MB / 394.7 MB Notification: Performance of SimCode: time 2.4e-07/0.3912, allocations: 0 / 0.5807 GB, free: 7.719 MB / 394.7 MB Notification: Performance of Templates: time 0.002715/0.3939, allocations: 0.7556 MB / 0.5814 GB, free: 6.965 MB / 394.7 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.sim & ./ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestUtilities/TestRegFunctions/TestRegFunctions.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches