Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo", uses=false) 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) Using package Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange,fileNamePrefix="Buildings_latest_Buildings_Fluid_HeatExchangers_BaseClasses_Examples_MassExchange",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange,fileNamePrefix="Buildings_latest_Buildings_Fluid_HeatExchangers_BaseClasses_Examples_MassExchange",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/Buildings 10.0.0-master/package.mo): time 2.221/2.221, allocations: 390.4 MB / 397.7 MB, free: 11.29 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00119/0.00119, allocations: 189.2 kB / 490.8 MB, free: 1.98 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.741/1.741, allocations: 221.3 MB / 0.7863 GB, free: 13.69 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001334/0.001335, allocations: 90.42 kB / 0.9264 GB, free: 14.22 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 0.7949/0.7963, allocations: 149.1 MB / 1.072 GB, free: 182.5 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3099/1.106, allocations: 143 MB / 1.212 GB, free: 40.04 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.046/5.152, allocations: 1.711 GB / 2.923 GB, free: 161.7 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000256/5.152, allocations: 83.95 kB / 2.923 GB, free: 161.6 MB / 1.151 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 25 * Number of variables: 25 Notification: Performance of Generate backend data structure: time 0.07635/5.229, allocations: 40.27 MB / 2.962 GB, free: 120.9 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 4.589e-05/5.229, allocations: 8 kB / 2.962 GB, free: 120.8 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003084/5.229, allocations: 39.72 kB / 2.962 GB, free: 120.8 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002752/5.229, allocations: 206.8 kB / 2.962 GB, free: 120.6 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.297e-05/5.229, allocations: 4 kB / 2.962 GB, free: 120.6 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.036e-05/5.229, allocations: 4 kB / 2.962 GB, free: 120.6 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001516/5.23, allocations: 60 kB / 2.962 GB, free: 120.5 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001531/5.23, allocations: 89.98 kB / 2.963 GB, free: 120.4 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.04e-05/5.23, allocations: 4 kB / 2.963 GB, free: 120.4 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.447e-05/5.23, allocations: 0 / 2.963 GB, free: 120.4 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.654e-06/5.23, allocations: 7.906 kB / 2.963 GB, free: 120.4 MB / 1.151 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006577/5.231, allocations: 412.9 kB / 2.963 GB, free: 119.9 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001261/5.231, allocations: 74.47 kB / 2.963 GB, free: 119.9 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.993e-05/5.231, allocations: 24.92 kB / 2.963 GB, free: 119.8 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 3.004e-05/5.231, allocations: 7.938 kB / 2.963 GB, free: 119.8 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.744e-05/5.231, allocations: 34.56 kB / 2.963 GB, free: 119.8 MB / 1.151 GB Notification: Performance of pre-optimization done (n=7): time 1.563e-06/5.231, allocations: 0 / 2.963 GB, free: 119.8 MB / 1.151 GB Notification: Performance of matching and sorting (n=7): time 0.0002136/5.231, allocations: 77.64 kB / 2.963 GB, free: 119.7 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.442e-05/5.231, allocations: 51.41 kB / 2.963 GB, free: 119.6 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00011/5.231, allocations: 132.2 kB / 2.963 GB, free: 119.5 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 1.315e-05/5.231, allocations: 29.69 kB / 2.963 GB, free: 119.5 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 3.914e-05/5.231, allocations: 115.8 kB / 2.963 GB, free: 119.4 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 1.361e-05/5.231, allocations: 15.66 kB / 2.963 GB, free: 119.3 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.332e-06/5.231, allocations: 0 / 2.963 GB, free: 119.3 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 5.716e-05/5.231, allocations: 330.8 kB / 2.964 GB, free: 119 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.722e-05/5.231, allocations: 16 kB / 2.964 GB, free: 119 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.23e-05/5.231, allocations: 20.16 kB / 2.964 GB, free: 119 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.524e-05/5.231, allocations: 32.2 kB / 2.964 GB, free: 118.9 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/5.231, allocations: 0 / 2.964 GB, free: 118.9 MB / 1.151 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001311/5.232, allocations: 89.52 kB / 2.964 GB, free: 118.8 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.398e-05/5.232, allocations: 4 kB / 2.964 GB, free: 118.8 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.539e-06/5.232, allocations: 0 / 2.964 GB, free: 118.8 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.196e-05/5.232, allocations: 0 / 2.964 GB, free: 118.8 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000155/5.232, allocations: 31.92 kB / 2.964 GB, free: 118.8 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.979e-06/5.232, allocations: 3.906 kB / 2.964 GB, free: 118.8 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001035/5.232, allocations: 11.98 kB / 2.964 GB, free: 118.8 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.007e-06/5.232, allocations: 0 / 2.964 GB, free: 118.8 MB / 1.151 GB 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 (8): * Single equations (assignments): 8 * 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.716e-05/5.232, allocations: 107.8 kB / 2.964 GB, free: 118.7 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.611e-05/5.232, allocations: 19.81 kB / 2.964 GB, free: 118.7 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001856/5.232, allocations: 94.09 kB / 2.964 GB, free: 118.6 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.415e-06/5.232, allocations: 0 / 2.964 GB, free: 118.6 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.52e-06/5.232, allocations: 0 / 2.964 GB, free: 118.6 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.039e-06/5.232, allocations: 4 kB / 2.964 GB, free: 118.6 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001697/5.232, allocations: 194.1 kB / 2.964 GB, free: 118.3 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.473e-06/5.232, allocations: 0 / 2.964 GB, free: 118.3 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001215/5.233, allocations: 27.98 kB / 2.964 GB, free: 118.3 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.786e-06/5.233, allocations: 0 / 2.964 GB, free: 118.3 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.174e-05/5.233, allocations: 0 / 2.964 GB, free: 118.3 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.655e-06/5.233, allocations: 3.984 kB / 2.964 GB, free: 118.3 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.925e-06/5.233, allocations: 0 / 2.964 GB, free: 118.3 MB / 1.151 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001636/5.233, allocations: 179.3 kB / 2.965 GB, free: 118.1 MB / 1.151 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0002841/5.233, allocations: 0.5585 MB / 2.965 GB, free: 117.5 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 5.447e-05/5.233, allocations: 85.02 kB / 2.965 GB, free: 117.4 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.81e-05/5.233, allocations: 3.906 kB / 2.965 GB, free: 117.4 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001348/5.233, allocations: 11.98 kB / 2.965 GB, free: 117.4 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.948e-05/5.233, allocations: 7.984 kB / 2.965 GB, free: 117.4 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.422e-06/5.233, allocations: 0 / 2.965 GB, free: 117.4 MB / 1.151 GB Notification: Performance of sort global known variables: time 6.674e-05/5.233, allocations: 117.9 kB / 2.965 GB, free: 117.3 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.001009/5.234, allocations: 95.84 kB / 2.965 GB, free: 117.2 MB / 1.151 GB 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 (7): * Single equations (assignments): 7 * 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.0007506/5.235, allocations: 0.6557 MB / 2.966 GB, free: 116.5 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.0001358/5.235, allocations: 48 kB / 2.966 GB, free: 116.5 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/5.235, allocations: 0 / 2.966 GB, free: 116.5 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 5.12e-05/5.235, allocations: 27.98 kB / 2.966 GB, free: 116.5 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003175/5.236, allocations: 39.84 kB / 2.966 GB, free: 116.4 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004565/5.236, allocations: 151.5 kB / 2.966 GB, free: 116.3 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002263/5.236, allocations: 0.7269 MB / 2.967 GB, free: 115.5 MB / 1.151 GB Notification: Performance of SimCode: time 6.81e-07/5.236, allocations: 4 kB / 2.967 GB, free: 115.5 MB / 1.151 GB (rm -f Buildings_latest_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.pipe ; mkfifo Buildings_latest_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.pipe >> ../files/Buildings_latest_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_HeatExchangers_BaseClasses_Examples_MassExchange_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_HeatExchangers_BaseClasses_Examples_MassExchange.fmu > Buildings_latest_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange_res.mat does not exist to compare? outputFormat=mat