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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.251/2.251, allocations: 390.3 MB / 405.3 MB, free: 13.5 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.001079/0.00108, allocations: 173.2 kB / 498.1 MB, free: 5.742 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.583/1.583, allocations: 223.2 MB / 0.7948 GB, free: 17.87 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009288/0.0009286, allocations: 98.75 kB / 0.9346 GB, free: 6.207 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003938/0.0003938, allocations: 6.875 kB / 1.084 GB, free: 221.5 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3367/0.3371, allocations: 142.3 MB / 1.223 GB, free: 114.3 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2032/0.5404, allocations: 151.3 MB / 1.371 GB, free: 10.8 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003129/0.5408, allocations: 87.94 kB / 1.371 GB, free: 10.71 MB / 0.8698 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 - DAE generated: time 0.009211/0.55, allocations: 3.114 MB / 1.374 GB, free: 7.594 MB / 0.8698 GB Notification: Performance of FrontEnd: time 1.623e-06/0.55, allocations: 0 / 1.374 GB, free: 7.594 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 9.488e-06/0.5501, allocations: 4 kB / 1.374 GB, free: 7.59 MB / 0.8698 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.0005555/0.5506, allocations: 463.4 kB / 1.374 GB, free: 7.078 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 4.728e-05/0.5507, allocations: 8.031 kB / 1.374 GB, free: 7.07 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.056e-05/0.5507, allocations: 15.8 kB / 1.374 GB, free: 7.055 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001543/0.5509, allocations: 170.9 kB / 1.374 GB, free: 6.848 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.761e-05/0.5509, allocations: 11.94 kB / 1.374 GB, free: 6.836 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.38e-05/0.551, allocations: 7.984 kB / 1.374 GB, free: 6.828 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002372/0.5512, allocations: 93.62 kB / 1.374 GB, free: 6.73 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.008e-05/0.5512, allocations: 0 / 1.374 GB, free: 6.73 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.499e-05/0.5513, allocations: 0 / 1.374 GB, free: 6.73 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.277e-06/0.5513, allocations: 4 kB / 1.374 GB, free: 6.727 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001488/0.5514, allocations: 55.89 kB / 1.375 GB, free: 6.672 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005841/0.552, allocations: 324.8 kB / 1.375 GB, free: 6.305 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001623/0.5522, allocations: 74.58 kB / 1.375 GB, free: 6.223 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 2.294e-05/0.5522, allocations: 0 / 1.375 GB, free: 6.223 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002051/0.5524, allocations: 95.36 kB / 1.375 GB, free: 6.117 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=9): time 1.372e-06/0.5524, allocations: 0 / 1.375 GB, free: 6.117 MB / 0.8698 GB Notification: Performance of matching and sorting (n=9): time 0.0004974/0.553, allocations: 197.4 kB / 1.375 GB, free: 5.918 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.789e-05/0.553, allocations: 55.78 kB / 1.375 GB, free: 5.852 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001008/0.5531, allocations: 124.9 kB / 1.375 GB, free: 5.723 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 2.217e-05/0.5532, allocations: 29.7 kB / 1.375 GB, free: 5.688 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 6.071e-05/0.5532, allocations: 88.38 kB / 1.375 GB, free: 5.594 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 2.959e-05/0.5533, allocations: 31.81 kB / 1.376 GB, free: 5.562 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.522e-06/0.5533, allocations: 4 kB / 1.376 GB, free: 5.559 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.00011/0.5534, allocations: 318.8 kB / 1.376 GB, free: 5.238 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.739e-05/0.5535, allocations: 27.97 kB / 1.376 GB, free: 5.211 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001031/0.5536, allocations: 81.94 kB / 1.376 GB, free: 5.109 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001025/0.5537, allocations: 35.98 kB / 1.376 GB, free: 5.074 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/0.5537, allocations: 0 / 1.376 GB, free: 5.074 MB / 0.8698 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.000248/0.554, allocations: 141.4 kB / 1.376 GB, free: 4.93 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 1.726e-05/0.554, allocations: 8 kB / 1.376 GB, free: 4.922 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.641e-06/0.554, allocations: 4.156 kB / 1.376 GB, free: 4.918 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.787e-05/0.554, allocations: 4 kB / 1.376 GB, free: 4.914 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.209e-05/0.5541, allocations: 19.92 kB / 1.376 GB, free: 4.895 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.353e-05/0.5541, allocations: 3.953 kB / 1.376 GB, free: 4.891 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.278e-05/0.5542, allocations: 11.91 kB / 1.376 GB, free: 4.879 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.391e-05/0.5542, allocations: 4 kB / 1.376 GB, free: 4.875 MB / 0.8698 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 () * Number of clocked 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.0001047/0.5543, allocations: 133.5 kB / 1.376 GB, free: 4.734 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.792e-05/0.5544, allocations: 11.91 kB / 1.376 GB, free: 4.723 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.137e-05/0.5544, allocations: 8.375 kB / 1.376 GB, free: 4.715 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.322e-06/0.5544, allocations: 4 kB / 1.376 GB, free: 4.711 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.538e-06/0.5544, allocations: 3.938 kB / 1.376 GB, free: 4.707 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.93e-06/0.5544, allocations: 3.953 kB / 1.376 GB, free: 4.703 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005238/0.555, allocations: 430.4 kB / 1.377 GB, free: 4.227 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.856e-06/0.555, allocations: 8 kB / 1.377 GB, free: 4.219 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.819e-05/0.555, allocations: 7.984 kB / 1.377 GB, free: 4.211 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.904e-06/0.555, allocations: 96 / 1.377 GB, free: 4.211 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.849e-05/0.555, allocations: 11.98 kB / 1.377 GB, free: 4.199 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.637e-06/0.5551, allocations: 3.953 kB / 1.377 GB, free: 4.195 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.82e-07/0.5551, allocations: 0 / 1.377 GB, free: 4.195 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003246/0.5554, allocations: 255.4 kB / 1.377 GB, free: 3.93 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 3.5e-05/0.5554, allocations: 81.11 kB / 1.377 GB, free: 3.832 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.511e-05/0.5555, allocations: 11.92 kB / 1.377 GB, free: 3.82 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.627e-05/0.5556, allocations: 8 kB / 1.377 GB, free: 3.812 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.494e-05/0.5556, allocations: 7.938 kB / 1.377 GB, free: 3.805 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.3e-05/0.5556, allocations: 4 kB / 1.377 GB, free: 3.801 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 5.51e-05/0.5557, allocations: 103 kB / 1.377 GB, free: 3.703 MB / 0.8698 GB Notification: Performance of sort global known variables: time 1.5e-07/0.5557, allocations: 0 / 1.377 GB, free: 3.703 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.0003278/0.556, allocations: 59.92 kB / 1.377 GB, free: 3.645 MB / 0.8698 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) * Number of clocked states: 0 () * 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.0003737/0.5564, allocations: 164.7 kB / 1.377 GB, free: 3.484 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.0002628/0.5567, allocations: 95.95 kB / 1.377 GB, free: 3.391 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 3.306e-06/0.5567, allocations: 4 kB / 1.377 GB, free: 3.387 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.0001115/0.5568, allocations: 51.91 kB / 1.378 GB, free: 3.336 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001991/0.557, allocations: 15.92 kB / 1.378 GB, free: 3.32 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004263/0.5575, allocations: 227.4 kB / 1.378 GB, free: 3.07 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002713/0.5577, allocations: 0.6926 MB / 1.378 GB, free: 2.352 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 4.14e-05/0.5578, allocations: 11.98 kB / 1.378 GB, free: 2.34 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.32e-05/0.5578, allocations: 11.44 kB / 1.378 GB, free: 2.328 MB / 0.8698 GB Notification: Performance of SimCode: time 2.11e-07/0.5578, allocations: 0 / 1.378 GB, free: 2.328 MB / 0.8698 GB Notification: Performance of Templates: time 0.004393/0.5622, allocations: 1.74 MB / 1.38 GB, free: 0.6016 MB / 0.8698 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