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: "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.Test02RegFun3,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestUtilities_Test02RegFun3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.Test02RegFun3,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestUtilities_Test02RegFun3",fmuType="me",version="2.0",platforms={"static"}) [: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.001591/0.001591, allocations: 183.2 kB / 8.517 MB, free: 1.812 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.173/1.173, allocations: 221.4 MB / 230.3 MB, free: 7.621 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.0009014/0.0009014, allocations: 93.72 kB / 281.2 MB, free: 5.441 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.1606/0.1606, allocations: 44.15 MB / 376.1 MB, free: 3.223 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.187/0.3475, allocations: 68.02 MB / 444.1 MB, free: 15.52 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1022/0.4497, allocations: 61.91 MB / 0.4942 GB, free: 1.527 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3323/0.7821, allocations: 85.63 MB / 0.5778 GB, free: 11.18 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002618/0.7824, allocations: 71.59 kB / 0.5779 GB, free: 11.11 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.05074/0.8332, allocations: 8.334 MB / 0.586 GB, free: 2.734 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.462e-05/0.8332, allocations: 11.94 kB / 0.586 GB, free: 2.723 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.517e-05/0.8333, allocations: 11.91 kB / 0.586 GB, free: 2.711 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001183/0.8334, allocations: 163.1 kB / 0.5862 GB, free: 2.512 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.428e-05/0.8335, allocations: 3.938 kB / 0.5862 GB, free: 2.508 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.217e-05/0.8335, allocations: 0 / 0.5862 GB, free: 2.508 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 6.659e-05/0.8336, allocations: 4 kB / 0.5862 GB, free: 2.504 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.933e-05/0.8337, allocations: 33.7 kB / 0.5862 GB, free: 2.465 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.217e-05/0.8337, allocations: 3.938 kB / 0.5862 GB, free: 2.461 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.607e-05/0.8337, allocations: 3.906 kB / 0.5862 GB, free: 2.457 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.913e-06/0.8337, allocations: 4 kB / 0.5862 GB, free: 2.453 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003565/0.8341, allocations: 225.5 kB / 0.5864 GB, free: 2.195 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.764e-05/0.8341, allocations: 18.48 kB / 0.5865 GB, free: 2.168 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.643e-05/0.8342, allocations: 4.859 kB / 0.5865 GB, free: 2.16 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.545e-05/0.8342, allocations: 4.062 kB / 0.5865 GB, free: 2.156 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.517e-05/0.8342, allocations: 30.56 kB / 0.5865 GB, free: 2.117 MB / 394.7 MB Notification: Performance of pre-optimization done (n=1): time 1.563e-06/0.8342, allocations: 0 / 0.5865 GB, free: 2.117 MB / 394.7 MB Notification: Performance of matching and sorting (n=1): time 0.0002007/0.8345, allocations: 45.62 kB / 0.5865 GB, free: 2.066 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.059e-05/0.8345, allocations: 51.41 kB / 0.5866 GB, free: 2.004 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.89e-05/0.8346, allocations: 89 kB / 0.5867 GB, free: 1.91 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.398e-05/0.8346, allocations: 25.7 kB / 0.5867 GB, free: 1.879 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.822e-05/0.8347, allocations: 88.05 kB / 0.5868 GB, free: 1.789 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.492e-06/0.8347, allocations: 0 / 0.5868 GB, free: 1.789 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.667e-06/0.8347, allocations: 0 / 0.5868 GB, free: 1.789 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001359/0.8349, allocations: 318.8 kB / 0.5871 GB, free: 1.469 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.976e-05/0.8349, allocations: 12.14 kB / 0.5871 GB, free: 1.457 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.153e-05/0.835, allocations: 14.58 kB / 0.5871 GB, free: 1.434 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.806e-05/0.835, allocations: 4 kB / 0.5871 GB, free: 1.43 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.835, allocations: 0 / 0.5871 GB, free: 1.43 MB / 394.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001557/0.8352, allocations: 53.62 kB / 0.5872 GB, free: 1.371 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.349e-05/0.8352, allocations: 8.031 kB / 0.5872 GB, free: 1.363 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.389e-05/0.8353, allocations: 4 kB / 0.5872 GB, free: 1.359 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.561e-05/0.8353, allocations: 4 kB / 0.5872 GB, free: 1.355 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.333e-05/0.8354, allocations: 0 / 0.5872 GB, free: 1.355 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.186e-06/0.8354, allocations: 4 kB / 0.5872 GB, free: 1.352 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.371e-05/0.8354, allocations: 3.906 kB / 0.5872 GB, free: 1.348 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.506e-06/0.8354, allocations: 0 / 0.5872 GB, free: 1.348 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 8.086e-05/0.8355, allocations: 108.9 kB / 0.5873 GB, free: 1.234 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.789e-05/0.8356, allocations: 0 / 0.5873 GB, free: 1.234 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002049/0.8358, allocations: 52.8 kB / 0.5873 GB, free: 1.176 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.687e-06/0.8358, allocations: 0 / 0.5873 GB, free: 1.176 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.823e-06/0.8358, allocations: 3.906 kB / 0.5874 GB, free: 1.172 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.087e-06/0.8359, allocations: 4 kB / 0.5874 GB, free: 1.168 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001788/0.8361, allocations: 134.2 kB / 0.5875 GB, free: 1 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.641e-06/0.8361, allocations: 0 / 0.5875 GB, free: 1 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.72e-07/0.8361, allocations: 0 / 0.5875 GB, free: 1 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.727e-06/0.8361, allocations: 7.938 kB / 0.5875 GB, free: 0.9922 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.132e-06/0.8361, allocations: 4.031 kB / 0.5875 GB, free: 0.9883 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.383e-06/0.8361, allocations: 0 / 0.5875 GB, free: 0.9883 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.994e-06/0.8361, allocations: 0 / 0.5875 GB, free: 0.9883 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000148/0.8363, allocations: 136.1 kB / 0.5876 GB, free: 0.8398 MB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0002493/0.8366, allocations: 0.4999 MB / 0.5881 GB, free: 328 kB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.52e-05/0.8366, allocations: 77.11 kB / 0.5882 GB, free: 232 kB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.828e-05/0.8366, allocations: 7.984 kB / 0.5882 GB, free: 224 kB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001043/0.8368, allocations: 0 / 0.5882 GB, free: 224 kB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.592e-05/0.8368, allocations: 0 / 0.5882 GB, free: 224 kB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.869e-06/0.8368, allocations: 0 / 0.5882 GB, free: 224 kB / 394.7 MB Notification: Performance of sort global known variables: time 3.964e-05/0.8368, allocations: 83.28 kB / 0.5883 GB, free: 140 kB / 394.7 MB Notification: Performance of remove unused functions: time 0.001746/0.8386, allocations: 43.94 kB / 0.5883 GB, free: 96 kB / 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.0004226/0.8391, allocations: 151.3 kB / 0.5885 GB, free: 15.94 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0001014/0.8392, allocations: 41.64 kB / 0.5885 GB, free: 15.89 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.8392, allocations: 0 / 0.5885 GB, free: 15.89 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 2.781e-05/0.8392, allocations: 25.7 kB / 0.5885 GB, free: 15.86 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002199/0.8395, allocations: 7.906 kB / 0.5885 GB, free: 15.85 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002505/0.8397, allocations: 48 kB / 0.5886 GB, free: 15.78 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002769/0.84, allocations: 0.6882 MB / 0.5892 GB, free: 15.07 MB / 410.7 MB Notification: Performance of SimCode: time 4.91e-07/0.84, allocations: 4 kB / 0.5893 GB, free: 15.06 MB / 410.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_TestUtilities_Test02RegFun3_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestUtilities_Test02RegFun3.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3_res.mat does not exist to compare? outputFormat=mat