Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Media.Examples.WaterProperties.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: translateModel(Buildings.Media.Examples.WaterProperties,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|p|X.1.|d|eta|h|u|s|g|f|hIse|beta|kappa|ddpT|ddTp|dddX.1.|cp|cv|lambda|pMed|TMed|MM",fileNamePrefix="Buildings_latest_Buildings.Media.Examples.WaterProperties") translateModel(Buildings.Media.Examples.WaterProperties,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|p|X.1.|d|eta|h|u|s|g|f|hIse|beta|kappa|ddpT|ddTp|dddX.1.|cp|cv|lambda|pMed|TMed|MM",fileNamePrefix="Buildings_latest_Buildings.Media.Examples.WaterProperties") [: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.023/2.023, allocations: 390.4 MB / 397.7 MB, free: 5.098 MB / 318.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001087/0.001087, allocations: 189.1 kB / 490.8 MB, free: 4.699 MB / 382.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.364/1.364, allocations: 221.4 MB / 0.7863 GB, free: 15.96 MB / 0.5762 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000936/0.000936, allocations: 85.53 kB / 0.9264 GB, free: 64.47 MB / 0.67 GB Notification: Performance of FrontEnd - loaded program: time 9.327e-06/9.428e-06, allocations: 4 kB / 1.072 GB, free: 15.86 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3483/0.3483, allocations: 143 MB / 1.212 GB, free: 0.7344 MB / 0.8575 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9506/1.299, allocations: 392.4 MB / 1.595 GB, free: 14.24 MB / 1.076 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002488/1.299, allocations: 71.95 kB / 1.595 GB, free: 14.17 MB / 1.076 GB Notification: Performance of FrontEnd: time 0.04901/1.348, allocations: 19.83 MB / 1.614 GB, free: 10.5 MB / 1.092 GB Notification: Performance of Transformations before backend: time 1.319e-05/1.348, allocations: 8 kB / 1.614 GB, free: 10.49 MB / 1.092 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.0009696/1.349, allocations: 474.3 kB / 1.615 GB, free: 9.98 MB / 1.092 GB Notification: Performance of prepare preOptimizeDAE: time 4.599e-05/1.349, allocations: 8.031 kB / 1.615 GB, free: 9.973 MB / 1.092 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000209/1.35, allocations: 23.8 kB / 1.615 GB, free: 9.949 MB / 1.092 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002939/1.35, allocations: 206.9 kB / 1.615 GB, free: 9.707 MB / 1.092 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.93e-05/1.35, allocations: 7.906 kB / 1.615 GB, free: 9.699 MB / 1.092 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.747e-05/1.35, allocations: 17.34 kB / 1.615 GB, free: 9.684 MB / 1.092 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005162/1.351, allocations: 408.2 kB / 1.615 GB, free: 9.285 MB / 1.092 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003258/1.351, allocations: 220.4 kB / 1.616 GB, free: 9.051 MB / 1.092 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.198e-05/1.351, allocations: 0 / 1.616 GB, free: 9.051 MB / 1.092 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.484e-05/1.351, allocations: 0 / 1.616 GB, free: 9.051 MB / 1.092 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.684e-05/1.351, allocations: 15.73 kB / 1.616 GB, free: 9.039 MB / 1.092 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00124/1.352, allocations: 0.9453 MB / 1.616 GB, free: 8.016 MB / 1.092 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002986/1.353, allocations: 147.5 kB / 1.617 GB, free: 7.863 MB / 1.092 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.408e-05/1.353, allocations: 52.89 kB / 1.617 GB, free: 7.809 MB / 1.092 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001631/1.354, allocations: 1.925 MB / 1.619 GB, free: 5.531 MB / 1.092 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.321e-05/1.354, allocations: 34.56 kB / 1.619 GB, free: 5.488 MB / 1.092 GB Notification: Performance of pre-optimization done (n=15): time 1.733e-06/1.354, allocations: 0 / 1.619 GB, free: 5.488 MB / 1.092 GB Notification: Performance of matching and sorting (n=15): time 0.0005789/1.355, allocations: 136.9 kB / 1.619 GB, free: 5.352 MB / 1.092 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.38e-05/1.355, allocations: 55.41 kB / 1.619 GB, free: 5.285 MB / 1.092 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001379/1.355, allocations: 140.8 kB / 1.619 GB, free: 5.137 MB / 1.092 GB Notification: Performance of collectPreVariables (initialization): time 2.801e-05/1.355, allocations: 25.7 kB / 1.619 GB, free: 5.105 MB / 1.092 GB Notification: Performance of collectInitialEqns (initialization): time 8.707e-05/1.355, allocations: 147.7 kB / 1.619 GB, free: 4.957 MB / 1.092 GB Notification: Performance of collectInitialBindings (initialization): time 3.742e-05/1.355, allocations: 47.3 kB / 1.619 GB, free: 4.91 MB / 1.092 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.915e-06/1.355, allocations: 0 / 1.619 GB, free: 4.91 MB / 1.092 GB Notification: Performance of setup shared object (initialization): time 0.0001252/1.355, allocations: 326.7 kB / 1.619 GB, free: 4.582 MB / 1.092 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.05e-05/1.355, allocations: 24 kB / 1.619 GB, free: 4.559 MB / 1.092 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001138/1.356, allocations: 134.4 kB / 1.62 GB, free: 4.379 MB / 1.092 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003554/1.356, allocations: 83.8 kB / 1.62 GB, free: 4.297 MB / 1.092 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.021e-06/1.356, allocations: 4 kB / 1.62 GB, free: 4.293 MB / 1.092 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005266/1.357, allocations: 201.2 kB / 1.62 GB, free: 4.09 MB / 1.092 GB Notification: Performance of prepare postOptimizeDAE: time 1.707e-05/1.357, allocations: 7.938 kB / 1.62 GB, free: 4.082 MB / 1.092 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.094e-05/1.357, allocations: 4 kB / 1.62 GB, free: 4.078 MB / 1.092 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.469e-05/1.357, allocations: 11.89 kB / 1.62 GB, free: 4.066 MB / 1.092 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001955/1.357, allocations: 59.92 kB / 1.62 GB, free: 4.008 MB / 1.092 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.432e-05/1.357, allocations: 8.453 kB / 1.62 GB, free: 4 MB / 1.092 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001354/1.357, allocations: 27.69 kB / 1.62 GB, free: 3.973 MB / 1.092 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.11e-05/1.357, allocations: 12 kB / 1.62 GB, free: 3.961 MB / 1.092 GB 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 (30): * Single equations (assignments): 29 * Array equations: 1 * 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 9.434e-05/1.357, allocations: 104.9 kB / 1.62 GB, free: 3.852 MB / 1.092 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.03e-05/1.357, allocations: 15.81 kB / 1.62 GB, free: 3.836 MB / 1.092 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005664/1.358, allocations: 188.3 kB / 1.62 GB, free: 3.664 MB / 1.092 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.819e-06/1.358, allocations: 0 / 1.62 GB, free: 3.664 MB / 1.092 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.26e-06/1.358, allocations: 0 / 1.62 GB, free: 3.664 MB / 1.092 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.29e-06/1.358, allocations: 4 kB / 1.62 GB, free: 3.66 MB / 1.092 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002311/1.358, allocations: 190.1 kB / 1.62 GB, free: 3.438 MB / 1.092 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.675e-06/1.358, allocations: 0 / 1.62 GB, free: 3.438 MB / 1.092 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001228/1.358, allocations: 31.98 kB / 1.62 GB, free: 3.406 MB / 1.092 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.507e-06/1.358, allocations: 0 / 1.62 GB, free: 3.406 MB / 1.092 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.15e-05/1.358, allocations: 0 / 1.62 GB, free: 3.406 MB / 1.092 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.013e-06/1.358, allocations: 0 / 1.62 GB, free: 3.406 MB / 1.092 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.242e-06/1.358, allocations: 7.906 kB / 1.62 GB, free: 3.398 MB / 1.092 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004679/1.359, allocations: 238 kB / 1.621 GB, free: 3.156 MB / 1.092 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001097/1.359, allocations: 124.8 kB / 1.621 GB, free: 3.016 MB / 1.092 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.7e-05/1.359, allocations: 0 / 1.621 GB, free: 3.016 MB / 1.092 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002257/1.359, allocations: 15.98 kB / 1.621 GB, free: 3 MB / 1.092 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.589e-05/1.359, allocations: 11.98 kB / 1.621 GB, free: 2.988 MB / 1.092 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.568e-05/1.359, allocations: 19.39 kB / 1.621 GB, free: 2.973 MB / 1.092 GB Notification: Performance of sort global known variables: time 6.86e-05/1.359, allocations: 108.1 kB / 1.621 GB, free: 2.867 MB / 1.092 GB Notification: Performance of remove unused functions: time 0.0004602/1.36, allocations: 79.92 kB / 1.621 GB, free: 2.789 MB / 1.092 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 (15): * Single equations (assignments): 14 * Array equations: 1 * 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.0003421/1.36, allocations: 190.9 kB / 1.621 GB, free: 2.598 MB / 1.092 GB Notification: Performance of simCode: created initialization part: time 0.0002547/1.36, allocations: 103.8 kB / 1.621 GB, free: 2.496 MB / 1.092 GB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/1.36, allocations: 0 / 1.621 GB, free: 2.496 MB / 1.092 GB Notification: Performance of simCode: created simulation system equations: time 8.058e-05/1.36, allocations: 43.92 kB / 1.621 GB, free: 2.453 MB / 1.092 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003206/1.361, allocations: 35.52 kB / 1.621 GB, free: 2.422 MB / 1.092 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005378/1.361, allocations: 160.6 kB / 1.622 GB, free: 2.246 MB / 1.092 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004271/1.362, allocations: 0.7434 MB / 1.622 GB, free: 1.473 MB / 1.092 GB Notification: Performance of SimCode: time 2.4e-07/1.362, allocations: 8 kB / 1.622 GB, free: 1.465 MB / 1.092 GB Notification: Performance of Templates: time 0.00738/1.369, allocations: 3.309 MB / 1.626 GB, free: 14.23 MB / 1.107 GB make -j1 -f Buildings_latest_Buildings.Media.Examples.WaterProperties.makefile (rm -f Buildings_latest_Buildings.Media.Examples.WaterProperties.pipe ; mkfifo Buildings_latest_Buildings.Media.Examples.WaterProperties.pipe ; head -c 1048576 < Buildings_latest_Buildings.Media.Examples.WaterProperties.pipe >> ../files/Buildings_latest_Buildings.Media.Examples.WaterProperties.sim & ./Buildings_latest_Buildings.Media.Examples.WaterProperties -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Media.Examples.WaterProperties.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Media.Examples.WaterProperties_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Media_Examples_WaterProperties.csv","../files/Buildings_latest_Buildings.Media.Examples.WaterProperties.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches