Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Air.Systems.SingleZone.VAV.BaseClasses.Validation.ControllerHeatingFan.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Air.Systems.SingleZone.VAV.BaseClasses.Validation.ControllerHeatingFan,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|conHeaFan.yHea|conHeaFan.yFan|conHeaFan.TSetRooCoo|conHeaFan.TRoo|conHeaFan.TSetRooHea",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Air.Systems.SingleZone.VAV.BaseClasses.Validation.ControllerHeatingFan") translateModel(Buildings.Air.Systems.SingleZone.VAV.BaseClasses.Validation.ControllerHeatingFan,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|conHeaFan.yHea|conHeaFan.yFan|conHeaFan.TSetRooCoo|conHeaFan.TRoo|conHeaFan.TSetRooHea",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Air.Systems.SingleZone.VAV.BaseClasses.Validation.ControllerHeatingFan") [: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 7.0.3-maint.7.0.x/package.mo): time 1.5/1.5, allocations: 249.4 MB / 256.7 MB, free: 7.047 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001142/0.001142, allocations: 188.6 kB / 316 MB, free: 3.578 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.554/1.554, allocations: 205.2 MB / 0.5667 GB, free: 15.71 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001118/0.001117, allocations: 93.5 kB / 0.671 GB, free: 4.844 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 6.603e-06/6.633e-06, allocations: 0 / 0.7807 GB, free: 103.1 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2325/0.2326, allocations: 106.3 MB / 0.8846 GB, free: 12.68 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.658/0.8906, allocations: 137.3 MB / 1.019 GB, free: 1.449 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003369/0.891, allocations: 89.56 kB / 1.019 GB, free: 1.398 MB / 0.6355 GB Notification: Performance of FrontEnd: time 0.01738/0.9084, allocations: 5.86 MB / 1.024 GB, free: 12.6 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 3.536e-05/0.9085, allocations: 8 kB / 1.024 GB, free: 12.59 MB / 0.6511 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 48 * Number of variables: 48 Notification: Performance of Generate backend data structure: time 0.00113/0.9096, allocations: 0.5807 MB / 1.025 GB, free: 11.99 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 5.743e-05/0.9097, allocations: 8.031 kB / 1.025 GB, free: 11.98 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001082/0.9098, allocations: 43.44 kB / 1.025 GB, free: 11.94 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006483/0.9105, allocations: 354.6 kB / 1.025 GB, free: 11.6 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.189e-05/0.9105, allocations: 11.91 kB / 1.025 GB, free: 11.59 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.096e-05/0.9106, allocations: 8 kB / 1.025 GB, free: 11.58 MB / 0.6511 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003302/0.9109, allocations: 143.7 kB / 1.026 GB, free: 11.5 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004306/0.9113, allocations: 236 kB / 1.026 GB, free: 11.3 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.389e-05/0.9114, allocations: 6.734 kB / 1.026 GB, free: 11.3 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.011e-05/0.9114, allocations: 0 / 1.026 GB, free: 11.3 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.023e-05/0.9114, allocations: 4 kB / 1.026 GB, free: 11.3 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001478/0.9129, allocations: 0.9394 MB / 1.027 GB, free: 10.49 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005595/0.9135, allocations: 175 kB / 1.027 GB, free: 10.37 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001489/0.9136, allocations: 80.53 kB / 1.027 GB, free: 10.32 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 5.046e-05/0.9137, allocations: 4 kB / 1.027 GB, free: 10.32 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.15e-05/0.9137, allocations: 38.47 kB / 1.027 GB, free: 10.27 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=15): time 2.394e-06/0.9138, allocations: 0 / 1.027 GB, free: 10.27 MB / 0.6511 GB Notification: Performance of matching and sorting (n=15): time 0.0004751/0.9142, allocations: 179.6 kB / 1.027 GB, free: 10.14 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001173/0.9144, allocations: 154.2 kB / 1.027 GB, free: 9.949 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003462/0.9147, allocations: 262.2 kB / 1.028 GB, free: 9.73 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 3.291e-05/0.9148, allocations: 25.7 kB / 1.028 GB, free: 9.699 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001185/0.9149, allocations: 152 kB / 1.028 GB, free: 9.562 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 5.733e-05/0.9149, allocations: 49.73 kB / 1.028 GB, free: 9.52 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.044e-05/0.915, allocations: 0 / 1.028 GB, free: 9.52 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001732/0.9151, allocations: 348.8 kB / 1.028 GB, free: 9.184 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.21e-05/0.9152, allocations: 43.94 kB / 1.028 GB, free: 9.16 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001446/0.9154, allocations: 101.2 kB / 1.028 GB, free: 9.078 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.818e-05/0.9155, allocations: 46.73 kB / 1.028 GB, free: 9.055 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.9155, allocations: 0.8438 kB / 1.028 GB, free: 9.055 MB / 0.6511 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002931/0.9158, allocations: 171.9 kB / 1.028 GB, free: 8.922 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.977e-05/0.9158, allocations: 8 kB / 1.029 GB, free: 8.914 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.076e-05/0.9159, allocations: 4 kB / 1.029 GB, free: 8.91 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.788e-05/0.9159, allocations: 3.938 kB / 1.029 GB, free: 8.906 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002537/0.9161, allocations: 55.89 kB / 1.029 GB, free: 8.852 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.24e-06/0.9162, allocations: 0 / 1.029 GB, free: 8.852 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002259/0.9164, allocations: 35.89 kB / 1.029 GB, free: 8.816 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.279e-05/0.9164, allocations: 11.11 kB / 1.029 GB, free: 8.809 MB / 0.6511 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 (15): * Single equations (assignments): 15 * 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.0001203/0.9166, allocations: 104.9 kB / 1.029 GB, free: 8.699 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.748e-05/0.9166, allocations: 35.53 kB / 1.029 GB, free: 8.664 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.999e-05/0.9167, allocations: 31.86 kB / 1.029 GB, free: 8.645 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.306e-06/0.9167, allocations: 4 kB / 1.029 GB, free: 8.641 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.614e-06/0.9167, allocations: 0 / 1.029 GB, free: 8.641 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.92e-06/0.9168, allocations: 0 / 1.029 GB, free: 8.641 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004092/0.9172, allocations: 340 kB / 1.029 GB, free: 8.344 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.356e-06/0.9172, allocations: 7.984 kB / 1.029 GB, free: 8.336 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002286/0.9174, allocations: 47.91 kB / 1.029 GB, free: 8.289 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.384e-06/0.9174, allocations: 0 / 1.029 GB, free: 8.289 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.713e-05/0.9175, allocations: 0 / 1.029 GB, free: 8.289 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.242e-06/0.9175, allocations: 11.98 kB / 1.029 GB, free: 8.277 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.825e-06/0.9175, allocations: 0 / 1.029 GB, free: 8.277 MB / 0.6511 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003213/0.9178, allocations: 276.2 kB / 1.029 GB, free: 8.039 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000185/0.918, allocations: 126.5 kB / 1.03 GB, free: 7.91 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.006e-05/0.9181, allocations: 0 / 1.03 GB, free: 7.91 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002527/0.9183, allocations: 35.97 kB / 1.03 GB, free: 7.875 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.553e-05/0.9184, allocations: 11.86 kB / 1.03 GB, free: 7.867 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.444e-05/0.9184, allocations: 7.984 kB / 1.03 GB, free: 7.859 MB / 0.6511 GB Notification: Performance of sort global known variables: time 0.0001952/0.9186, allocations: 210.9 kB / 1.03 GB, free: 7.699 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0002924/0.9189, allocations: 55.75 kB / 1.03 GB, free: 7.645 MB / 0.6511 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): 15 * 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.0001321/0.919, allocations: 103.2 kB / 1.03 GB, free: 7.535 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0002847/0.9193, allocations: 129.5 kB / 1.03 GB, free: 7.461 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 3.827e-06/0.9193, allocations: 4 kB / 1.03 GB, free: 7.457 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0001157/0.9195, allocations: 68.86 kB / 1.03 GB, free: 7.414 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005175/0.92, allocations: 76.91 kB / 1.03 GB, free: 7.352 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008089/0.9208, allocations: 343.4 kB / 1.031 GB, free: 7.035 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004922/0.9213, allocations: 0.8045 MB / 1.031 GB, free: 6.203 MB / 0.6511 GB Notification: Performance of SimCode: time 3.11e-07/0.9213, allocations: 7.938 kB / 1.031 GB, free: 6.195 MB / 0.6511 GB Notification: Performance of Templates: time 0.007243/0.9286, allocations: 3.38 MB / 1.035 GB, free: 2.91 MB / 0.6511 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Air.Systems.SingleZone.VAV.BaseClasses.Validation.ControllerHeatingFan.makefile (rm -f Buildings_maint.7.0.x_Buildings.Air.Systems.SingleZone.VAV.BaseClasses.Validation.ControllerHeatingFan.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Air.Systems.SingleZone.VAV.BaseClasses.Validation.ControllerHeatingFan.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Air.Systems.SingleZone.VAV.BaseClasses.Validation.ControllerHeatingFan.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Air.Systems.SingleZone.VAV.BaseClasses.Validation.ControllerHeatingFan.sim & ./Buildings_maint.7.0.x_Buildings.Air.Systems.SingleZone.VAV.BaseClasses.Validation.ControllerHeatingFan -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Air.Systems.SingleZone.VAV.BaseClasses.Validation.ControllerHeatingFan.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Air.Systems.SingleZone.VAV.BaseClasses.Validation.ControllerHeatingFan_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Air_Systems_SingleZone_VAV_BaseClasses_Validation_ControllerHeatingFan.csv","../files/Buildings_maint.7.0.x_Buildings.Air.Systems.SingleZone.VAV.BaseClasses.Validation.ControllerHeatingFan.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,conHeaFan.yHea,conHeaFan.yFan,conHeaFan.TSetRooCoo,conHeaFan.TRoo,conHeaFan.TSetRooHea Variables in the result:conHeaFan.TRoo,conHeaFan.TSetRooCoo,conHeaFan.TSetRooHea,conHeaFan.conFan.Dzero.k,conHeaFan.conFan.Izero.k,conHeaFan.conFan.Nd,conHeaFan.conFan.Ni,conHeaFan.conFan.P.k,conHeaFan.conFan.Td,conHeaFan.conFan.Ti,conHeaFan.conFan.addP.k1,conHeaFan.conFan.addP.k2,conHeaFan.conFan.addPID.k1,conHeaFan.conFan.addPID.k2,conHeaFan.conFan.addPID.k3,conHeaFan.conFan.controllerType,conHeaFan.conFan.gainPID.k,conHeaFan.conFan.initType,conHeaFan.conFan.k,conHeaFan.conFan.limiter.limitsAtInit,conHeaFan.conFan.limiter.strict,conHeaFan.conFan.limiter.uMax,conHeaFan.conFan.limiter.uMin,conHeaFan.conFan.reset,conHeaFan.conFan.revAct,conHeaFan.conFan.reverseAction,conHeaFan.conFan.strict,conHeaFan.conFan.wd,conHeaFan.conFan.with_D,conHeaFan.conFan.with_I,conHeaFan.conFan.wp,conHeaFan.conFan.xd_start,conHeaFan.conFan.xi_start,conHeaFan.conFan.yMax,conHeaFan.conFan.yMin,conHeaFan.conFan.y_reset,conHeaFan.conFan.y_start,conHeaFan.conHeaCoi.Dzero.k,conHeaFan.conHeaCoi.Izero.k,conHeaFan.conHeaCoi.Nd,conHeaFan.conHeaCoi.Ni,conHeaFan.conHeaCoi.P.k,conHeaFan.conHeaCoi.Td,conHeaFan.conHeaCoi.Ti,conHeaFan.conHeaCoi.addP.k1,conHeaFan.conHeaCoi.addP.k2,conHeaFan.conHeaCoi.addPID.k1,conHeaFan.conHeaCoi.addPID.k2,conHeaFan.conHeaCoi.addPID.k3,conHeaFan.conHeaCoi.controllerType,conHeaFan.conHeaCoi.gainPID.k,conHeaFan.conHeaCoi.initType,conHeaFan.conHeaCoi.k,conHeaFan.conHeaCoi.limiter.limitsAtInit,conHeaFan.conHeaCoi.limiter.strict,conHeaFan.conHeaCoi.limiter.uMax,conHeaFan.conHeaCoi.limiter.uMin,conHeaFan.conHeaCoi.reset,conHeaFan.conHeaCoi.revAct,conHeaFan.conHeaCoi.reverseAction,conHeaFan.conHeaCoi.strict,conHeaFan.conHeaCoi.wd,conHeaFan.conHeaCoi.with_D,conHeaFan.conHeaCoi.with_I,conHeaFan.conHeaCoi.wp,conHeaFan.conHeaCoi.xd_start,conHeaFan.conHeaCoi.xi_start,conHeaFan.conHeaCoi.yMax,conHeaFan.conHeaCoi.yMin,conHeaFan.conHeaCoi.y_reset,conHeaFan.conHeaCoi.y_start,conHeaFan.kFan,conHeaFan.kHea,conHeaFan.minAirFlo,conHeaFan.yFan,conHeaFan.yHea,time,zonCooSet.amplitude,zonCooSet.freqHz,zonCooSet.offset,zonCooSet.phase,zonCooSet.startTime,zonHeaSet.amplitude,zonHeaSet.freqHz,zonHeaSet.offset,zonHeaSet.phase,zonHeaSet.startTime,zonTem.amplitude,zonTem.freqHz,zonTem.offset,zonTem.phase,zonTem.startTime