Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.EngineGasForce.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.MultiBody.Forces.EngineGasForce,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_EngineGasForce",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.EngineGasForce,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_EngineGasForce",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.0009764/0.0009764, allocations: 186.7 kB / 8.525 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.127/1.127, allocations: 221.4 MB / 230.3 MB, free: 7.711 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.0009291/0.0009292, allocations: 88.67 kB / 281.2 MB, free: 5.457 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.1554/0.1554, allocations: 44.15 MB / 376.1 MB, free: 3.227 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1626/0.318, allocations: 68.03 MB / 444.1 MB, free: 15.52 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08824/0.4063, allocations: 61.9 MB / 0.4942 GB, free: 1.539 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2282/0.6346, allocations: 88.25 MB / 0.5804 GB, free: 8.48 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001763/0.6348, allocations: 79.94 kB / 0.5804 GB, free: 8.402 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: 29 * Number of variables: 29 Notification: Performance of Generate backend data structure: time 0.008767/0.6436, allocations: 2.956 MB / 0.5833 GB, free: 5.406 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.075e-05/0.6436, allocations: 11.94 kB / 0.5833 GB, free: 5.395 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.264e-05/0.6437, allocations: 19.72 kB / 0.5833 GB, free: 5.375 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002171/0.6439, allocations: 207.4 kB / 0.5835 GB, free: 5.129 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.225e-06/0.6439, allocations: 0 / 0.5835 GB, free: 5.129 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.879e-05/0.6439, allocations: 11.25 kB / 0.5836 GB, free: 5.121 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001999/0.6442, allocations: 83.92 kB / 0.5836 GB, free: 5.039 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002207/0.6444, allocations: 145.9 kB / 0.5838 GB, free: 4.879 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.028e-05/0.6444, allocations: 3.906 kB / 0.5838 GB, free: 4.875 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.317e-05/0.6444, allocations: 7.938 kB / 0.5838 GB, free: 4.867 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.749e-06/0.6445, allocations: 0 / 0.5838 GB, free: 4.867 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008357/0.6453, allocations: 0.6544 MB / 0.5844 GB, free: 4.164 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001451/0.6455, allocations: 85.73 kB / 0.5845 GB, free: 4.074 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.627e-05/0.6456, allocations: 52.86 kB / 0.5846 GB, free: 4.02 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.41e-05/0.6456, allocations: 0 / 0.5846 GB, free: 4.02 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.11e-05/0.6456, allocations: 34.56 kB / 0.5846 GB, free: 3.977 MB / 394.7 MB Notification: Performance of pre-optimization done (n=14): time 1.012e-06/0.6456, allocations: 0 / 0.5846 GB, free: 3.977 MB / 394.7 MB Notification: Performance of matching and sorting (n=20): time 0.0009048/0.6465, allocations: 295.2 kB / 0.5849 GB, free: 3.684 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.65e-05/0.6466, allocations: 51.41 kB / 0.5849 GB, free: 3.621 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.143e-05/0.6467, allocations: 134.1 kB / 0.585 GB, free: 3.484 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.865e-05/0.6467, allocations: 25.7 kB / 0.5851 GB, free: 3.453 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.827e-05/0.6468, allocations: 112.3 kB / 0.5852 GB, free: 3.34 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.449e-05/0.6468, allocations: 63.09 kB / 0.5852 GB, free: 3.277 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.196e-05/0.6468, allocations: 0 / 0.5852 GB, free: 3.277 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001046/0.6469, allocations: 330.7 kB / 0.5856 GB, free: 2.945 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.707e-05/0.647, allocations: 40 kB / 0.5856 GB, free: 2.906 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001068/0.6471, allocations: 93.41 kB / 0.5857 GB, free: 2.805 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001073/0.6472, allocations: 54.56 kB / 0.5857 GB, free: 2.754 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.41e-07/0.6473, allocations: 0 / 0.5857 GB, free: 2.754 MB / 394.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0002853/0.6475, allocations: 165.4 kB / 0.5859 GB, free: 2.586 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.398e-06/0.6476, allocations: 4 kB / 0.5859 GB, free: 2.582 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.853e-06/0.6476, allocations: 4 kB / 0.5859 GB, free: 2.578 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.438e-06/0.6476, allocations: 0 / 0.5859 GB, free: 2.578 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003461/0.6479, allocations: 63.98 kB / 0.586 GB, free: 2.516 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.098e-06/0.648, allocations: 0 / 0.586 GB, free: 2.516 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001691/0.6481, allocations: 11.98 kB / 0.586 GB, free: 2.504 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.169e-05/0.6482, allocations: 12 kB / 0.586 GB, free: 2.492 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 23 * 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 7.409e-05/0.6482, allocations: 108.9 kB / 0.5861 GB, free: 2.379 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.955e-05/0.6483, allocations: 15.81 kB / 0.5861 GB, free: 2.363 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.872e-05/0.6483, allocations: 24.61 kB / 0.5861 GB, free: 2.344 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.114e-06/0.6483, allocations: 0 / 0.5861 GB, free: 2.344 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.108e-06/0.6484, allocations: 0 / 0.5861 GB, free: 2.344 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.781e-06/0.6484, allocations: 7.891 kB / 0.5861 GB, free: 2.336 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007802/0.6492, allocations: 0.5563 MB / 0.5867 GB, free: 1.734 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.844e-06/0.6492, allocations: 3.828 kB / 0.5867 GB, free: 1.734 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002872/0.6495, allocations: 51.95 kB / 0.5867 GB, free: 1.684 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.966e-06/0.6495, allocations: 3.938 kB / 0.5867 GB, free: 1.68 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.751e-05/0.6495, allocations: 4 kB / 0.5867 GB, free: 1.676 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.875e-06/0.6495, allocations: 3.938 kB / 0.5867 GB, free: 1.672 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.565e-06/0.6495, allocations: 4 kB / 0.5867 GB, free: 1.668 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002945/0.6498, allocations: 255.3 kB / 0.587 GB, free: 1.402 MB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0003824/0.6502, allocations: 0.6275 MB / 0.5876 GB, free: 0.7578 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.156e-05/0.6503, allocations: 108.9 kB / 0.5877 GB, free: 0.6328 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.23e-05/0.6503, allocations: 0 / 0.5877 GB, free: 0.6328 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002293/0.6506, allocations: 15.98 kB / 0.5877 GB, free: 0.6172 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.533e-05/0.6506, allocations: 15.98 kB / 0.5877 GB, free: 0.6016 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.06e-05/0.6507, allocations: 11.98 kB / 0.5877 GB, free: 0.5898 MB / 394.7 MB Notification: Performance of sort global known variables: time 5.882e-05/0.6507, allocations: 105.9 kB / 0.5878 GB, free: 500 kB / 394.7 MB Notification: Performance of remove unused functions: time 0.0008317/0.6516, allocations: 35.94 kB / 0.5879 GB, free: 464 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 (20): * Single equations (assignments): 20 * 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 9.59e-05/0.6517, allocations: 91.25 kB / 0.588 GB, free: 360 kB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0002405/0.6519, allocations: 131.9 kB / 0.5881 GB, free: 228 kB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.503e-06/0.6519, allocations: 0 / 0.5881 GB, free: 228 kB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001217/0.6521, allocations: 71.94 kB / 0.5882 GB, free: 156 kB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002205/0.6523, allocations: 18.42 kB / 0.5882 GB, free: 140 kB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006047/0.6529, allocations: 211.9 kB / 0.5884 GB, free: 15.91 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003893/0.6533, allocations: 0.7553 MB / 0.5891 GB, free: 15.12 MB / 410.7 MB Notification: Performance of SimCode: time 2.6e-07/0.6533, allocations: 0 / 0.5891 GB, free: 15.12 MB / 410.7 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.EngineGasForce.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.EngineGasForce.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.EngineGasForce.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.EngineGasForce.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.EngineGasForce_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_EngineGasForce_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_EngineGasForce.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.EngineGasForce.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.EngineGasForce_res.mat does not exist to compare? outputFormat=mat