Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Airflow.Multizone.Validation.OpenDoorPressure.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.Airflow.Multizone.Validation.OpenDoorPressure,tolerance=1e-06,outputFormat="mat",numberOfIntervals=96,variableFilter="time|doo.vAB|doo.vBA|dooDis.vAB|dooDis.vBA|bouA.T|bouB.T|doo.port_a1.p|doo.port_a2.p",fileNamePrefix="Buildings_latest_Buildings.Airflow.Multizone.Validation.OpenDoorPressure") translateModel(Buildings.Airflow.Multizone.Validation.OpenDoorPressure,tolerance=1e-06,outputFormat="mat",numberOfIntervals=96,variableFilter="time|doo.vAB|doo.vBA|dooDis.vAB|dooDis.vBA|bouA.T|bouB.T|doo.port_a1.p|doo.port_a2.p",fileNamePrefix="Buildings_latest_Buildings.Airflow.Multizone.Validation.OpenDoorPressure") [: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.754/1.754, allocations: 390.4 MB / 397.7 MB, free: 11.27 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.0009193/0.0009195, allocations: 193.2 kB / 490.8 MB, free: 1.957 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.086/1.086, allocations: 221.3 MB / 0.7863 GB, free: 13.66 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.0007803/0.0007802, allocations: 89.69 kB / 0.9264 GB, free: 14.19 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 4.939e-06/4.959e-06, allocations: 0 / 1.072 GB, free: 182.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1702/0.1702, allocations: 143 MB / 1.212 GB, free: 40.11 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 2.835/3.005, allocations: 1.923 GB / 3.135 GB, free: 414.6 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001919/3.005, allocations: 83.95 kB / 3.135 GB, free: 414.5 MB / 1.151 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Media/package.mo:3938:5-3939:59:writable] Error: Variable reference_p: Internal error - Types.typeOfValue failed: fail() [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Media/package.mo:3940:5-3941:64:writable] Error: Variable reference_T: Internal error - Types.typeOfValue failed: fail() [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Media/package.mo:3944:5-3945:66:writable] Error: Variable p_default: Internal error - Types.typeOfValue failed: fail() [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Media/package.mo:3946:5-3947:69:writable] Error: Variable T_default: Internal error - Types.typeOfValue failed: fail() Notification: Performance of FrontEnd: time 1.119/4.124, allocations: 461.3 MB / 3.585 GB, free: 293.1 MB / 1.151 GB Notification: Performance of Transformations before backend: time 4.837e-05/4.125, allocations: 22.72 kB / 3.585 GB, free: 293.1 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: 230 * Number of variables: 230 Notification: Performance of Generate backend data structure: time 0.003661/4.128, allocations: 1.52 MB / 3.587 GB, free: 292.5 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 3.239e-05/4.128, allocations: 8.031 kB / 3.587 GB, free: 292.5 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006565/4.129, allocations: 159.6 kB / 3.587 GB, free: 292.5 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001036/4.13, allocations: 0.6527 MB / 3.587 GB, free: 292.2 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.583e-05/4.13, allocations: 27.95 kB / 3.588 GB, free: 292.2 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001085/4.13, allocations: 53.03 kB / 3.588 GB, free: 292.2 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001628/4.132, allocations: 1.316 MB / 3.589 GB, free: 292.2 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001296/4.133, allocations: 1.06 MB / 3.59 GB, free: 292.2 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.455e-05/4.133, allocations: 3.75 kB / 3.59 GB, free: 292.2 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.435e-05/4.133, allocations: 0 / 3.59 GB, free: 292.2 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.835e-05/4.133, allocations: 53.75 kB / 3.59 GB, free: 292.2 MB / 1.151 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003827/4.137, allocations: 3.237 MB / 3.593 GB, free: 291.1 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001284/4.138, allocations: 1.334 MB / 3.594 GB, free: 291 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007096/4.139, allocations: 0.7151 MB / 3.595 GB, free: 291 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001033/4.14, allocations: 1.547 MB / 3.597 GB, free: 289.3 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007735/4.141, allocations: 0.7048 MB / 3.597 GB, free: 289.2 MB / 1.151 GB Notification: Performance of pre-optimization done (n=127): time 2.144e-06/4.141, allocations: 0 / 3.597 GB, free: 289.2 MB / 1.151 GB Notification: Performance of matching and sorting (n=127): time 0.002498/4.143, allocations: 1.431 MB / 3.599 GB, free: 289.1 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.13e-05/4.143, allocations: 89.61 kB / 3.599 GB, free: 289 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004844/4.144, allocations: 0.4941 MB / 3.599 GB, free: 288.9 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 6.485e-05/4.144, allocations: 28.33 kB / 3.599 GB, free: 288.9 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001676/4.144, allocations: 284.4 kB / 3.6 GB, free: 288.7 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.000257/4.144, allocations: 416 kB / 3.6 GB, free: 288.5 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.458e-05/4.144, allocations: 3.438 kB / 3.6 GB, free: 288.5 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 0.0001038/4.145, allocations: 393.6 kB / 3.6 GB, free: 288.2 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006189/4.145, allocations: 0.5174 MB / 3.601 GB, free: 288.2 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007342/4.146, allocations: 0.6656 MB / 3.601 GB, free: 288.1 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00144/4.147, allocations: 0.7587 MB / 3.602 GB, free: 288.1 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.168e-06/4.147, allocations: 3.688 kB / 3.602 GB, free: 288.1 MB / 1.151 GB Notification: Performance of matching and sorting (n=142) (initialization): time 0.002276/4.15, allocations: 1.512 MB / 3.604 GB, free: 288 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.17e-05/4.15, allocations: 3.406 kB / 3.604 GB, free: 288 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.375e-06/4.15, allocations: 7.906 kB / 3.604 GB, free: 288 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.829e-05/4.15, allocations: 18.44 kB / 3.604 GB, free: 288 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008574/4.151, allocations: 227.5 kB / 3.604 GB, free: 288 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.1e-05/4.151, allocations: 11.45 kB / 3.604 GB, free: 288 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006418/4.151, allocations: 91.02 kB / 3.604 GB, free: 287.9 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.549e-05/4.151, allocations: 52.48 kB / 3.604 GB, free: 287.9 MB / 1.151 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,bouPre.a,bouPre.b,bouPre.last,$PRE.bouPre.nextEvent,bouPre.nextEvent,bouPre.nextEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (137): * Single equations (assignments): 136 * Array equations: 0 * Algorithm blocks: 1 * 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.0001731/4.152, allocations: 153 kB / 3.604 GB, free: 287.8 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001132/4.152, allocations: 98.72 kB / 3.604 GB, free: 287.8 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002658/4.154, allocations: 1.655 MB / 3.606 GB, free: 287.7 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.506e-06/4.154, allocations: 11.78 kB / 3.606 GB, free: 287.7 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.5e-06/4.154, allocations: 0 / 3.606 GB, free: 287.7 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.013e-05/4.154, allocations: 7.688 kB / 3.606 GB, free: 287.7 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004792/4.159, allocations: 3.613 MB / 3.61 GB, free: 286.9 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.184e-06/4.159, allocations: 3.5 kB / 3.61 GB, free: 286.9 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008001/4.16, allocations: 215.7 kB / 3.61 GB, free: 286.9 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.171e-05/4.16, allocations: 11.84 kB / 3.61 GB, free: 286.9 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.751e-05/4.16, allocations: 25.36 kB / 3.61 GB, free: 286.9 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.336e-06/4.16, allocations: 10.78 kB / 3.61 GB, free: 286.9 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.672e-06/4.16, allocations: 15.16 kB / 3.61 GB, free: 286.9 MB / 1.151 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003143/4.163, allocations: 2.995 MB / 3.613 GB, free: 286 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004893/4.164, allocations: 334 kB / 3.613 GB, free: 285.9 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001616/4.164, allocations: 13.78 kB / 3.613 GB, free: 285.9 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006624/4.165, allocations: 45.23 kB / 3.613 GB, free: 285.9 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001323/4.165, allocations: 85.88 kB / 3.613 GB, free: 285.8 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.161e-05/4.165, allocations: 54.5 kB / 3.613 GB, free: 285.8 MB / 1.151 GB Notification: Performance of sort global known variables: time 0.0003327/4.165, allocations: 401.1 kB / 3.614 GB, free: 285.8 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.001047/4.166, allocations: 458.5 kB / 3.614 GB, free: 285.7 MB / 1.151 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 30 * Number of states: 2 (dooDis.mExcAB,dooDis.mExcBA) * Number of discrete variables: 6 ($whenCondition1,bouPre.a,bouPre.b,bouPre.last,bouPre.nextEvent,bouPre.nextEventScaled) * Number of discrete states: 6 (bouPre.nextEvent,bouPre.last,bouPre.nextEventScaled,bouPre.b,bouPre.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (126): * Single equations (assignments): 125 * Array equations: 0 * Algorithm blocks: 1 * 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.001623/4.168, allocations: 1.802 MB / 3.616 GB, free: 285.3 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.001357/4.169, allocations: 1.27 MB / 3.617 GB, free: 285.2 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/4.169, allocations: 0 / 3.617 GB, free: 285.2 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.0006611/4.17, allocations: 0.7134 MB / 3.618 GB, free: 285.2 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001003/4.171, allocations: 222.7 kB / 3.618 GB, free: 285.2 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002452/4.173, allocations: 1.902 MB / 3.62 GB, free: 284.6 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007725/4.174, allocations: 1.236 MB / 3.621 GB, free: 283.9 MB / 1.151 GB Notification: Performance of SimCode: time 2.4e-07/4.174, allocations: 0 / 3.621 GB, free: 283.9 MB / 1.151 GB Notification: Performance of Templates: time 0.02906/4.203, allocations: 23.96 MB / 3.644 GB, free: 283.5 MB / 1.151 GB make -j1 -f Buildings_latest_Buildings.Airflow.Multizone.Validation.OpenDoorPressure.makefile (rm -f Buildings_latest_Buildings.Airflow.Multizone.Validation.OpenDoorPressure.pipe ; mkfifo Buildings_latest_Buildings.Airflow.Multizone.Validation.OpenDoorPressure.pipe ; head -c 1048576 < Buildings_latest_Buildings.Airflow.Multizone.Validation.OpenDoorPressure.pipe >> ../files/Buildings_latest_Buildings.Airflow.Multizone.Validation.OpenDoorPressure.sim & ./Buildings_latest_Buildings.Airflow.Multizone.Validation.OpenDoorPressure -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Airflow.Multizone.Validation.OpenDoorPressure.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Airflow.Multizone.Validation.OpenDoorPressure_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Airflow_Multizone_Validation_OpenDoorPressure.csv","../files/Buildings_latest_Buildings.Airflow.Multizone.Validation.OpenDoorPressure.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches