Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.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.Test01RegFun3,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestUtilities_Test01RegFun3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.Test01RegFun3,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestUtilities_Test01RegFun3",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.001002/0.001002, allocations: 174.6 kB / 8.517 MB, free: 1.844 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.18/1.18, allocations: 221.4 MB / 230.3 MB, free: 7.734 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.0008977/0.0008976, allocations: 80.8 kB / 281.2 MB, free: 5.469 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.1605/0.1605, allocations: 44.15 MB / 376.1 MB, free: 3.238 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1911/0.3517, allocations: 68.03 MB / 444.1 MB, free: 15.55 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0959/0.4476, allocations: 61.91 MB / 0.4942 GB, free: 1.559 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2419/0.6895, allocations: 85.63 MB / 0.5778 GB, free: 11.21 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001786/0.6897, allocations: 63.97 kB / 0.5779 GB, free: 11.15 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: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.02658/0.7163, allocations: 8.342 MB / 0.586 GB, free: 2.77 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.618e-05/0.7164, allocations: 11.94 kB / 0.586 GB, free: 2.758 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.757e-05/0.7164, allocations: 3.906 kB / 0.586 GB, free: 2.754 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.457e-05/0.7165, allocations: 167 kB / 0.5862 GB, free: 2.551 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.968e-06/0.7165, allocations: 8 kB / 0.5862 GB, free: 2.543 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.834e-06/0.7166, allocations: 0 / 0.5862 GB, free: 2.543 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 3.265e-05/0.7166, allocations: 0 / 0.5862 GB, free: 2.543 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.802e-05/0.7167, allocations: 45.53 kB / 0.5862 GB, free: 2.492 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.59e-06/0.7167, allocations: 0 / 0.5862 GB, free: 2.492 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.706e-06/0.7167, allocations: 0 / 0.5862 GB, free: 2.492 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.488e-06/0.7167, allocations: 0 / 0.5862 GB, free: 2.492 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001098/0.7168, allocations: 126.2 kB / 0.5864 GB, free: 2.332 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.19e-05/0.7169, allocations: 18.58 kB / 0.5864 GB, free: 2.305 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.546e-05/0.7169, allocations: 8.953 kB / 0.5864 GB, free: 2.293 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.124e-05/0.7169, allocations: 3.984 kB / 0.5864 GB, free: 2.289 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.955e-05/0.7169, allocations: 30.56 kB / 0.5864 GB, free: 2.25 MB / 394.7 MB Notification: Performance of pre-optimization done (n=1): time 9.72e-07/0.7169, allocations: 0 / 0.5864 GB, free: 2.25 MB / 394.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001386/0.7171, allocations: 45.55 kB / 0.5865 GB, free: 2.199 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.429e-05/0.7171, allocations: 51.41 kB / 0.5865 GB, free: 2.137 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.033e-05/0.7172, allocations: 89.03 kB / 0.5866 GB, free: 2.043 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.347e-05/0.7172, allocations: 29.7 kB / 0.5866 GB, free: 2.008 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.359e-05/0.7172, allocations: 80.14 kB / 0.5867 GB, free: 1.926 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.864e-05/0.7172, allocations: 0 / 0.5867 GB, free: 1.926 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.354e-06/0.7173, allocations: 0 / 0.5867 GB, free: 1.926 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 8.807e-05/0.7173, allocations: 318.8 kB / 0.587 GB, free: 1.605 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.396e-06/0.7174, allocations: 0 / 0.587 GB, free: 1.605 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.833e-06/0.7174, allocations: 4 kB / 0.587 GB, free: 1.602 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.668e-05/0.7174, allocations: 4.188 kB / 0.587 GB, free: 1.598 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.382e-06/0.7174, allocations: 4 kB / 0.587 GB, free: 1.594 MB / 394.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.959e-05/0.7175, allocations: 33.61 kB / 0.587 GB, free: 1.555 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.063e-05/0.7175, allocations: 11.94 kB / 0.5871 GB, free: 1.543 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.199e-05/0.7175, allocations: 0 / 0.5871 GB, free: 1.543 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.748e-06/0.7176, allocations: 0 / 0.5871 GB, free: 1.543 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.72e-07/0.7176, allocations: 0 / 0.5871 GB, free: 1.543 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.73e-06/0.7176, allocations: 7.922 kB / 0.5871 GB, free: 1.535 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.675e-05/0.7176, allocations: 0 / 0.5871 GB, free: 1.535 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.971e-06/0.7176, allocations: 4.75 kB / 0.5871 GB, free: 1.531 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 (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 prepare postOptimizeDAE: time 5.622e-05/0.7177, allocations: 105 kB / 0.5872 GB, free: 1.422 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.949e-06/0.7177, allocations: 3.906 kB / 0.5872 GB, free: 1.418 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001316/0.7178, allocations: 52.8 kB / 0.5872 GB, free: 1.359 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.455e-06/0.7178, allocations: 0 / 0.5872 GB, free: 1.359 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.477e-06/0.7178, allocations: 0 / 0.5872 GB, free: 1.359 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.284e-06/0.7179, allocations: 4.031 kB / 0.5872 GB, free: 1.355 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.58e-05/0.7179, allocations: 122.2 kB / 0.5873 GB, free: 1.199 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.4e-06/0.7179, allocations: 7.938 kB / 0.5873 GB, free: 1.191 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.533e-06/0.7179, allocations: 4 kB / 0.5873 GB, free: 1.188 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.635e-06/0.718, allocations: 3.906 kB / 0.5874 GB, free: 1.184 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.212e-06/0.718, allocations: 3.984 kB / 0.5874 GB, free: 1.18 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.52e-07/0.718, allocations: 0 / 0.5874 GB, free: 1.18 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.718, allocations: 0 / 0.5874 GB, free: 1.18 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 8.685e-05/0.7181, allocations: 65.08 kB / 0.5874 GB, free: 1.098 MB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0001651/0.7182, allocations: 445.4 kB / 0.5878 GB, free: 0.6406 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.96e-05/0.7183, allocations: 77.11 kB / 0.5879 GB, free: 0.5469 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.065e-05/0.7183, allocations: 0 / 0.5879 GB, free: 0.5469 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.08e-05/0.7183, allocations: 4 kB / 0.5879 GB, free: 0.543 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.833e-05/0.7184, allocations: 7.969 kB / 0.5879 GB, free: 0.5352 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.31e-06/0.7184, allocations: 3.984 kB / 0.5879 GB, free: 0.5312 MB / 394.7 MB Notification: Performance of sort global known variables: time 2.697e-05/0.7184, allocations: 79.28 kB / 0.588 GB, free: 464 kB / 394.7 MB Notification: Performance of remove unused functions: time 0.0008381/0.7193, allocations: 43.94 kB / 0.5881 GB, free: 420 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.0002722/0.7195, allocations: 147.2 kB / 0.5882 GB, free: 264 kB / 394.7 MB Notification: Performance of simCode: created initialization part: time 6.664e-05/0.7196, allocations: 33.64 kB / 0.5882 GB, free: 224 kB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.733e-06/0.7196, allocations: 0 / 0.5882 GB, free: 224 kB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 2.051e-05/0.7196, allocations: 29.86 kB / 0.5883 GB, free: 188 kB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001028/0.7198, allocations: 6.562 kB / 0.5883 GB, free: 184 kB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002221/0.72, allocations: 52 kB / 0.5883 GB, free: 108 kB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002275/0.7202, allocations: 0.6802 MB / 0.589 GB, free: 15.4 MB / 410.7 MB Notification: Performance of SimCode: time 2.5e-07/0.7202, allocations: 0 / 0.589 GB, free: 15.4 MB / 410.7 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test01RegFun3_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_TestUtilities_Test01RegFun3_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestUtilities_Test01RegFun3.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test01RegFun3_res.mat does not exist to compare? outputFormat=mat