Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.HeatPumps.Compressors.BaseClasses.Validation.TemperatureProtection.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.Fluid.HeatPumps.Compressors.BaseClasses.Validation.TemperatureProtection,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|temPro.TEva|temPro.TEvaMin|temPro.errLowPre|temPro.TCon|temPro.TConMax|temPro.errHigPre|temPro.errNegTemDif",fileNamePrefix="Buildings_latest_Buildings.Fluid.HeatPumps.Compressors.BaseClasses.Validation.TemperatureProtection") translateModel(Buildings.Fluid.HeatPumps.Compressors.BaseClasses.Validation.TemperatureProtection,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|temPro.TEva|temPro.TEvaMin|temPro.errLowPre|temPro.TCon|temPro.TConMax|temPro.errHigPre|temPro.errNegTemDif",fileNamePrefix="Buildings_latest_Buildings.Fluid.HeatPumps.Compressors.BaseClasses.Validation.TemperatureProtection") [: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.99/1.99, allocations: 390.4 MB / 397.7 MB, free: 11.28 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.001095/0.001095, allocations: 177.3 kB / 490.8 MB, free: 1.977 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.391/1.391, allocations: 221.4 MB / 0.7863 GB, free: 13.71 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.0009687/0.0009688, allocations: 93.84 kB / 0.9264 GB, free: 14.25 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 8.346e-06/8.386e-06, allocations: 4 kB / 1.072 GB, free: 182.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2328/0.2328, allocations: 143 MB / 1.212 GB, free: 40.16 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6762/0.9091, allocations: 152.2 MB / 1.36 GB, free: 17.17 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003271/0.9095, allocations: 89.91 kB / 1.36 GB, free: 17.17 MB / 0.823 GB Notification: Performance of FrontEnd: time 0.009028/0.9185, allocations: 3.032 MB / 1.363 GB, free: 16.94 MB / 0.823 GB Notification: Performance of Transformations before backend: time 1.809e-05/0.9186, allocations: 8.469 kB / 1.363 GB, free: 16.94 MB / 0.823 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 42 * Number of variables: 42 Notification: Performance of Generate backend data structure: time 0.0006894/0.9193, allocations: 487 kB / 1.364 GB, free: 32.54 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.958e-05/0.9193, allocations: 8.5 kB / 1.364 GB, free: 32.54 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.258e-05/0.9194, allocations: 27.55 kB / 1.364 GB, free: 32.53 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002431/0.9196, allocations: 232.4 kB / 1.364 GB, free: 32.31 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.699e-05/0.9197, allocations: 9.344 kB / 1.364 GB, free: 32.31 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.981e-05/0.9197, allocations: 11.25 kB / 1.364 GB, free: 32.31 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002363/0.9199, allocations: 106.2 kB / 1.364 GB, free: 32.31 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002804/0.9202, allocations: 180.9 kB / 1.364 GB, free: 32.24 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.407e-06/0.9202, allocations: 0 / 1.364 GB, free: 32.24 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.994e-05/0.9203, allocations: 1.438 kB / 1.364 GB, free: 32.24 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.747e-06/0.9203, allocations: 7.688 kB / 1.364 GB, free: 32.24 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008167/0.9211, allocations: 0.5584 MB / 1.365 GB, free: 31.96 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003146/0.9214, allocations: 110.9 kB / 1.365 GB, free: 31.93 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.821e-05/0.9215, allocations: 39.86 kB / 1.365 GB, free: 31.92 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 3.911e-05/0.9216, allocations: 8.438 kB / 1.365 GB, free: 31.92 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.214e-05/0.9216, allocations: 33.19 kB / 1.365 GB, free: 31.88 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=10): time 1.252e-06/0.9216, allocations: 0 / 1.365 GB, free: 31.88 MB / 0.8386 GB Notification: Performance of matching and sorting (n=10): time 0.0002696/0.9219, allocations: 109.3 kB / 1.365 GB, free: 31.84 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.702e-05/0.9219, allocations: 131.4 kB / 1.365 GB, free: 31.68 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001412/0.9221, allocations: 161.6 kB / 1.365 GB, free: 31.59 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.29e-05/0.9221, allocations: 34.92 kB / 1.365 GB, free: 31.55 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 6.902e-05/0.9222, allocations: 131.8 kB / 1.366 GB, free: 31.45 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 3.051e-05/0.9222, allocations: 28.55 kB / 1.366 GB, free: 31.43 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.975e-06/0.9222, allocations: 0 / 1.366 GB, free: 31.43 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.000137/0.9224, allocations: 328.3 kB / 1.366 GB, free: 31.12 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.866e-05/0.9224, allocations: 36.25 kB / 1.366 GB, free: 31.12 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.041e-05/0.9225, allocations: 67.62 kB / 1.366 GB, free: 31.08 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.422e-05/0.9226, allocations: 36.67 kB / 1.366 GB, free: 31.07 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.9226, allocations: 3.938 kB / 1.366 GB, free: 31.07 MB / 0.8386 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001972/0.9228, allocations: 124.3 kB / 1.366 GB, free: 31.03 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.222e-05/0.9228, allocations: 4 kB / 1.366 GB, free: 31.03 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.37e-06/0.9228, allocations: 2.016 kB / 1.366 GB, free: 31.03 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.166e-05/0.9229, allocations: 0 / 1.366 GB, free: 31.03 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001169/0.923, allocations: 20.45 kB / 1.366 GB, free: 31.03 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.448e-06/0.923, allocations: 2.625 kB / 1.366 GB, free: 31.03 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001594/0.9232, allocations: 39.39 kB / 1.366 GB, free: 31.02 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.092e-05/0.9232, allocations: 6.891 kB / 1.366 GB, free: 31.02 MB / 0.8386 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 7 ($PRE.temPro.hysHig.y,temPro.hysHig.y,$PRE.temPro.hysLow.y,temPro.hysLow.y,temPro.on.y,$PRE.temPro.hysdTConEva.y,temPro.hysdTConEva.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 13 * 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 8.439e-05/0.9233, allocations: 116 kB / 1.366 GB, free: 30.9 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.276e-05/0.9233, allocations: 19.84 kB / 1.366 GB, free: 30.89 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002509/0.9236, allocations: 123.2 kB / 1.367 GB, free: 30.85 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.755e-06/0.9236, allocations: 5.344 kB / 1.367 GB, free: 30.85 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.088e-06/0.9236, allocations: 0 / 1.367 GB, free: 30.85 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.547e-06/0.9236, allocations: 1.344 kB / 1.367 GB, free: 30.85 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002105/0.9238, allocations: 228.6 kB / 1.367 GB, free: 30.69 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.322e-06/0.9238, allocations: 4 kB / 1.367 GB, free: 30.69 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001055/0.9239, allocations: 16.2 kB / 1.367 GB, free: 30.69 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.026e-06/0.924, allocations: 2.531 kB / 1.367 GB, free: 30.69 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.435e-05/0.924, allocations: 6.859 kB / 1.367 GB, free: 30.68 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.463e-06/0.924, allocations: 0 / 1.367 GB, free: 30.68 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.284e-06/0.924, allocations: 0 / 1.367 GB, free: 30.68 MB / 0.8386 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002169/0.9242, allocations: 214.5 kB / 1.367 GB, free: 30.54 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 3.702e-05/0.9243, allocations: 90.75 kB / 1.367 GB, free: 30.43 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.523e-05/0.9243, allocations: 5.281 kB / 1.367 GB, free: 30.43 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001912/0.9245, allocations: 36.86 kB / 1.367 GB, free: 30.43 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.443e-05/0.9246, allocations: 22.83 kB / 1.367 GB, free: 30.43 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.264e-05/0.9246, allocations: 7.672 kB / 1.367 GB, free: 30.43 MB / 0.8386 GB Notification: Performance of sort global known variables: time 0.0001059/0.9247, allocations: 128.5 kB / 1.367 GB, free: 30.35 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002628/0.925, allocations: 37.53 kB / 1.367 GB, free: 30.34 MB / 0.8386 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 4 (temPro.hysHig.y,temPro.hysLow.y,temPro.on.y,temPro.hysdTConEva.y) * Number of discrete states: 3 (temPro.hysdTConEva.y,temPro.hysLow.y,temPro.hysHig.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 10 * 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.0001538/0.9251, allocations: 107.7 kB / 1.367 GB, free: 30.25 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0002106/0.9254, allocations: 92.48 kB / 1.367 GB, free: 30.24 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.953e-06/0.9254, allocations: 0 / 1.367 GB, free: 30.24 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 8.202e-05/0.9254, allocations: 48.03 kB / 1.368 GB, free: 30.24 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002246/0.9257, allocations: 11.16 kB / 1.368 GB, free: 30.23 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005051/0.9262, allocations: 200.4 kB / 1.368 GB, free: 30.12 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003839/0.9266, allocations: 0.7558 MB / 1.368 GB, free: 29.42 MB / 0.8386 GB Notification: Performance of SimCode: time 2.11e-07/0.9266, allocations: 1.094 kB / 1.368 GB, free: 29.42 MB / 0.8386 GB Notification: Performance of Templates: time 0.004948/0.9315, allocations: 1.852 MB / 1.37 GB, free: 29.32 MB / 0.8386 GB make -j1 -f Buildings_latest_Buildings.Fluid.HeatPumps.Compressors.BaseClasses.Validation.TemperatureProtection.makefile (rm -f Buildings_latest_Buildings.Fluid.HeatPumps.Compressors.BaseClasses.Validation.TemperatureProtection.pipe ; mkfifo Buildings_latest_Buildings.Fluid.HeatPumps.Compressors.BaseClasses.Validation.TemperatureProtection.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.HeatPumps.Compressors.BaseClasses.Validation.TemperatureProtection.pipe >> ../files/Buildings_latest_Buildings.Fluid.HeatPumps.Compressors.BaseClasses.Validation.TemperatureProtection.sim & ./Buildings_latest_Buildings.Fluid.HeatPumps.Compressors.BaseClasses.Validation.TemperatureProtection -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.HeatPumps.Compressors.BaseClasses.Validation.TemperatureProtection.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.HeatPumps.Compressors.BaseClasses.Validation.TemperatureProtection_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_HeatPumps_Compressors_BaseClasses_Validation_TemperatureProtection.csv","../files/Buildings_latest_Buildings.Fluid.HeatPumps.Compressors.BaseClasses.Validation.TemperatureProtection.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches