Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarAltitude.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.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_9_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_9_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 9.1.1-maint.9.1.x/package.mo): time 1.945/1.945, allocations: 387.2 MB / 394.5 MB, free: 13.64 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.001041/0.001041, allocations: 185.3 kB / 487 MB, free: 5.328 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.264/1.264, allocations: 221.3 MB / 0.7819 GB, free: 1.367 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008947/0.0008948, allocations: 84.69 kB / 0.9213 GB, free: 2.621 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 5.891e-06/5.911e-06, allocations: 0 / 1.066 GB, free: 168.2 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.269/0.269, allocations: 142.3 MB / 1.205 GB, free: 26.18 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.621/0.89, allocations: 150.5 MB / 1.352 GB, free: 16.15 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002969/0.8904, allocations: 85.39 kB / 1.352 GB, free: 16.14 MB / 0.8073 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.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.009178/0.8996, allocations: 2.773 MB / 1.355 GB, free: 15.99 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 7.394e-06/0.8996, allocations: 0.8125 kB / 1.355 GB, free: 15.99 MB / 0.8073 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.0004195/0.9, allocations: 442.9 kB / 1.355 GB, free: 15.56 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 3.647e-05/0.9001, allocations: 9.844 kB / 1.355 GB, free: 15.56 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.221e-05/0.9001, allocations: 8.125 kB / 1.355 GB, free: 15.55 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.014e-05/0.9002, allocations: 181.3 kB / 1.356 GB, free: 15.34 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.714e-05/0.9003, allocations: 2.797 kB / 1.356 GB, free: 15.34 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.403e-05/0.9003, allocations: 5.375 kB / 1.356 GB, free: 15.34 MB / 0.8073 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.401e-05/0.9004, allocations: 29 kB / 1.356 GB, free: 15.34 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001366/0.9005, allocations: 78.64 kB / 1.356 GB, free: 15.31 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.875e-06/0.9005, allocations: 0 / 1.356 GB, free: 15.31 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.543e-05/0.9006, allocations: 5.391 kB / 1.356 GB, free: 15.3 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.47e-06/0.9006, allocations: 1.531 kB / 1.356 GB, free: 15.3 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004114/0.901, allocations: 292.8 kB / 1.356 GB, free: 15.06 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001009/0.9011, allocations: 55.47 kB / 1.356 GB, free: 15.04 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.037e-05/0.9012, allocations: 33.16 kB / 1.356 GB, free: 15.03 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 1.756e-05/0.9012, allocations: 1 kB / 1.356 GB, free: 15.03 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001127/0.9013, allocations: 88.84 kB / 1.356 GB, free: 14.98 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=9): time 1.272e-06/0.9013, allocations: 3.938 kB / 1.356 GB, free: 14.97 MB / 0.8073 GB Notification: Performance of matching and sorting (n=9): time 0.0002614/0.9016, allocations: 99.3 kB / 1.356 GB, free: 14.94 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.304e-05/0.9016, allocations: 55.98 kB / 1.356 GB, free: 14.88 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.046e-05/0.9017, allocations: 110 kB / 1.356 GB, free: 14.79 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 1.59e-05/0.9017, allocations: 31.39 kB / 1.356 GB, free: 14.75 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 2.797e-05/0.9018, allocations: 87.91 kB / 1.356 GB, free: 14.66 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 2.171e-05/0.9018, allocations: 28.58 kB / 1.357 GB, free: 14.65 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.989e-06/0.9018, allocations: 0 / 1.357 GB, free: 14.65 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 5.1e-05/0.9018, allocations: 327.3 kB / 1.357 GB, free: 14.33 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.929e-05/0.9019, allocations: 14.06 kB / 1.357 GB, free: 14.33 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.631e-05/0.902, allocations: 65.02 kB / 1.357 GB, free: 14.28 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.201e-05/0.902, allocations: 28.69 kB / 1.357 GB, free: 14.27 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.902, allocations: 1.219 kB / 1.357 GB, free: 14.27 MB / 0.8073 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.00017/0.9022, allocations: 110.1 kB / 1.357 GB, free: 14.22 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 1.286e-05/0.9022, allocations: 8.75 kB / 1.357 GB, free: 14.22 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.693e-06/0.9022, allocations: 3.562 kB / 1.357 GB, free: 14.22 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.264e-05/0.9022, allocations: 2.906 kB / 1.357 GB, free: 14.22 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001212/0.9024, allocations: 20.73 kB / 1.357 GB, free: 14.22 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.702e-06/0.9024, allocations: 6.531 kB / 1.357 GB, free: 14.21 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.382e-05/0.9025, allocations: 14.64 kB / 1.357 GB, free: 14.21 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.366e-05/0.9025, allocations: 4.875 kB / 1.357 GB, free: 14.21 MB / 0.8073 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 5.977e-05/0.9026, allocations: 118.4 kB / 1.357 GB, free: 14.09 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.835e-05/0.9026, allocations: 8.906 kB / 1.357 GB, free: 14.09 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.942e-05/0.9026, allocations: 11.47 kB / 1.357 GB, free: 14.09 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.265e-06/0.9026, allocations: 4.906 kB / 1.357 GB, free: 14.08 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.048e-06/0.9026, allocations: 0.7188 kB / 1.357 GB, free: 14.08 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.166e-06/0.9026, allocations: 0 / 1.357 GB, free: 14.08 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003533/0.903, allocations: 356.1 kB / 1.358 GB, free: 13.81 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/0.903, allocations: 0 / 1.358 GB, free: 13.81 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.761e-05/0.9031, allocations: 6.484 kB / 1.358 GB, free: 13.81 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.354e-06/0.9031, allocations: 0.9688 kB / 1.358 GB, free: 13.81 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.662e-05/0.9031, allocations: 4.062 kB / 1.358 GB, free: 13.81 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.974e-06/0.9031, allocations: 5.125 kB / 1.358 GB, free: 13.81 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.535e-06/0.9031, allocations: 4.875 kB / 1.358 GB, free: 13.8 MB / 0.8073 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000208/0.9033, allocations: 196.9 kB / 1.358 GB, free: 13.67 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 2.655e-05/0.9034, allocations: 86 kB / 1.358 GB, free: 13.57 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.83e-05/0.9034, allocations: 5 kB / 1.358 GB, free: 13.57 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001112/0.9035, allocations: 7.453 kB / 1.358 GB, free: 13.57 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.564e-05/0.9035, allocations: 12.89 kB / 1.358 GB, free: 13.56 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.389e-05/0.9036, allocations: 4.844 kB / 1.358 GB, free: 13.56 MB / 0.8073 GB Notification: Performance of sort global known variables: time 3.599e-05/0.9036, allocations: 91.34 kB / 1.358 GB, free: 13.49 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0003313/0.9039, allocations: 50.19 kB / 1.358 GB, free: 13.48 MB / 0.8073 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.0003239/0.9043, allocations: 166.6 kB / 1.358 GB, free: 13.38 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.0001643/0.9044, allocations: 79.64 kB / 1.358 GB, free: 13.36 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 1.352e-06/0.9045, allocations: 0 / 1.358 GB, free: 13.36 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 7.244e-05/0.9045, allocations: 37.73 kB / 1.358 GB, free: 13.36 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002094/0.9047, allocations: 17.38 kB / 1.358 GB, free: 13.36 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003192/0.9051, allocations: 117.3 kB / 1.358 GB, free: 13.29 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002271/0.9053, allocations: 0.7144 MB / 1.359 GB, free: 28.57 MB / 0.823 GB Notification: Performance of SimCode: time 2.5e-07/0.9053, allocations: 0 / 1.359 GB, free: 28.57 MB / 0.823 GB Notification: Performance of Templates: time 0.0046/0.9099, allocations: 1.88 MB / 1.361 GB, free: 28.4 MB / 0.823 GB make -j1 -f Buildings_9_Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarAltitude.makefile (rm -f Buildings_9_Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarAltitude.pipe ; mkfifo Buildings_9_Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarAltitude.pipe ; head -c 1048576 < Buildings_9_Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarAltitude.pipe >> ../files/Buildings_9_Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarAltitude.sim & ./Buildings_9_Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarAltitude -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarAltitude.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarAltitude_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Occupants_Office_Blinds_Validation_Zhang2012BlindsSolarAltitude.csv","../files/Buildings_9_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.f,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