Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Psychrometrics.Functions.Examples.X_pSatpphi.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.Utilities.Psychrometrics.Functions.Examples.X_pSatpphi,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|phi|X_w",fileNamePrefix="Buildings_latest_Buildings.Utilities.Psychrometrics.Functions.Examples.X_pSatpphi") translateModel(Buildings.Utilities.Psychrometrics.Functions.Examples.X_pSatpphi,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|phi|X_w",fileNamePrefix="Buildings_latest_Buildings.Utilities.Psychrometrics.Functions.Examples.X_pSatpphi") [: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 1.834/1.834, allocations: 390.4 MB / 397.7 MB, free: 10.71 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001031/0.001031, allocations: 177.5 kB / 490.8 MB, free: 11.25 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.341/1.341, allocations: 221.4 MB / 0.7863 GB, free: 13.62 MB / 0.5886 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009325/0.0009324, allocations: 89.22 kB / 0.9264 GB, free: 4.598 MB / 0.6667 GB Notification: Performance of FrontEnd - loaded program: time 1.351e-05/1.369e-05, allocations: 7.938 kB / 1.072 GB, free: 15.61 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6744/0.6744, allocations: 143 MB / 1.212 GB, free: 156 MB / 0.8855 GB Notification: Performance of FrontEnd - scodeFlatten: time 2.942/3.617, allocations: 1.713 GB / 2.925 GB, free: 368.4 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002521/3.617, allocations: 83.95 kB / 2.925 GB, free: 368.4 MB / 1.151 GB Notification: Performance of FrontEnd: time 0.04692/3.664, allocations: 26.12 MB / 2.95 GB, free: 342.3 MB / 1.151 GB Notification: Performance of Transformations before backend: time 7.394e-06/3.664, allocations: 0 / 2.95 GB, free: 342.3 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: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0002209/3.664, allocations: 346.4 kB / 2.95 GB, free: 341.9 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 3.843e-05/3.664, allocations: 12.03 kB / 2.95 GB, free: 341.9 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004555/3.665, allocations: 39.94 kB / 2.951 GB, free: 341.9 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.723e-05/3.665, allocations: 174.6 kB / 2.951 GB, free: 341.7 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.5e-05/3.665, allocations: 0 / 2.951 GB, free: 341.7 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.475e-05/3.665, allocations: 0 / 2.951 GB, free: 341.7 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.322e-05/3.665, allocations: 12 kB / 2.951 GB, free: 341.6 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.184e-05/3.665, allocations: 37.67 kB / 2.951 GB, free: 341.6 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.566e-06/3.665, allocations: 0 / 2.951 GB, free: 341.6 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.106e-05/3.665, allocations: 0 / 2.951 GB, free: 341.6 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.849e-06/3.665, allocations: 0 / 2.951 GB, free: 341.6 MB / 1.151 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002977/3.665, allocations: 237.4 kB / 2.951 GB, free: 341.3 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 4.344e-05/3.665, allocations: 22.58 kB / 2.951 GB, free: 341.3 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.912e-05/3.665, allocations: 12.86 kB / 2.951 GB, free: 341.3 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 8.236e-06/3.665, allocations: 3.984 kB / 2.951 GB, free: 341.3 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.589e-05/3.665, allocations: 32.47 kB / 2.951 GB, free: 341.2 MB / 1.151 GB Notification: Performance of pre-optimization done (n=2): time 9.62e-07/3.665, allocations: 0 / 2.951 GB, free: 341.2 MB / 1.151 GB Notification: Performance of matching and sorting (n=2): time 0.0001212/3.666, allocations: 45.61 kB / 2.951 GB, free: 341.2 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.941e-05/3.666, allocations: 51.41 kB / 2.951 GB, free: 341.1 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.001e-05/3.666, allocations: 101 kB / 2.951 GB, free: 341 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 7.013e-06/3.666, allocations: 25.7 kB / 2.951 GB, free: 341 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 2.548e-05/3.666, allocations: 84.08 kB / 2.951 GB, free: 340.9 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 6.432e-06/3.666, allocations: 3.906 kB / 2.951 GB, free: 340.9 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.471e-06/3.666, allocations: 3.938 kB / 2.951 GB, free: 340.9 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 4.133e-05/3.666, allocations: 318.8 kB / 2.952 GB, free: 340.6 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.845e-05/3.666, allocations: 12.03 kB / 2.952 GB, free: 340.6 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.538e-05/3.666, allocations: 3.984 kB / 2.952 GB, free: 340.6 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.773e-05/3.666, allocations: 7.938 kB / 2.952 GB, free: 340.6 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.393e-06/3.666, allocations: 0 / 2.952 GB, free: 340.6 MB / 1.151 GB Notification: Performance of matching and sorting (n=3) (initialization): time 9.267e-05/3.666, allocations: 57.58 kB / 2.952 GB, free: 340.5 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.052e-05/3.666, allocations: 4 kB / 2.952 GB, free: 340.5 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.668e-06/3.666, allocations: 0 / 2.952 GB, free: 340.5 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.166e-05/3.666, allocations: 336 / 2.952 GB, free: 340.5 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001109/3.666, allocations: 11.98 kB / 2.952 GB, free: 340.5 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.747e-06/3.666, allocations: 0 / 2.952 GB, free: 340.5 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001456/3.666, allocations: 11.98 kB / 2.952 GB, free: 340.5 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.868e-06/3.666, allocations: 0 / 2.952 GB, free: 340.5 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 (3): * Single equations (assignments): 3 * 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 4.459e-05/3.666, allocations: 111.8 kB / 2.952 GB, free: 340.3 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.569e-05/3.666, allocations: 0 / 2.952 GB, free: 340.3 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.058e-05/3.666, allocations: 7.297 kB / 2.952 GB, free: 340.3 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.162e-06/3.666, allocations: 0 / 2.952 GB, free: 340.3 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.897e-06/3.666, allocations: 0 / 2.952 GB, free: 340.3 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.457e-06/3.666, allocations: 7.188 kB / 2.952 GB, free: 340.3 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.343e-05/3.667, allocations: 138.1 kB / 2.952 GB, free: 340.2 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.02e-07/3.667, allocations: 0 / 2.952 GB, free: 340.2 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.484e-05/3.667, allocations: 9.562 kB / 2.952 GB, free: 340.2 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.292e-06/3.667, allocations: 0 / 2.952 GB, free: 340.2 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.921e-06/3.667, allocations: 3.984 kB / 2.952 GB, free: 340.2 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.713e-06/3.667, allocations: 4 kB / 2.952 GB, free: 340.2 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.804e-06/3.667, allocations: 0 / 2.952 GB, free: 340.2 MB / 1.151 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 6.277e-05/3.667, allocations: 131.5 kB / 2.952 GB, free: 340 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 3.631e-05/3.667, allocations: 85.12 kB / 2.952 GB, free: 339.9 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.945e-05/3.667, allocations: 0 / 2.952 GB, free: 339.9 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001055/3.667, allocations: 4 kB / 2.952 GB, free: 339.9 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.233e-05/3.667, allocations: 3.906 kB / 2.952 GB, free: 339.9 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.833e-06/3.667, allocations: 0 / 2.952 GB, free: 339.9 MB / 1.151 GB Notification: Performance of sort global known variables: time 2.812e-05/3.667, allocations: 91.27 kB / 2.952 GB, free: 339.8 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.00028/3.667, allocations: 39.98 kB / 2.952 GB, free: 339.8 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 (2): * Single equations (assignments): 2 * 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.0006088/3.668, allocations: 0.6677 MB / 2.953 GB, free: 339.1 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 9.336e-05/3.668, allocations: 19.92 kB / 2.953 GB, free: 339.1 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/3.668, allocations: 0 / 2.953 GB, free: 339.1 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 8.105e-06/3.668, allocations: 4 kB / 2.953 GB, free: 339.1 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002018/3.668, allocations: 5.875 kB / 2.953 GB, free: 339.1 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002147/3.668, allocations: 71.95 kB / 2.953 GB, free: 339 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001492/3.669, allocations: 0.6919 MB / 2.954 GB, free: 338.3 MB / 1.151 GB Notification: Performance of SimCode: time 5.51e-07/3.669, allocations: 0 / 2.954 GB, free: 338.3 MB / 1.151 GB Notification: Performance of Templates: time 0.007076/3.676, allocations: 4.09 MB / 2.958 GB, free: 334.2 MB / 1.151 GB make -j1 -f Buildings_latest_Buildings.Utilities.Psychrometrics.Functions.Examples.X_pSatpphi.makefile (rm -f Buildings_latest_Buildings.Utilities.Psychrometrics.Functions.Examples.X_pSatpphi.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Psychrometrics.Functions.Examples.X_pSatpphi.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Psychrometrics.Functions.Examples.X_pSatpphi.pipe >> ../files/Buildings_latest_Buildings.Utilities.Psychrometrics.Functions.Examples.X_pSatpphi.sim & ./Buildings_latest_Buildings.Utilities.Psychrometrics.Functions.Examples.X_pSatpphi -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Psychrometrics.Functions.Examples.X_pSatpphi.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Psychrometrics.Functions.Examples.X_pSatpphi_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Psychrometrics_Functions_Examples_X_pSatpphi.csv","../files/Buildings_latest_Buildings.Utilities.Psychrometrics.Functions.Examples.X_pSatpphi.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches