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: "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.TestRegFunctions,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestUtilities_TestRegFunctions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.TestRegFunctions,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestUtilities_TestRegFunctions",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.001132/0.001132, allocations: 184.1 kB / 8.52 MB, free: 1.828 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.194/1.194, allocations: 221.4 MB / 230.3 MB, free: 7.719 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.0009047/0.0009047, allocations: 91.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.1624/0.1624, allocations: 44.15 MB / 376.1 MB, free: 3.23 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.18/0.3424, allocations: 68.03 MB / 444.1 MB, free: 15.54 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09518/0.4376, allocations: 61.9 MB / 0.4942 GB, free: 1.562 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2523/0.69, allocations: 84.36 MB / 0.5766 GB, free: 12.36 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002061/0.6902, allocations: 67.95 kB / 0.5766 GB, free: 12.32 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.0028/0.693, allocations: 0.9211 MB / 0.5775 GB, free: 11.41 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.624e-05/0.6931, allocations: 15.94 kB / 0.5775 GB, free: 11.39 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.658e-05/0.6931, allocations: 4 kB / 0.5775 GB, free: 11.39 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001024/0.6932, allocations: 166.9 kB / 0.5777 GB, free: 11.18 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.035e-05/0.6932, allocations: 4 kB / 0.5777 GB, free: 11.18 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.846e-06/0.6933, allocations: 0 / 0.5777 GB, free: 11.18 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001035/0.6934, allocations: 55.89 kB / 0.5778 GB, free: 11.12 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.851e-05/0.6935, allocations: 46.34 kB / 0.5778 GB, free: 11.07 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.192e-06/0.6935, allocations: 0 / 0.5778 GB, free: 11.07 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.147e-06/0.6935, allocations: 4 kB / 0.5778 GB, free: 11.07 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.811e-06/0.6935, allocations: 7.922 kB / 0.5778 GB, free: 11.06 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001471/0.6937, allocations: 146.1 kB / 0.5779 GB, free: 10.88 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.561e-05/0.6938, allocations: 66.59 kB / 0.578 GB, free: 10.81 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.943e-05/0.6938, allocations: 24.86 kB / 0.578 GB, free: 10.78 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002929/0.6941, allocations: 259.3 kB / 0.5783 GB, free: 10.47 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.226e-05/0.6941, allocations: 30.56 kB / 0.5783 GB, free: 10.43 MB / 394.7 MB Notification: Performance of pre-optimization done (n=10): time 1.212e-06/0.6941, allocations: 0 / 0.5783 GB, free: 10.43 MB / 394.7 MB Notification: Performance of matching and sorting (n=10): time 0.0002416/0.6944, allocations: 93.69 kB / 0.5784 GB, free: 10.34 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.625e-05/0.6944, allocations: 51.41 kB / 0.5784 GB, free: 10.27 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.703e-05/0.6945, allocations: 85 kB / 0.5785 GB, free: 10.18 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.244e-05/0.6945, allocations: 25.7 kB / 0.5786 GB, free: 10.15 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.201e-05/0.6945, allocations: 84.27 kB / 0.5786 GB, free: 10.07 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.785e-05/0.6946, allocations: 34.39 kB / 0.5787 GB, free: 10.04 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.828e-06/0.6946, allocations: 0 / 0.5787 GB, free: 10.04 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 8.598e-05/0.6947, allocations: 322.8 kB / 0.579 GB, free: 9.711 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.751e-05/0.6947, allocations: 12 kB / 0.579 GB, free: 9.699 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.287e-05/0.6947, allocations: 12 kB / 0.579 GB, free: 9.688 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.994e-05/0.6948, allocations: 27.97 kB / 0.579 GB, free: 9.66 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.353e-06/0.6948, allocations: 0 / 0.579 GB, free: 9.66 MB / 394.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001735/0.695, allocations: 81.89 kB / 0.5791 GB, free: 9.574 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.037e-05/0.695, allocations: 12 kB / 0.5791 GB, free: 9.562 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.647e-06/0.6951, allocations: 96 / 0.5791 GB, free: 9.562 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.566e-06/0.6951, allocations: 3.938 kB / 0.5791 GB, free: 9.559 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.326e-05/0.6952, allocations: 16.67 kB / 0.5791 GB, free: 9.543 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.45e-06/0.6952, allocations: 3.906 kB / 0.5791 GB, free: 9.539 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.639e-05/0.6952, allocations: 4 kB / 0.5791 GB, free: 9.535 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.412e-06/0.6952, allocations: 0 / 0.5791 GB, free: 9.535 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 5.599e-05/0.6953, allocations: 104.9 kB / 0.5792 GB, free: 9.426 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.136e-05/0.6953, allocations: 7.906 kB / 0.5792 GB, free: 9.418 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002373/0.6955, allocations: 110.4 kB / 0.5794 GB, free: 9.305 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.843e-06/0.6956, allocations: 0 / 0.5794 GB, free: 9.305 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.687e-06/0.6956, allocations: 0 / 0.5794 GB, free: 9.305 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.026e-06/0.6956, allocations: 4 kB / 0.5794 GB, free: 9.301 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.257e-05/0.6957, allocations: 146.1 kB / 0.5795 GB, free: 9.121 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-06/0.6957, allocations: 0 / 0.5795 GB, free: 9.121 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.112e-05/0.6958, allocations: 15.98 kB / 0.5795 GB, free: 9.105 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.893e-06/0.6958, allocations: 0 / 0.5795 GB, free: 9.105 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.261e-05/0.6958, allocations: 4 kB / 0.5795 GB, free: 9.102 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.192e-06/0.6958, allocations: 3.828 kB / 0.5795 GB, free: 9.102 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.6958, allocations: 4 kB / 0.5795 GB, free: 9.098 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001869/0.696, allocations: 113 kB / 0.5796 GB, free: 8.969 MB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0002877/0.6963, allocations: 489.3 kB / 0.5801 GB, free: 8.469 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.196e-05/0.6963, allocations: 85.3 kB / 0.5802 GB, free: 8.367 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.508e-05/0.6963, allocations: 7.984 kB / 0.5802 GB, free: 8.359 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.704e-05/0.6964, allocations: 0 / 0.5802 GB, free: 8.359 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.514e-05/0.6964, allocations: 7.938 kB / 0.5802 GB, free: 8.352 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.382e-06/0.6964, allocations: 4 kB / 0.5802 GB, free: 8.348 MB / 394.7 MB Notification: Performance of sort global known variables: time 2.505e-05/0.6964, allocations: 79.28 kB / 0.5803 GB, free: 8.27 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0008027/0.6972, allocations: 23.92 kB / 0.5803 GB, free: 8.246 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.0001298/0.6974, allocations: 111.1 kB / 0.5804 GB, free: 8.129 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 9.905e-05/0.6975, allocations: 48.03 kB / 0.5804 GB, free: 8.082 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.6975, allocations: 4 kB / 0.5805 GB, free: 8.078 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 3.838e-05/0.6975, allocations: 31.92 kB / 0.5805 GB, free: 8.047 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.938e-05/0.6976, allocations: 0 / 0.5805 GB, free: 8.047 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000232/0.6979, allocations: 83.78 kB / 0.5806 GB, free: 7.941 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002284/0.6981, allocations: 0.6997 MB / 0.5812 GB, free: 7.215 MB / 394.7 MB Notification: Performance of SimCode: time 2.71e-07/0.6981, allocations: 0 / 0.5812 GB, free: 7.215 MB / 394.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_TestUtilities_TestRegFunctions_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestUtilities_TestRegFunctions.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions_res.mat does not exist to compare? outputFormat=mat