Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityProperties.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.Media.Specialized.Water.Examples.TemperatureDependentDensityProperties,fileNamePrefix="Buildings_latest_Buildings_Media_Specialized_Water_Examples_TemperatureDependentDensityProperties",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityProperties,fileNamePrefix="Buildings_latest_Buildings_Media_Specialized_Water_Examples_TemperatureDependentDensityProperties",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.034/2.034, 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.001197/0.001197, allocations: 177.3 kB / 490.8 MB, free: 1.934 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.533/1.533, allocations: 221.4 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.001062/0.001062, allocations: 99.97 kB / 0.9264 GB, free: 14.22 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 0.6896/0.6907, allocations: 149.1 MB / 1.072 GB, free: 182.5 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3024/0.9931, allocations: 143 MB / 1.212 GB, free: 40.05 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.047/2.04, allocations: 356 MB / 1.559 GB, free: 9.973 MB / 0.9792 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002138/2.04, allocations: 85.5 kB / 1.559 GB, free: 9.926 MB / 0.9792 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 39 * Number of variables: 39 Notification: Performance of Generate backend data structure: time 0.04279/2.083, allocations: 16.84 MB / 1.576 GB, free: 11.9 MB / 0.9948 GB Notification: Performance of prepare preOptimizeDAE: time 4.979e-05/2.083, allocations: 12.92 kB / 1.576 GB, free: 11.89 MB / 0.9948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002141/2.085, allocations: 191.5 kB / 1.576 GB, free: 11.71 MB / 0.9948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003483/2.086, allocations: 212.1 kB / 1.576 GB, free: 11.48 MB / 0.9948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.481e-05/2.086, allocations: 7.906 kB / 1.576 GB, free: 11.47 MB / 0.9948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.69e-05/2.086, allocations: 12 kB / 1.576 GB, free: 11.46 MB / 0.9948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004395/2.086, allocations: 196 kB / 1.576 GB, free: 11.32 MB / 0.9948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004189/2.087, allocations: 240.5 kB / 1.577 GB, free: 11.08 MB / 0.9948 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.291e-05/2.087, allocations: 0 / 1.577 GB, free: 11.08 MB / 0.9948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.328e-05/2.087, allocations: 0 / 1.577 GB, free: 11.08 MB / 0.9948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.659e-05/2.087, allocations: 11.94 kB / 1.577 GB, free: 11.07 MB / 0.9948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002061/2.089, allocations: 1.349 MB / 1.578 GB, free: 9.688 MB / 0.9948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003782/2.089, allocations: 143.5 kB / 1.578 GB, free: 9.574 MB / 0.9948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001138/2.089, allocations: 57.59 kB / 1.578 GB, free: 9.531 MB / 0.9948 GB Notification: Performance of preOpt evalFunc (simulation): time 4.27e-05/2.089, allocations: 7.984 kB / 1.578 GB, free: 9.523 MB / 0.9948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.141e-05/2.089, allocations: 34.06 kB / 1.578 GB, free: 9.484 MB / 0.9948 GB Notification: Performance of pre-optimization done (n=18): time 2.184e-06/2.089, allocations: 0 / 1.578 GB, free: 9.484 MB / 0.9948 GB Notification: Performance of matching and sorting (n=18): time 0.0004159/2.09, allocations: 156.8 kB / 1.578 GB, free: 9.355 MB / 0.9948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.642e-05/2.09, allocations: 55.41 kB / 1.578 GB, free: 9.289 MB / 0.9948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001224/2.09, allocations: 119.3 kB / 1.579 GB, free: 9.172 MB / 0.9948 GB Notification: Performance of collectPreVariables (initialization): time 4.355e-05/2.09, allocations: 29.7 kB / 1.579 GB, free: 9.137 MB / 0.9948 GB Notification: Performance of collectInitialEqns (initialization): time 7.524e-05/2.09, allocations: 127.4 kB / 1.579 GB, free: 9.012 MB / 0.9948 GB Notification: Performance of collectInitialBindings (initialization): time 5.03e-05/2.09, allocations: 60.92 kB / 1.579 GB, free: 8.961 MB / 0.9948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.529e-05/2.09, allocations: 0 / 1.579 GB, free: 8.961 MB / 0.9948 GB Notification: Performance of setup shared object (initialization): time 0.0001812/2.09, allocations: 322.1 kB / 1.579 GB, free: 8.641 MB / 0.9948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.867e-05/2.091, allocations: 45.41 kB / 1.579 GB, free: 8.609 MB / 0.9948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001381/2.091, allocations: 120.3 kB / 1.579 GB, free: 8.48 MB / 0.9948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001236/2.091, allocations: 60.31 kB / 1.579 GB, free: 8.438 MB / 0.9948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.91e-06/2.091, allocations: 4 kB / 1.579 GB, free: 8.434 MB / 0.9948 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003627/2.091, allocations: 192.8 kB / 1.58 GB, free: 8.27 MB / 0.9948 GB Notification: Performance of prepare postOptimizeDAE: time 1.699e-05/2.091, allocations: 8.312 kB / 1.58 GB, free: 8.262 MB / 0.9948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.606e-06/2.091, allocations: 4 kB / 1.58 GB, free: 8.258 MB / 0.9948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.431e-05/2.091, allocations: 7.938 kB / 1.58 GB, free: 8.25 MB / 0.9948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004217/2.092, allocations: 71.58 kB / 1.58 GB, free: 8.184 MB / 0.9948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.457e-06/2.092, allocations: 4 kB / 1.58 GB, free: 8.18 MB / 0.9948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002746/2.092, allocations: 31.67 kB / 1.58 GB, free: 8.148 MB / 0.9948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.298e-05/2.092, allocations: 11.98 kB / 1.58 GB, free: 8.137 MB / 0.9948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (28): * Single equations (assignments): 28 * 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 0.0001319/2.092, allocations: 116.8 kB / 1.58 GB, free: 8.02 MB / 0.9948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.528e-05/2.092, allocations: 11.81 kB / 1.58 GB, free: 8.008 MB / 0.9948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004803/2.093, allocations: 185.9 kB / 1.58 GB, free: 7.859 MB / 0.9948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.253e-06/2.093, allocations: 4 kB / 1.58 GB, free: 7.855 MB / 0.9948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.722e-06/2.093, allocations: 0 / 1.58 GB, free: 7.855 MB / 0.9948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.752e-06/2.093, allocations: 0 / 1.58 GB, free: 7.855 MB / 0.9948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003128/2.093, allocations: 212.4 kB / 1.58 GB, free: 7.633 MB / 0.9948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-06/2.093, allocations: 0 / 1.58 GB, free: 7.633 MB / 0.9948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003564/2.093, allocations: 55.83 kB / 1.58 GB, free: 7.582 MB / 0.9948 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.278e-06/2.093, allocations: 0 / 1.58 GB, free: 7.582 MB / 0.9948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.315e-05/2.093, allocations: 8 kB / 1.58 GB, free: 7.574 MB / 0.9948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.585e-06/2.093, allocations: 0 / 1.58 GB, free: 7.574 MB / 0.9948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.04e-06/2.094, allocations: 3.906 kB / 1.58 GB, free: 7.57 MB / 0.9948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000344/2.094, allocations: 252.9 kB / 1.58 GB, free: 7.336 MB / 0.9948 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.000546/2.094, allocations: 0.6286 MB / 1.581 GB, free: 6.73 MB / 0.9948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001183/2.095, allocations: 106.7 kB / 1.581 GB, free: 6.613 MB / 0.9948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.451e-05/2.095, allocations: 3.984 kB / 1.581 GB, free: 6.609 MB / 0.9948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003105/2.095, allocations: 23.92 kB / 1.581 GB, free: 6.586 MB / 0.9948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.446e-05/2.095, allocations: 11.89 kB / 1.581 GB, free: 6.574 MB / 0.9948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.991e-05/2.095, allocations: 10.62 kB / 1.581 GB, free: 6.566 MB / 0.9948 GB Notification: Performance of sort global known variables: time 7.93e-05/2.095, allocations: 100.2 kB / 1.581 GB, free: 6.477 MB / 0.9948 GB Notification: Performance of remove unused functions: time 0.00103/2.096, allocations: 59.06 kB / 1.581 GB, free: 6.422 MB / 0.9948 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 (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.0003673/2.096, allocations: 139.1 kB / 1.581 GB, free: 6.277 MB / 0.9948 GB Notification: Performance of simCode: created initialization part: time 0.0003036/2.097, allocations: 149.9 kB / 1.582 GB, free: 6.164 MB / 0.9948 GB Notification: Performance of simCode: created event and clocks part: time 5.63e-06/2.097, allocations: 0 / 1.582 GB, free: 6.164 MB / 0.9948 GB Notification: Performance of simCode: created simulation system equations: time 0.0001228/2.097, allocations: 74.98 kB / 1.582 GB, free: 6.109 MB / 0.9948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003876/2.097, allocations: 32.59 kB / 1.582 GB, free: 6.082 MB / 0.9948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008622/2.098, allocations: 206.1 kB / 1.582 GB, free: 5.875 MB / 0.9948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005667/2.099, allocations: 0.7586 MB / 1.583 GB, free: 5.094 MB / 0.9948 GB Notification: Performance of SimCode: time 2.4e-07/2.099, allocations: 0 / 1.583 GB, free: 5.094 MB / 0.9948 GB (rm -f Buildings_latest_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityProperties.pipe ; mkfifo Buildings_latest_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityProperties.pipe ; head -c 1048576 < Buildings_latest_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityProperties.pipe >> ../files/Buildings_latest_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityProperties.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityProperties_res.mat --tempDir=temp_Buildings_latest_Buildings_Media_Specialized_Water_Examples_TemperatureDependentDensityProperties_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Media_Specialized_Water_Examples_TemperatureDependentDensityProperties.fmu > Buildings_latest_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityProperties.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityProperties_res.mat does not exist to compare? outputFormat=mat