Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Media.Examples.SimpleLiquidWater.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) 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(Modelica.Media.Examples.SimpleLiquidWater,fileNamePrefix="Modelica_4_0_0_Modelica_Media_Examples_SimpleLiquidWater",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.SimpleLiquidWater,fileNamePrefix="Modelica_4_0_0_Modelica_Media_Examples_SimpleLiquidWater",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.001063/0.001063, allocations: 182.3 kB / 8.131 MB, free: 2.219 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.055/1.055, allocations: 221.4 MB / 229.9 MB, free: 3.289 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.0008476/0.0008476, allocations: 96.31 kB / 280.8 MB, free: 1.242 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.08434/0.08521, allocations: 55.8 MB / 336.6 MB, free: 9.418 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1633/0.2485, allocations: 50.4 MB / 387 MB, free: 38.02 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3217/0.5703, allocations: 272.9 MB / 0.6444 GB, free: 13.07 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001768/0.5705, allocations: 64.22 kB / 0.6445 GB, free: 13.04 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.02201/0.5925, allocations: 9.771 MB / 0.654 GB, free: 5.09 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.23e-05/0.5926, allocations: 15.94 kB / 0.654 GB, free: 5.074 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001862/0.5928, allocations: 23.8 kB / 0.654 GB, free: 5.051 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002164/0.593, allocations: 205.9 kB / 0.6542 GB, free: 4.82 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.289e-05/0.593, allocations: 4 kB / 0.6542 GB, free: 4.816 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.9e-05/0.5931, allocations: 15.94 kB / 0.6543 GB, free: 4.801 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002107/0.5933, allocations: 110.7 kB / 0.6544 GB, free: 4.727 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002545/0.5935, allocations: 174.4 kB / 0.6545 GB, free: 4.562 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.467e-05/0.5936, allocations: 7.844 kB / 0.6545 GB, free: 4.555 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.256e-05/0.5936, allocations: 4 kB / 0.6545 GB, free: 4.551 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.256e-06/0.5936, allocations: 4 kB / 0.6545 GB, free: 4.547 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001129/0.5947, allocations: 0.9159 MB / 0.6554 GB, free: 3.648 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002066/0.595, allocations: 116.6 kB / 0.6555 GB, free: 3.555 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.222e-05/0.595, allocations: 43.69 kB / 0.6556 GB, free: 3.523 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000474/0.5955, allocations: 0.506 MB / 0.6561 GB, free: 2.973 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.115e-05/0.5955, allocations: 38.31 kB / 0.6561 GB, free: 2.93 MB / 442.7 MB Notification: Performance of pre-optimization done (n=14): time 1.202e-06/0.5956, allocations: 0 / 0.6561 GB, free: 2.93 MB / 442.7 MB Notification: Performance of matching and sorting (n=20): time 0.001785/0.5973, allocations: 0.6014 MB / 0.6567 GB, free: 2.359 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.41e-05/0.5974, allocations: 51.41 kB / 0.6568 GB, free: 2.297 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000105/0.5975, allocations: 138.3 kB / 0.6569 GB, free: 2.164 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 2.37e-05/0.5975, allocations: 25.7 kB / 0.6569 GB, free: 2.133 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.5e-05/0.5976, allocations: 142.8 kB / 0.6571 GB, free: 1.996 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.914e-05/0.5976, allocations: 73.94 kB / 0.6571 GB, free: 1.934 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.52e-05/0.5977, allocations: 0 / 0.6571 GB, free: 1.934 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 9.193e-05/0.5978, allocations: 326.2 kB / 0.6574 GB, free: 1.609 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.471e-05/0.5979, allocations: 57.38 kB / 0.6575 GB, free: 1.574 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000149/0.598, allocations: 174.3 kB / 0.6577 GB, free: 1.387 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001637/0.5982, allocations: 83.95 kB / 0.6577 GB, free: 1.332 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.145e-06/0.5982, allocations: 4 kB / 0.6577 GB, free: 1.328 MB / 442.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0004269/0.5986, allocations: 246.3 kB / 0.658 GB, free: 1.125 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.058e-05/0.5987, allocations: 4 kB / 0.658 GB, free: 1.121 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.673e-06/0.5987, allocations: 4 kB / 0.658 GB, free: 1.117 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.185e-05/0.5987, allocations: 4 kB / 0.658 GB, free: 1.113 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003858/0.5991, allocations: 91.97 kB / 0.6581 GB, free: 1.027 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.135e-06/0.5991, allocations: 7.938 kB / 0.6581 GB, free: 1.02 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002409/0.5993, allocations: 16.7 kB / 0.6581 GB, free: 1.004 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.914e-05/0.5994, allocations: 15.94 kB / 0.6581 GB, free: 0.9883 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (37): * Single equations (assignments): 37 * 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.975e-05/0.5995, allocations: 112.4 kB / 0.6582 GB, free: 0.875 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.804e-05/0.5995, allocations: 15.81 kB / 0.6582 GB, free: 0.8594 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004532/0.6, allocations: 197.2 kB / 0.6584 GB, free: 0.6992 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.669e-06/0.6, allocations: 4 kB / 0.6584 GB, free: 0.6953 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.977e-06/0.6, allocations: 0 / 0.6584 GB, free: 0.6953 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.541e-06/0.6, allocations: 3.984 kB / 0.6584 GB, free: 0.6914 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009279/0.6009, allocations: 0.5063 MB / 0.6589 GB, free: 196 kB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.457e-06/0.601, allocations: 7.938 kB / 0.6589 GB, free: 188 kB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003039/0.6013, allocations: 47.95 kB / 0.659 GB, free: 140 kB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.081e-06/0.6013, allocations: 4 kB / 0.659 GB, free: 136 kB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.016e-05/0.6013, allocations: 4.922 kB / 0.659 GB, free: 132 kB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.115e-06/0.6013, allocations: 4 kB / 0.659 GB, free: 128 kB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.6013, allocations: 0 / 0.659 GB, free: 128 kB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.09107/0.6924, allocations: 394 kB / 0.6594 GB, free: 203.6 MB / 442.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0005074/0.6929, allocations: 0.8182 MB / 0.6602 GB, free: 203 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.651e-05/0.693, allocations: 94.73 kB / 0.6603 GB, free: 202.9 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.144e-05/0.693, allocations: 3.688 kB / 0.6603 GB, free: 202.9 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002831/0.6933, allocations: 17.8 kB / 0.6603 GB, free: 202.9 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.802e-05/0.6934, allocations: 10.52 kB / 0.6603 GB, free: 202.9 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.412e-05/0.6934, allocations: 15.97 kB / 0.6603 GB, free: 202.9 MB / 442.7 MB Notification: Performance of sort global known variables: time 4.826e-05/0.6934, allocations: 100.2 kB / 0.6604 GB, free: 202.8 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0008942/0.6943, allocations: 67.45 kB / 0.6605 GB, free: 202.8 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 1 (medium.T) * 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 0.0001869/0.6945, allocations: 137.4 kB / 0.6606 GB, free: 202.8 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.0002587/0.6948, allocations: 165.1 kB / 0.6607 GB, free: 202.8 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.075e-06/0.6948, allocations: 0 / 0.6607 GB, free: 202.8 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 8.565e-05/0.6949, allocations: 77.16 kB / 0.6608 GB, free: 202.8 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002893/0.6952, allocations: 30.08 kB / 0.6609 GB, free: 202.8 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006328/0.6958, allocations: 290 kB / 0.6611 GB, free: 202.6 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002107/0.6961, allocations: 0.7565 MB / 0.6619 GB, free: 201.9 MB / 442.7 MB Notification: Performance of SimCode: time 2.4e-07/0.6961, allocations: 0 / 0.6619 GB, free: 201.9 MB / 442.7 MB (rm -f Modelica_4.0.0_Modelica.Media.Examples.SimpleLiquidWater.pipe ; mkfifo Modelica_4.0.0_Modelica.Media.Examples.SimpleLiquidWater.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Media.Examples.SimpleLiquidWater.pipe >> ../files/Modelica_4.0.0_Modelica.Media.Examples.SimpleLiquidWater.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Media.Examples.SimpleLiquidWater_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Media_Examples_SimpleLiquidWater_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Media_Examples_SimpleLiquidWater.fmu > Modelica_4.0.0_Modelica.Media.Examples.SimpleLiquidWater.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Media.Examples.SimpleLiquidWater_res.mat does not exist to compare? outputFormat=mat