Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegStep.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.TestRegStep,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x|yRegStep|yRegStep_der",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegStep") translateModel(ModelicaTest.Fluid.TestUtilities.TestRegStep,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x|yRegStep|yRegStep_der",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegStep") [: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.0009968/0.0009968, allocations: 178.3 kB / 8.518 MB, free: 1.84 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.252/1.252, allocations: 221.4 MB / 230.3 MB, free: 7.73 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.0009199/0.0009198, allocations: 80.75 kB / 281.2 MB, free: 5.48 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.182/0.182, allocations: 44.14 MB / 376.1 MB, free: 3.25 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 6.182e-06/6.222e-06, allocations: 0 / 444 MB, free: 15.65 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1377/0.1378, allocations: 61.91 MB / 0.4941 GB, free: 1.668 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3557/0.4936, allocations: 84.23 MB / 0.5763 GB, free: 12.52 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001705/0.4938, allocations: 69.81 kB / 0.5764 GB, free: 12.48 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.001492/0.4953, allocations: 325.1 kB / 0.5767 GB, free: 12.21 MB / 394.7 MB Notification: Performance of Transformations before backend: time 6.222e-06/0.4953, allocations: 0 / 0.5767 GB, free: 12.21 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.0002189/0.4955, allocations: 313.8 kB / 0.577 GB, free: 11.87 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.399e-05/0.4956, allocations: 13.47 kB / 0.577 GB, free: 11.86 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.856e-05/0.4956, allocations: 3.938 kB / 0.577 GB, free: 11.85 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001139/0.4957, allocations: 171 kB / 0.5772 GB, free: 11.64 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.407e-05/0.4958, allocations: 4.875 kB / 0.5772 GB, free: 11.64 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.118e-05/0.4958, allocations: 0 / 0.5772 GB, free: 11.64 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 5.368e-05/0.4958, allocations: 7.938 kB / 0.5772 GB, free: 11.63 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.72e-05/0.4959, allocations: 40.91 kB / 0.5772 GB, free: 11.59 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.548e-06/0.496, allocations: 0 / 0.5772 GB, free: 11.59 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.346e-06/0.496, allocations: 0 / 0.5772 GB, free: 11.59 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.039e-06/0.496, allocations: 0 / 0.5772 GB, free: 11.59 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001335/0.4961, allocations: 126.2 kB / 0.5774 GB, free: 11.43 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000153/0.4963, allocations: 36.36 kB / 0.5774 GB, free: 11.39 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.903e-05/0.4963, allocations: 11.8 kB / 0.5774 GB, free: 11.38 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000358/0.4967, allocations: 121.2 kB / 0.5775 GB, free: 11.24 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.701e-05/0.4967, allocations: 41.5 kB / 0.5776 GB, free: 11.2 MB / 394.7 MB Notification: Performance of pre-optimization done (n=3): time 1.332e-06/0.4967, allocations: 0 / 0.5776 GB, free: 11.2 MB / 394.7 MB Notification: Performance of matching and sorting (n=5): time 0.001172/0.4979, allocations: 187.9 kB / 0.5777 GB, free: 11.02 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.567e-05/0.4979, allocations: 51.41 kB / 0.5778 GB, free: 10.95 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.533e-05/0.498, allocations: 85 kB / 0.5779 GB, free: 10.86 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.432e-05/0.498, allocations: 29.7 kB / 0.5779 GB, free: 10.83 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.335e-05/0.4981, allocations: 86.83 kB / 0.578 GB, free: 10.74 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.022e-05/0.4981, allocations: 11.72 kB / 0.578 GB, free: 10.73 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.1e-06/0.4981, allocations: 2.844 kB / 0.578 GB, free: 10.73 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001069/0.4982, allocations: 316.6 kB / 0.5783 GB, free: 10.41 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.436e-05/0.4983, allocations: 9.938 kB / 0.5783 GB, free: 10.41 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.481e-05/0.4983, allocations: 11.06 kB / 0.5783 GB, free: 10.4 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.246e-05/0.4984, allocations: 19.84 kB / 0.5783 GB, free: 10.38 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.01e-07/0.4984, allocations: 4 kB / 0.5783 GB, free: 10.38 MB / 394.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001356/0.4985, allocations: 59.36 kB / 0.5784 GB, free: 10.32 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.246e-05/0.4985, allocations: 8 kB / 0.5784 GB, free: 10.31 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.549e-06/0.4986, allocations: 0 / 0.5784 GB, free: 10.31 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.401e-05/0.4986, allocations: 0 / 0.5784 GB, free: 10.31 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001412/0.4987, allocations: 24.7 kB / 0.5784 GB, free: 10.29 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.469e-06/0.4987, allocations: 0 / 0.5784 GB, free: 10.29 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.273e-05/0.4988, allocations: 7.984 kB / 0.5784 GB, free: 10.28 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.106e-05/0.4989, allocations: 4 kB / 0.5784 GB, free: 10.28 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 (5): * Single equations (assignments): 5 * 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 8.595e-05/0.4989, allocations: 110.4 kB / 0.5785 GB, free: 10.16 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.688e-06/0.499, allocations: 0 / 0.5785 GB, free: 10.16 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002406/0.4992, allocations: 88.39 kB / 0.5786 GB, free: 10.08 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.685e-06/0.4992, allocations: 4 kB / 0.5786 GB, free: 10.08 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.961e-06/0.4992, allocations: 0 / 0.5786 GB, free: 10.08 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.198e-06/0.4992, allocations: 0 / 0.5786 GB, free: 10.08 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006372/0.4999, allocations: 322 kB / 0.5789 GB, free: 9.727 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.903e-06/0.4999, allocations: 3.938 kB / 0.5789 GB, free: 9.723 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000118/0.5, allocations: 19.98 kB / 0.579 GB, free: 9.703 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.254e-06/0.5, allocations: 0 / 0.579 GB, free: 9.703 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.224e-05/0.5001, allocations: 0 / 0.579 GB, free: 9.703 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.433e-06/0.5001, allocations: 3.938 kB / 0.579 GB, free: 9.699 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.316e-06/0.5001, allocations: 0 / 0.579 GB, free: 9.699 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002187/0.5003, allocations: 183.8 kB / 0.5791 GB, free: 9.504 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.3e-05/0.5004, allocations: 81.61 kB / 0.5792 GB, free: 9.406 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.91e-05/0.5004, allocations: 0 / 0.5792 GB, free: 9.406 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001191/0.5005, allocations: 11.98 kB / 0.5792 GB, free: 9.395 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.038e-05/0.5005, allocations: 4.406 kB / 0.5792 GB, free: 9.391 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.073e-06/0.5006, allocations: 8.5 kB / 0.5792 GB, free: 9.383 MB / 394.7 MB Notification: Performance of sort global known variables: time 3.974e-05/0.5006, allocations: 79.83 kB / 0.5793 GB, free: 9.305 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0002264/0.5008, allocations: 8 kB / 0.5793 GB, free: 9.297 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 5 * 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.0001718/0.501, allocations: 95.25 kB / 0.5794 GB, free: 9.191 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0001138/0.5011, allocations: 22.06 kB / 0.5794 GB, free: 9.176 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 5.39e-06/0.5011, allocations: 4.5 kB / 0.5794 GB, free: 9.172 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 3.385e-05/0.5012, allocations: 21.92 kB / 0.5795 GB, free: 9.152 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001514/0.5013, allocations: 6.828 kB / 0.5795 GB, free: 9.148 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004416/0.5018, allocations: 89.25 kB / 0.5796 GB, free: 9.035 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004175/0.5022, allocations: 0.6919 MB / 0.5802 GB, free: 8.316 MB / 394.7 MB Notification: Performance of SimCode: time 2.61e-07/0.5022, allocations: 0 / 0.5802 GB, free: 8.316 MB / 394.7 MB Notification: Performance of Templates: time 0.00284/0.5051, allocations: 0.6425 MB / 0.5809 GB, free: 7.676 MB / 394.7 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegStep.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegStep.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegStep.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegStep.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegStep.sim & ./ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegStep -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegStep.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegStep_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestUtilities/TestRegStep/TestRegStep.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegStep.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches