Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.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.Occupants.Office.Lighting.Validation.Hunt1979Light,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|lig.ill|lig.occ|lig.pArriv|lig.on",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light") translateModel(Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|lig.ill|lig.occ|lig.pArriv|lig.on",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light") [: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.209/1.209, allocations: 249.4 MB / 256.7 MB, free: 6.898 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.0009579/0.0009579, allocations: 185.3 kB / 316 MB, free: 3.5 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.08/1.08, allocations: 205.2 MB / 0.5667 GB, free: 15.57 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.0008206/0.0008206, allocations: 75.41 kB / 0.671 GB, free: 4.711 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 7.083e-06/7.103e-06, allocations: 4 kB / 0.7807 GB, free: 103.1 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1438/0.1438, allocations: 106.3 MB / 0.8846 GB, free: 12.61 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.4257/0.5696, allocations: 134.1 MB / 1.016 GB, free: 4.766 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002158/0.5699, allocations: 81.25 kB / 1.016 GB, free: 4.719 MB / 0.6355 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/Occupants/BaseClasses/binaryVariableGeneration.mo:11:3-11:96:writable] Warning: localSeed was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. Notification: Performance of FrontEnd: time 0.00851/0.5784, allocations: 2.818 MB / 1.018 GB, free: 2.375 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 6.082e-06/0.5784, allocations: 3.938 kB / 1.018 GB, free: 2.371 MB / 0.6355 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0005383/0.5789, allocations: 472 kB / 1.019 GB, free: 1.863 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 3.225e-05/0.579, allocations: 8.031 kB / 1.019 GB, free: 1.855 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.151e-05/0.579, allocations: 7.906 kB / 1.019 GB, free: 1.848 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001309/0.5792, allocations: 178.9 kB / 1.019 GB, free: 1.633 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.809e-05/0.5792, allocations: 29.7 kB / 1.019 GB, free: 1.598 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.613e-05/0.5793, allocations: 8 kB / 1.019 GB, free: 1.59 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.23e-05/0.5794, allocations: 34.11 kB / 1.019 GB, free: 1.566 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001043/0.5795, allocations: 63.84 kB / 1.019 GB, free: 1.508 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.203e-06/0.5795, allocations: 0 / 1.019 GB, free: 1.508 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.191e-05/0.5795, allocations: 0 / 1.019 GB, free: 1.508 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.007e-06/0.5795, allocations: 7.984 kB / 1.019 GB, free: 1.5 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00046/0.58, allocations: 296.3 kB / 1.019 GB, free: 1.195 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 9.835e-05/0.5801, allocations: 60.09 kB / 1.02 GB, free: 1.141 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.584e-05/0.5801, allocations: 27.48 kB / 1.02 GB, free: 1.121 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 1.947e-05/0.5802, allocations: 0 / 1.02 GB, free: 1.121 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001028/0.5803, allocations: 86.16 kB / 1.02 GB, free: 1.035 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=10): time 1.112e-06/0.5803, allocations: 0 / 1.02 GB, free: 1.035 MB / 0.6355 GB Notification: Performance of matching and sorting (n=10): time 0.0002247/0.5805, allocations: 94.83 kB / 1.02 GB, free: 0.9531 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.907e-05/0.5806, allocations: 55.41 kB / 1.02 GB, free: 0.8867 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.811e-05/0.5806, allocations: 118.9 kB / 1.02 GB, free: 0.7734 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 2.326e-05/0.5807, allocations: 25.7 kB / 1.02 GB, free: 0.7422 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 3.591e-05/0.5807, allocations: 95.2 kB / 1.02 GB, free: 0.6445 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 2.064e-05/0.5807, allocations: 15.12 kB / 1.02 GB, free: 0.6328 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.482e-06/0.5807, allocations: 4 kB / 1.02 GB, free: 0.6289 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 9.265e-05/0.5808, allocations: 329.7 kB / 1.02 GB, free: 312 kB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.612e-05/0.5809, allocations: 13.84 kB / 1.02 GB, free: 304 kB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.597e-05/0.581, allocations: 66.7 kB / 1.02 GB, free: 228 kB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.057e-05/0.581, allocations: 26.67 kB / 1.02 GB, free: 208 kB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.926e-06/0.581, allocations: 4 kB / 1.02 GB, free: 204 kB / 0.6355 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001538/0.5812, allocations: 95.14 kB / 1.021 GB, free: 116 kB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.204e-05/0.5812, allocations: 8 kB / 1.021 GB, free: 108 kB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.402e-06/0.5812, allocations: 7.922 kB / 1.021 GB, free: 100 kB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.639e-05/0.5813, allocations: 4 kB / 1.021 GB, free: 96 kB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001225/0.5814, allocations: 19.92 kB / 1.021 GB, free: 76 kB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.16e-06/0.5814, allocations: 4.125 kB / 1.021 GB, free: 72 kB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001297/0.5815, allocations: 23.83 kB / 1.021 GB, free: 48 kB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.748e-05/0.5816, allocations: 8.875 kB / 1.021 GB, free: 44 kB / 0.6355 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 11 ($PRE.lig.curSeed,lig.curSeed,$PRE.lig.on,lig.on,$whenCondition3,$whenCondition2,lig.sampleTrigger,$whenCondition1,lig.occ,$PRE.occ.pulseStart,occ.pulseStart) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (14): * Single equations (assignments): 14 * 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.895e-05/0.5817, allocations: 112 kB / 1.021 GB, free: 15.93 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.686e-05/0.5817, allocations: 7.906 kB / 1.021 GB, free: 15.92 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.282e-05/0.5817, allocations: 19.8 kB / 1.021 GB, free: 15.91 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.463e-06/0.5817, allocations: 0 / 1.021 GB, free: 15.91 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.347e-06/0.5817, allocations: 0 / 1.021 GB, free: 15.91 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.759e-06/0.5817, allocations: 3.906 kB / 1.021 GB, free: 15.9 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004346/0.5822, allocations: 370.7 kB / 1.021 GB, free: 15.53 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.5822, allocations: 0 / 1.021 GB, free: 15.53 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.005e-05/0.5823, allocations: 11.98 kB / 1.021 GB, free: 15.52 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.983e-06/0.5823, allocations: 0 / 1.021 GB, free: 15.52 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.762e-05/0.5823, allocations: 8 kB / 1.021 GB, free: 15.51 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.132e-06/0.5823, allocations: 0 / 1.021 GB, free: 15.51 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.342e-06/0.5823, allocations: 0 / 1.021 GB, free: 15.51 MB / 0.6511 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001894/0.5825, allocations: 199.5 kB / 1.021 GB, free: 15.32 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 3.577e-05/0.5826, allocations: 84.92 kB / 1.021 GB, free: 15.21 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.646e-05/0.5826, allocations: 4 kB / 1.021 GB, free: 15.21 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001397/0.5827, allocations: 11.98 kB / 1.021 GB, free: 15.2 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.377e-05/0.5828, allocations: 12.16 kB / 1.021 GB, free: 15.19 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.164e-05/0.5828, allocations: 4.094 kB / 1.021 GB, free: 15.18 MB / 0.6511 GB Notification: Performance of sort global known variables: time 5.311e-05/0.5829, allocations: 102.1 kB / 1.021 GB, free: 15.09 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0002719/0.5831, allocations: 58.94 kB / 1.022 GB, free: 15.04 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: 8 (lig.occ,lig.sampleTrigger,$whenCondition3,$whenCondition2,$whenCondition1,lig.on,lig.curSeed,occ.pulseStart) * Number of discrete states: 1 (lig.on) * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0003147/0.5835, allocations: 158.2 kB / 1.022 GB, free: 14.88 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0001354/0.5836, allocations: 67.23 kB / 1.022 GB, free: 14.83 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 1.242e-06/0.5836, allocations: 4.188 kB / 1.022 GB, free: 14.83 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 6.367e-05/0.5837, allocations: 47.23 kB / 1.022 GB, free: 14.79 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001964/0.5839, allocations: 5.312 kB / 1.022 GB, free: 14.79 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003116/0.5842, allocations: 131.4 kB / 1.022 GB, free: 14.66 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002617/0.5845, allocations: 0.7108 MB / 1.023 GB, free: 13.92 MB / 0.6511 GB Notification: Performance of SimCode: time 2.31e-07/0.5845, allocations: 0 / 1.023 GB, free: 13.92 MB / 0.6511 GB Notification: Performance of Templates: time 0.004031/0.5885, allocations: 1.974 MB / 1.025 GB, free: 11.96 MB / 0.6511 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.makefile (rm -f Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.sim & ./Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Occupants_Office_Lighting_Validation_Hunt1979Light.csv","../files/Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,lig.ill,lig.occ,lig.pArriv,lig.on Variables in the result:ill.amplitude,ill.freqHz,ill.offset,ill.phase,ill.startTime,ill.y,lig.AArriv,lig.BArriv,lig.CArriv,lig.MArriv,lig.ill,lig.occ,lig.on,lig.pArriv,lig.samplePeriod,lig.seed,lig.t0,occ.Twidth,occ.period,occ.startTime,occ.width,time