Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarAltitude.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.Blinds.Validation.Zhang2012BlindsSolarAltitude,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|bli.solarAltitude|bli.occ|bli.pUp|bli.blindState",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarAltitude") translateModel(Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarAltitude,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|bli.solarAltitude|bli.occ|bli.pUp|bli.blindState",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarAltitude") [: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.216/1.216, allocations: 249.4 MB / 256.7 MB, free: 7.008 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.001011/0.001011, allocations: 181.2 kB / 316 MB, free: 3.562 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.029/1.029, allocations: 205.1 MB / 0.5667 GB, free: 15.64 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.0008255/0.0008255, allocations: 87.61 kB / 0.671 GB, free: 4.773 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 6.192e-06/6.212e-06, allocations: 4 kB / 0.7807 GB, free: 103.1 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1382/0.1382, allocations: 106.3 MB / 0.8846 GB, free: 12.66 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.4095/0.5478, allocations: 134 MB / 1.015 GB, free: 4.73 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001896/0.548, allocations: 80.2 kB / 1.016 GB, free: 4.688 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.007975/0.556, allocations: 2.727 MB / 1.018 GB, free: 2.426 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 5.069e-06/0.556, allocations: 0 / 1.018 GB, free: 2.426 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0004008/0.5564, allocations: 450.9 kB / 1.019 GB, free: 1.938 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 2.886e-05/0.5564, allocations: 12.03 kB / 1.019 GB, free: 1.926 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.35e-05/0.5565, allocations: 7.906 kB / 1.019 GB, free: 1.918 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001118/0.5566, allocations: 178.9 kB / 1.019 GB, free: 1.703 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.396e-05/0.5566, allocations: 4 kB / 1.019 GB, free: 1.699 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.776e-05/0.5566, allocations: 7.938 kB / 1.019 GB, free: 1.691 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.762e-05/0.5567, allocations: 39.67 kB / 1.019 GB, free: 1.668 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001206/0.5569, allocations: 67.91 kB / 1.019 GB, free: 1.605 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.424e-06/0.5569, allocations: 0 / 1.019 GB, free: 1.605 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.177e-05/0.5569, allocations: 0 / 1.019 GB, free: 1.605 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.867e-06/0.5569, allocations: 4 kB / 1.019 GB, free: 1.602 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003863/0.5573, allocations: 288.5 kB / 1.019 GB, free: 1.305 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 8.348e-05/0.5574, allocations: 56.55 kB / 1.019 GB, free: 1.258 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.404e-05/0.5575, allocations: 34.91 kB / 1.019 GB, free: 1.23 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 1.906e-05/0.5575, allocations: 4 kB / 1.019 GB, free: 1.227 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.702e-05/0.5576, allocations: 82.38 kB / 1.019 GB, free: 1.148 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=9): time 1.232e-06/0.5576, allocations: 0 / 1.019 GB, free: 1.148 MB / 0.6355 GB Notification: Performance of matching and sorting (n=9): time 0.0002386/0.5578, allocations: 110.2 kB / 1.019 GB, free: 1.055 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.671e-05/0.5579, allocations: 59.39 kB / 1.02 GB, free: 0.9844 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.294e-05/0.5579, allocations: 111 kB / 1.02 GB, free: 0.8789 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 1.649e-05/0.558, allocations: 29.7 kB / 1.02 GB, free: 0.8438 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 2.995e-05/0.558, allocations: 83.81 kB / 1.02 GB, free: 0.7578 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 2.471e-05/0.558, allocations: 35.16 kB / 1.02 GB, free: 0.7266 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.849e-06/0.558, allocations: 0 / 1.02 GB, free: 0.7266 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 8.498e-05/0.5581, allocations: 318.3 kB / 1.02 GB, free: 420 kB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.263e-05/0.5582, allocations: 14.69 kB / 1.02 GB, free: 412 kB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.617e-05/0.5582, allocations: 63.75 kB / 1.02 GB, free: 336 kB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.529e-05/0.5583, allocations: 30.36 kB / 1.02 GB, free: 312 kB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.542e-06/0.5583, allocations: 0 / 1.02 GB, free: 312 kB / 0.6355 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0001497/0.5584, allocations: 111.4 kB / 1.02 GB, free: 208 kB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 7.995e-06/0.5585, allocations: 4 kB / 1.02 GB, free: 204 kB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.277e-06/0.5585, allocations: 3.984 kB / 1.02 GB, free: 200 kB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.062e-05/0.5585, allocations: 4 kB / 1.02 GB, free: 196 kB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.307e-05/0.5586, allocations: 20.14 kB / 1.02 GB, free: 176 kB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.271e-06/0.5586, allocations: 7.906 kB / 1.02 GB, free: 168 kB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.869e-05/0.5587, allocations: 7.984 kB / 1.02 GB, free: 160 kB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.159e-05/0.5587, allocations: 7.938 kB / 1.02 GB, free: 152 kB / 0.6355 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 13 ($PRE.bli.curSeed,bli.curSeed,$PRE.bli.pDown,bli.pDown,$PRE.bli.pUp,bli.pUp,$PRE.bli.blindState,bli.blindState,$PRE.bli.isOpen,bli.isOpen,bli.occ,$whenCondition1,bli.sampleTrigger) * 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 6.632e-05/0.5588, allocations: 114.8 kB / 1.02 GB, free: 36 kB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.623e-05/0.5588, allocations: 11.91 kB / 1.02 GB, free: 24 kB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.791e-05/0.5588, allocations: 15.91 kB / 1.02 GB, free: 8 kB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.595e-06/0.5588, allocations: 0 / 1.02 GB, free: 8 kB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.557e-06/0.5588, allocations: 4.5 kB / 1.02 GB, free: 4 kB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.038e-06/0.5588, allocations: 3.984 kB / 1.02 GB, free: 0 / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003482/0.5592, allocations: 350 kB / 1.021 GB, free: 15.65 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.264e-06/0.5592, allocations: 4 kB / 1.021 GB, free: 15.64 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.738e-05/0.5593, allocations: 11.98 kB / 1.021 GB, free: 15.63 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.814e-06/0.5593, allocations: 0 / 1.021 GB, free: 15.63 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.226e-05/0.5593, allocations: 4 kB / 1.021 GB, free: 15.63 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.132e-06/0.5593, allocations: 0 / 1.021 GB, free: 15.63 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.737e-06/0.5593, allocations: 3.984 kB / 1.021 GB, free: 15.62 MB / 0.6511 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002022/0.5595, allocations: 203.1 kB / 1.021 GB, free: 15.43 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 3.149e-05/0.5596, allocations: 85 kB / 1.021 GB, free: 15.33 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.006e-05/0.5596, allocations: 7.906 kB / 1.021 GB, free: 15.32 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001069/0.5597, allocations: 8 kB / 1.021 GB, free: 15.32 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.383e-05/0.5597, allocations: 3.984 kB / 1.021 GB, free: 15.31 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.218e-05/0.5598, allocations: 7.984 kB / 1.021 GB, free: 15.3 MB / 0.6511 GB Notification: Performance of sort global known variables: time 4.392e-05/0.5598, allocations: 99.59 kB / 1.021 GB, free: 15.21 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0002716/0.5601, allocations: 55.11 kB / 1.021 GB, free: 15.16 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 (bli.sampleTrigger,$whenCondition1,bli.occ,bli.blindState,bli.pUp,bli.pDown,bli.isOpen,bli.curSeed) * Number of discrete states: 1 (bli.isOpen) * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.0002833/0.5604, allocations: 157.9 kB / 1.021 GB, free: 15.01 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0001353/0.5605, allocations: 72.23 kB / 1.022 GB, free: 14.96 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 1.523e-06/0.5605, allocations: 0 / 1.022 GB, free: 14.96 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 6.244e-05/0.5606, allocations: 37.25 kB / 1.022 GB, free: 14.94 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001851/0.5608, allocations: 15.11 kB / 1.022 GB, free: 14.93 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002787/0.5611, allocations: 116.5 kB / 1.022 GB, free: 14.81 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000232/0.5613, allocations: 0.7114 MB / 1.022 GB, free: 14.07 MB / 0.6511 GB Notification: Performance of SimCode: time 2.3e-07/0.5613, allocations: 0 / 1.022 GB, free: 14.07 MB / 0.6511 GB Notification: Performance of Templates: time 0.003693/0.565, allocations: 1.874 MB / 1.024 GB, free: 12.22 MB / 0.6511 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarAltitude.makefile (rm -f Buildings_maint.7.0.x_Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarAltitude.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarAltitude.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarAltitude.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarAltitude.sim & ./Buildings_maint.7.0.x_Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarAltitude -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarAltitude.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarAltitude_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Occupants_Office_Blinds_Validation_Zhang2012BlindsSolarAltitude.csv","../files/Buildings_maint.7.0.x_Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarAltitude.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,bli.solarAltitude,bli.occ,bli.pUp,bli.blindState Variables in the result:SA.amplitude,SA.freqHz,SA.offset,SA.phase,SA.startTime,SA.y,bli.ADown,bli.AUp,bli.BDown,bli.BUp,bli.blindState,bli.occ,bli.pUp,bli.samplePeriod,bli.seed,bli.solarAltitude,bli.t0,occ.startTime,occ.startValue,time