Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.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.Test02RegFun3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x|a|b",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.Test02RegFun3") translateModel(ModelicaTest.Fluid.TestUtilities.Test02RegFun3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x|a|b",fileNamePrefix="ModelicaTest_3.2.3_cpp_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(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002764/0.002764, allocations: 172.5 kB / 8.147 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.873/1.873, 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.001337/0.001337, allocations: 98.66 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.2881/0.2881, allocations: 43.49 MB / 353.2 MB, free: 2.043 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 8.155e-06/8.326e-06, allocations: 0 / 417.7 MB, free: 40.95 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2665/0.2665, allocations: 58.84 MB / 476.5 MB, free: 5.09 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1687/0.4352, allocations: 84.54 MB / 0.5479 GB, free: 14.56 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000247/0.4355, allocations: 63.97 kB / 0.548 GB, free: 14.5 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.04566/0.4812, allocations: 7.917 MB / 0.5557 GB, free: 6.574 MB / 394.7 MB Notification: Performance of Transformations before backend: time 6.582e-06/0.4813, allocations: 0 / 0.5557 GB, free: 6.574 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.0003674/0.4816, allocations: 346.2 kB / 0.556 GB, free: 6.191 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.734e-05/0.4817, allocations: 12.03 kB / 0.5561 GB, free: 6.18 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.507e-05/0.4818, allocations: 0 / 0.5561 GB, free: 6.18 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001071/0.4819, allocations: 167 kB / 0.5562 GB, free: 5.977 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.272e-05/0.4819, allocations: 0 / 0.5562 GB, free: 5.977 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.215e-05/0.4819, allocations: 0 / 0.5562 GB, free: 5.977 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 6.471e-05/0.482, allocations: 8 kB / 0.5562 GB, free: 5.969 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.831e-05/0.4821, allocations: 41.61 kB / 0.5563 GB, free: 5.922 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.697e-06/0.4821, allocations: 4 kB / 0.5563 GB, free: 5.918 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.116e-05/0.4821, allocations: 0 / 0.5563 GB, free: 5.918 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.122e-06/0.4821, allocations: 0 / 0.5563 GB, free: 5.918 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003637/0.4825, allocations: 225.4 kB / 0.5565 GB, free: 5.66 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.572e-05/0.4826, allocations: 18.56 kB / 0.5565 GB, free: 5.633 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.806e-05/0.4826, allocations: 8.922 kB / 0.5565 GB, free: 5.621 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.326e-05/0.4827, allocations: 4 kB / 0.5565 GB, free: 5.617 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.045e-05/0.4827, allocations: 30.56 kB / 0.5565 GB, free: 5.578 MB / 394.7 MB Notification: Performance of pre-optimization done (n=1): time 1.763e-06/0.4827, allocations: 0 / 0.5565 GB, free: 5.578 MB / 394.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001917/0.4829, allocations: 41.69 kB / 0.5566 GB, free: 5.531 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.568e-05/0.483, allocations: 51.41 kB / 0.5566 GB, free: 5.469 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.182e-05/0.4831, allocations: 88.94 kB / 0.5567 GB, free: 5.375 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.138e-05/0.4831, allocations: 29.86 kB / 0.5567 GB, free: 5.34 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.924e-05/0.4832, allocations: 162.4 kB / 0.5569 GB, free: 5.18 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.071e-05/0.4832, allocations: 7.906 kB / 0.5569 GB, free: 5.172 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.827e-06/0.4832, allocations: 0 / 0.5569 GB, free: 5.172 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001241/0.4834, allocations: 310.8 kB / 0.5572 GB, free: 4.859 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.7e-05/0.4834, allocations: 7.984 kB / 0.5572 GB, free: 4.852 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.669e-05/0.4834, allocations: 14.58 kB / 0.5572 GB, free: 4.828 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.07e-05/0.4835, allocations: 12 kB / 0.5572 GB, free: 4.816 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.4835, allocations: 0 / 0.5572 GB, free: 4.816 MB / 394.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001248/0.4836, allocations: 49.62 kB / 0.5573 GB, free: 4.762 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.441e-05/0.4837, allocations: 7.281 kB / 0.5573 GB, free: 4.758 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.26e-05/0.4837, allocations: 0 / 0.5573 GB, free: 4.758 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.491e-05/0.4837, allocations: 4 kB / 0.5573 GB, free: 4.754 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.245e-05/0.4838, allocations: 4 kB / 0.5573 GB, free: 4.75 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.499e-06/0.4838, allocations: 0 / 0.5573 GB, free: 4.75 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.715e-05/0.4838, allocations: 4 kB / 0.5573 GB, free: 4.746 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.838e-06/0.4838, allocations: 11.94 kB / 0.5573 GB, free: 4.734 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 4.638e-05/0.4839, allocations: 25.7 kB / 0.5573 GB, free: 4.703 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.15e-05/0.4839, allocations: 0 / 0.5573 GB, free: 4.703 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001745/0.4841, allocations: 44.78 kB / 0.5574 GB, free: 4.648 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.971e-06/0.4841, allocations: 4 kB / 0.5574 GB, free: 4.645 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.398e-06/0.4841, allocations: 4.031 kB / 0.5574 GB, free: 4.641 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.132e-06/0.4842, allocations: 3.906 kB / 0.5574 GB, free: 4.637 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001548/0.4843, allocations: 130.2 kB / 0.5575 GB, free: 4.473 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.474e-06/0.4843, allocations: 4 kB / 0.5575 GB, free: 4.469 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.62e-07/0.4844, allocations: 0 / 0.5575 GB, free: 4.469 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.194e-06/0.4844, allocations: 0 / 0.5575 GB, free: 4.469 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.462e-06/0.4844, allocations: 0 / 0.5575 GB, free: 4.469 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.503e-06/0.4844, allocations: 0 / 0.5575 GB, free: 4.469 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.454e-06/0.4844, allocations: 0 / 0.5575 GB, free: 4.469 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001369/0.4845, allocations: 135.5 kB / 0.5576 GB, free: 4.32 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.55e-05/0.4846, allocations: 77.11 kB / 0.5577 GB, free: 4.227 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.865e-05/0.4846, allocations: 11.94 kB / 0.5577 GB, free: 4.215 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.695e-05/0.4847, allocations: 0 / 0.5577 GB, free: 4.215 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.377e-05/0.4847, allocations: 4 kB / 0.5577 GB, free: 4.211 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.454e-06/0.4848, allocations: 3.906 kB / 0.5577 GB, free: 4.207 MB / 394.7 MB Notification: Performance of sort global known variables: time 4.164e-05/0.4848, allocations: 79.28 kB / 0.5578 GB, free: 4.129 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0003771/0.4852, allocations: 51.92 kB / 0.5579 GB, free: 4.078 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.000383/0.4856, allocations: 147.2 kB / 0.558 GB, free: 3.926 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 9.613e-05/0.4857, allocations: 33.7 kB / 0.558 GB, free: 3.887 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.4857, allocations: 4 kB / 0.558 GB, free: 3.883 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 2.533e-05/0.4857, allocations: 25.7 kB / 0.5581 GB, free: 3.852 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001711/0.4859, allocations: 11.92 kB / 0.5581 GB, free: 3.84 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002245/0.4862, allocations: 70.81 kB / 0.5581 GB, free: 3.742 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000288/0.4865, allocations: 0.6921 MB / 0.5588 GB, free: 3.023 MB / 394.7 MB Notification: Performance of SimCode: time 6.82e-07/0.4865, allocations: 4 kB / 0.5588 GB, free: 3.02 MB / 394.7 MB Notification: Performance of Templates: time 0.003252/0.4897, allocations: 0.9882 MB / 0.5598 GB, free: 2.031 MB / 394.7 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.Test02RegFun3 --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.Test02RegFun3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestUtilities/Test02RegFun3/Test02RegFun3.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches