Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarIntensity.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.Zhang2012BlindsSolarIntensity,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|bli.H|bli.occ|bli.pUp|bli.blindState",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarIntensity") translateModel(Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarIntensity,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|bli.H|bli.occ|bli.pUp|bli.blindState",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarIntensity") [: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.208/1.208, allocations: 249.4 MB / 256.7 MB, free: 7.062 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.001015/0.001015, allocations: 188.5 kB / 316 MB, free: 3.535 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.062/1.062, allocations: 205.1 MB / 0.5667 GB, free: 15.61 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.0008988/0.0008989, allocations: 89.89 kB / 0.671 GB, free: 4.73 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 6.061e-06/6.091e-06, allocations: 0 / 0.7807 GB, free: 103.1 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1436/0.1437, allocations: 106.3 MB / 0.8846 GB, free: 12.64 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.4047/0.5485, allocations: 134 MB / 1.015 GB, free: 4.707 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001973/0.5487, allocations: 86.5 kB / 1.016 GB, free: 4.656 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.008347/0.557, allocations: 2.721 MB / 1.018 GB, free: 2.391 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 6.683e-06/0.5571, allocations: 0 / 1.018 GB, free: 2.391 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.0004787/0.5576, allocations: 446.5 kB / 1.019 GB, free: 1.906 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 3.474e-05/0.5576, allocations: 12.03 kB / 1.019 GB, free: 1.895 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.133e-05/0.5576, allocations: 9.094 kB / 1.019 GB, free: 1.887 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001154/0.5578, allocations: 178.9 kB / 1.019 GB, free: 1.672 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.62e-05/0.5578, allocations: 4 kB / 1.019 GB, free: 1.668 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.189e-05/0.5578, allocations: 15.73 kB / 1.019 GB, free: 1.656 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.004e-05/0.5579, allocations: 29.38 kB / 1.019 GB, free: 1.637 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001553/0.5581, allocations: 70.16 kB / 1.019 GB, free: 1.574 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.038e-05/0.5581, allocations: 3.984 kB / 1.019 GB, free: 1.57 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.68e-05/0.5581, allocations: 5.016 kB / 1.019 GB, free: 1.566 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.985e-06/0.5581, allocations: 0 / 1.019 GB, free: 1.566 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004461/0.5586, allocations: 290.5 kB / 1.019 GB, free: 1.27 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001054/0.5587, allocations: 55.59 kB / 1.019 GB, free: 1.219 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.772e-05/0.5588, allocations: 35.05 kB / 1.019 GB, free: 1.195 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 2.263e-05/0.5588, allocations: 0 / 1.019 GB, free: 1.195 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001105/0.5589, allocations: 84.25 kB / 1.019 GB, free: 1.113 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=9): time 1.273e-06/0.5589, allocations: 3.938 kB / 1.019 GB, free: 1.109 MB / 0.6355 GB Notification: Performance of matching and sorting (n=9): time 0.0002764/0.5592, allocations: 106.8 kB / 1.019 GB, free: 1.02 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.365e-05/0.5592, allocations: 55.39 kB / 1.02 GB, free: 0.9531 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.242e-05/0.5593, allocations: 117.5 kB / 1.02 GB, free: 0.8438 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 1.643e-05/0.5594, allocations: 25.7 kB / 1.02 GB, free: 0.8125 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 4.179e-05/0.5594, allocations: 84.53 kB / 1.02 GB, free: 0.7227 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 2.935e-05/0.5594, allocations: 34.69 kB / 1.02 GB, free: 0.6953 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.059e-06/0.5595, allocations: 4 kB / 1.02 GB, free: 0.6914 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 9.695e-05/0.5596, allocations: 314.4 kB / 1.02 GB, free: 388 kB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.795e-05/0.5596, allocations: 19.06 kB / 1.02 GB, free: 376 kB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.179e-05/0.5597, allocations: 64.75 kB / 1.02 GB, free: 296 kB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.769e-05/0.5597, allocations: 26.67 kB / 1.02 GB, free: 276 kB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.5597, allocations: 0 / 1.02 GB, free: 276 kB / 0.6355 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0001536/0.5599, allocations: 104.9 kB / 1.02 GB, free: 180 kB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.047e-05/0.5599, allocations: 4 kB / 1.02 GB, free: 176 kB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.488e-06/0.5599, allocations: 4 kB / 1.02 GB, free: 172 kB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.514e-05/0.5599, allocations: 4 kB / 1.02 GB, free: 168 kB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.943e-05/0.56, allocations: 20.14 kB / 1.02 GB, free: 148 kB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.157e-06/0.5601, allocations: 11.83 kB / 1.02 GB, free: 136 kB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.116e-05/0.5601, allocations: 11.98 kB / 1.02 GB, free: 124 kB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.535e-05/0.5602, allocations: 7.5 kB / 1.02 GB, free: 120 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 7.629e-05/0.5602, allocations: 108.9 kB / 1.02 GB, free: 4 kB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.721e-05/0.5603, allocations: 7.953 kB / 1.02 GB, free: 15.99 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.3e-05/0.5603, allocations: 15.72 kB / 1.02 GB, free: 15.98 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.896e-06/0.5603, allocations: 4 kB / 1.02 GB, free: 15.97 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.898e-06/0.5603, allocations: 3.938 kB / 1.02 GB, free: 15.97 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.286e-06/0.5603, allocations: 3.938 kB / 1.02 GB, free: 15.97 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003643/0.5607, allocations: 352.1 kB / 1.021 GB, free: 15.62 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.844e-06/0.5607, allocations: 0.875 kB / 1.021 GB, free: 15.62 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.618e-05/0.5608, allocations: 7.984 kB / 1.021 GB, free: 15.61 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.496e-06/0.5608, allocations: 192 / 1.021 GB, free: 15.61 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.187e-05/0.5608, allocations: 11.94 kB / 1.021 GB, free: 15.6 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.102e-06/0.5608, allocations: 3.938 kB / 1.021 GB, free: 15.59 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.934e-06/0.5608, allocations: 0 / 1.021 GB, free: 15.59 MB / 0.6511 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002312/0.561, allocations: 196.6 kB / 1.021 GB, free: 15.41 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 3.393e-05/0.5611, allocations: 85.02 kB / 1.021 GB, free: 15.3 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.027e-05/0.5611, allocations: 11.45 kB / 1.021 GB, free: 15.3 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001079/0.5612, allocations: 8 kB / 1.021 GB, free: 15.29 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.532e-05/0.5613, allocations: 12.02 kB / 1.021 GB, free: 15.28 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.349e-05/0.5613, allocations: 7.984 kB / 1.021 GB, free: 15.27 MB / 0.6511 GB Notification: Performance of sort global known variables: time 4.826e-05/0.5614, allocations: 97.83 kB / 1.021 GB, free: 15.18 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0002818/0.5616, allocations: 47.94 kB / 1.021 GB, free: 15.14 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.0003502/0.562, allocations: 173.6 kB / 1.021 GB, free: 14.97 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.000161/0.5622, allocations: 61.06 kB / 1.022 GB, free: 14.93 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 2.103e-06/0.5622, allocations: 7.5 kB / 1.022 GB, free: 14.93 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 6.804e-05/0.5623, allocations: 38.23 kB / 1.022 GB, free: 14.9 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002039/0.5625, allocations: 11.75 kB / 1.022 GB, free: 14.89 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003489/0.5628, allocations: 120.8 kB / 1.022 GB, free: 14.77 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002629/0.5631, allocations: 0.7113 MB / 1.022 GB, free: 14.03 MB / 0.6511 GB Notification: Performance of SimCode: time 2.5e-07/0.5631, allocations: 0 / 1.022 GB, free: 14.03 MB / 0.6511 GB Notification: Performance of Templates: time 0.003912/0.567, allocations: 1.884 MB / 1.024 GB, free: 12.19 MB / 0.6511 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarIntensity.makefile (rm -f Buildings_maint.7.0.x_Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarIntensity.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarIntensity.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarIntensity.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarIntensity.sim & ./Buildings_maint.7.0.x_Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarIntensity -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarIntensity.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarIntensity_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Occupants_Office_Blinds_Validation_Zhang2012BlindsSolarIntensity.csv","../files/Buildings_maint.7.0.x_Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarIntensity.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,bli.H,bli.occ,bli.pUp,bli.blindState Variables in the result:H.amplitude,H.freqHz,H.offset,H.phase,H.startTime,H.y,bli.ADown,bli.AUp,bli.BDown,bli.BUp,bli.H,bli.blindState,bli.occ,bli.pUp,bli.samplePeriod,bli.seed,bli.t0,occ.startTime,occ.startValue,time