Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.Test02RegFun3,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestUtilities_Test02RegFun3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.Test02RegFun3,fileNamePrefix="ModelicaTest_3_2_3_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 3.2.3+maint.om/package.mo): time 0.001332/0.001333, allocations: 191.9 kB / 7.807 MB, free: 2.441 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.483/1.483, allocations: 205.2 MB / 213.4 MB, free: 13.86 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009336/0.0009338, allocations: 95.38 kB / 261.4 MB, free: 13.55 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.203/0.203, allocations: 43.49 MB / 352.9 MB, free: 1.965 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2253/0.4283, allocations: 64.96 MB / 417.8 MB, free: 40.48 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3666/0.7949, allocations: 58.84 MB / 476.6 MB, free: 5.176 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1348/0.9297, allocations: 84.53 MB / 0.548 GB, free: 14.39 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002791/0.9301, allocations: 71.47 kB / 0.5481 GB, free: 14.33 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.028/0.9581, allocations: 8.253 MB / 0.5562 GB, free: 6.031 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.964e-05/0.9582, allocations: 8 kB / 0.5562 GB, free: 6.023 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.58e-05/0.9582, allocations: 7.938 kB / 0.5562 GB, free: 6.016 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.672e-05/0.9583, allocations: 163 kB / 0.5563 GB, free: 5.816 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.177e-05/0.9583, allocations: 0 / 0.5563 GB, free: 5.816 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.975e-06/0.9583, allocations: 0 / 0.5563 GB, free: 5.816 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 5.032e-05/0.9584, allocations: 4 kB / 0.5563 GB, free: 5.812 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.565e-05/0.9585, allocations: 49.52 kB / 0.5564 GB, free: 5.758 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.124e-06/0.9585, allocations: 0 / 0.5564 GB, free: 5.758 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.135e-05/0.9585, allocations: 0 / 0.5564 GB, free: 5.758 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.929e-06/0.9585, allocations: 0 / 0.5564 GB, free: 5.758 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003161/0.9588, allocations: 225.5 kB / 0.5566 GB, free: 5.5 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.43e-05/0.9589, allocations: 18.58 kB / 0.5566 GB, free: 5.473 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.6e-05/0.9589, allocations: 8.859 kB / 0.5566 GB, free: 5.461 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.411e-05/0.9589, allocations: 4.062 kB / 0.5566 GB, free: 5.457 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.641e-05/0.959, allocations: 34.5 kB / 0.5567 GB, free: 5.414 MB / 394.7 MB Notification: Performance of pre-optimization done (n=1): time 1.152e-06/0.959, allocations: 4 kB / 0.5567 GB, free: 5.41 MB / 394.7 MB Notification: Performance of matching and sorting (n=1): time 0.0002046/0.9592, allocations: 33.64 kB / 0.5567 GB, free: 5.371 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.261e-05/0.9592, allocations: 55.41 kB / 0.5567 GB, free: 5.305 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.545e-05/0.9593, allocations: 89 kB / 0.5568 GB, free: 5.211 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.472e-05/0.9593, allocations: 25.7 kB / 0.5569 GB, free: 5.18 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.963e-05/0.9594, allocations: 88.03 kB / 0.5569 GB, free: 5.09 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.041e-06/0.9594, allocations: 7.906 kB / 0.5569 GB, free: 5.082 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.645e-06/0.9594, allocations: 0 / 0.5569 GB, free: 5.082 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001142/0.9595, allocations: 315 kB / 0.5572 GB, free: 4.766 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.177e-05/0.9595, allocations: 4 kB / 0.5573 GB, free: 4.762 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.658e-05/0.9596, allocations: 18.58 kB / 0.5573 GB, free: 4.734 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.261e-05/0.9596, allocations: 4 kB / 0.5573 GB, free: 4.73 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.694e-06/0.9596, allocations: 0 / 0.5573 GB, free: 4.73 MB / 394.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001024/0.9597, allocations: 49.62 kB / 0.5573 GB, free: 4.676 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.477e-05/0.9598, allocations: 8 kB / 0.5573 GB, free: 4.668 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.228e-05/0.9598, allocations: 0 / 0.5573 GB, free: 4.668 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.1e-05/0.9598, allocations: 0 / 0.5573 GB, free: 4.668 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.74e-05/0.9598, allocations: 4 kB / 0.5573 GB, free: 4.664 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.681e-06/0.9599, allocations: 3.984 kB / 0.5573 GB, free: 4.66 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.209e-05/0.9599, allocations: 7.906 kB / 0.5573 GB, free: 4.652 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.416e-06/0.9599, allocations: 4 kB / 0.5573 GB, free: 4.648 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 7.335e-05/0.96, allocations: 113.8 kB / 0.5575 GB, free: 4.535 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.506e-05/0.96, allocations: 8.031 kB / 0.5575 GB, free: 4.527 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001355/0.9601, allocations: 36.86 kB / 0.5575 GB, free: 4.48 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.573e-06/0.9602, allocations: 7.891 kB / 0.5575 GB, free: 4.473 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.609e-06/0.9602, allocations: 0 / 0.5575 GB, free: 4.473 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.609e-06/0.9602, allocations: 0 / 0.5575 GB, free: 4.473 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001356/0.9603, allocations: 126.2 kB / 0.5576 GB, free: 4.312 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.586e-06/0.9603, allocations: 0 / 0.5576 GB, free: 4.312 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.91e-07/0.9603, allocations: 4.031 kB / 0.5576 GB, free: 4.309 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.813e-06/0.9603, allocations: 0 / 0.5576 GB, free: 4.309 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.924e-06/0.9604, allocations: 4 kB / 0.5576 GB, free: 4.305 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.083e-06/0.9604, allocations: 0 / 0.5576 GB, free: 4.305 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.104e-06/0.9604, allocations: 0 / 0.5576 GB, free: 4.305 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001227/0.9605, allocations: 139.4 kB / 0.5578 GB, free: 4.152 MB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0002367/0.9607, allocations: 0.5038 MB / 0.5583 GB, free: 3.629 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.59e-05/0.9608, allocations: 81.19 kB / 0.5583 GB, free: 3.531 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.35e-05/0.9608, allocations: 4 kB / 0.5583 GB, free: 3.527 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.711e-05/0.9609, allocations: 0 / 0.5583 GB, free: 3.527 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.385e-05/0.9609, allocations: 0 / 0.5583 GB, free: 3.527 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.001e-06/0.9609, allocations: 4 kB / 0.5583 GB, free: 3.523 MB / 394.7 MB Notification: Performance of sort global known variables: time 4.391e-05/0.961, allocations: 83.25 kB / 0.5584 GB, free: 3.441 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0008742/0.9618, allocations: 60.02 kB / 0.5585 GB, free: 3.383 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.000332/0.9622, allocations: 147.1 kB / 0.5586 GB, free: 3.23 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 9.695e-05/0.9623, allocations: 37.62 kB / 0.5587 GB, free: 3.188 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.9623, allocations: 0 / 0.5587 GB, free: 3.188 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 2.151e-05/0.9623, allocations: 33.7 kB / 0.5587 GB, free: 3.148 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001355/0.9625, allocations: 0 / 0.5587 GB, free: 3.148 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002448/0.9627, allocations: 48.31 kB / 0.5587 GB, free: 3.078 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003749/0.9631, allocations: 0.6919 MB / 0.5594 GB, free: 2.359 MB / 394.7 MB Notification: Performance of SimCode: time 2.5e-07/0.9631, allocations: 0 / 0.5594 GB, free: 2.359 MB / 394.7 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.Test02RegFun3_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Fluid_TestUtilities_Test02RegFun3_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Fluid_TestUtilities_Test02RegFun3.fmu > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.Test02RegFun3_res.mat does not exist to compare? outputFormat=mat