Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarAltitude.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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_latest_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_latest_Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarAltitude") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.502/2.502, allocations: 393.5 MB / 408.4 MB, free: 11.05 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.001151/0.001152, allocations: 183.3 kB / 0.4902 GB, free: 2.215 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.585/1.585, allocations: 223.1 MB / 0.7992 GB, free: 14.64 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.00116/0.00116, allocations: 103.9 kB / 0.9396 GB, free: 1.828 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0005388/0.0005389, allocations: 13.94 kB / 1.09 GB, free: 216.1 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3773/0.3778, allocations: 143 MB / 1.229 GB, free: 105.7 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2099/0.5878, allocations: 152.1 MB / 1.378 GB, free: 1.41 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000282/0.5881, allocations: 83.95 kB / 1.378 GB, free: 1.328 MB / 0.8698 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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.0101/0.5983, allocations: 3.121 MB / 1.381 GB, free: 14.2 MB / 0.8855 GB Notification: Performance of FrontEnd: time 2.274e-06/0.5983, allocations: 0 / 1.381 GB, free: 14.2 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 8.266e-06/0.5983, allocations: 0 / 1.381 GB, free: 14.2 MB / 0.8855 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.0006313/0.599, allocations: 459.1 kB / 1.381 GB, free: 13.69 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 4.857e-05/0.599, allocations: 8.562 kB / 1.381 GB, free: 13.68 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.662e-05/0.5991, allocations: 11.86 kB / 1.381 GB, free: 13.67 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000138/0.5992, allocations: 171 kB / 1.381 GB, free: 13.46 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.96e-05/0.5993, allocations: 8 kB / 1.381 GB, free: 13.46 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.242e-05/0.5993, allocations: 8 kB / 1.381 GB, free: 13.45 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002417/0.5996, allocations: 97.55 kB / 1.382 GB, free: 13.35 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.057e-06/0.5996, allocations: 0 / 1.382 GB, free: 13.35 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.617e-05/0.5996, allocations: 4 kB / 1.382 GB, free: 13.34 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.945e-06/0.5996, allocations: 0 / 1.382 GB, free: 13.34 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001585/0.5998, allocations: 51.91 kB / 1.382 GB, free: 13.29 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006159/0.6004, allocations: 340.5 kB / 1.382 GB, free: 12.91 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001791/0.6006, allocations: 66.55 kB / 1.382 GB, free: 12.84 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 2.476e-05/0.6006, allocations: 4 kB / 1.382 GB, free: 12.83 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002114/0.6009, allocations: 95.45 kB / 1.382 GB, free: 12.73 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=9): time 1.733e-06/0.6009, allocations: 3.938 kB / 1.382 GB, free: 12.72 MB / 0.8855 GB Notification: Performance of matching and sorting (n=9): time 0.0005246/0.6014, allocations: 193.5 kB / 1.382 GB, free: 12.53 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.034e-05/0.6015, allocations: 67.33 kB / 1.382 GB, free: 12.45 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001035/0.6016, allocations: 109 kB / 1.382 GB, free: 12.34 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 2.405e-05/0.6016, allocations: 33.7 kB / 1.383 GB, free: 12.3 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 7.035e-05/0.6017, allocations: 88.28 kB / 1.383 GB, free: 12.2 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 2.406e-05/0.6017, allocations: 19.8 kB / 1.383 GB, free: 12.18 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.015e-06/0.6017, allocations: 4 kB / 1.383 GB, free: 12.18 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001125/0.6018, allocations: 322.8 kB / 1.383 GB, free: 11.86 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.91e-05/0.6019, allocations: 31.98 kB / 1.383 GB, free: 11.82 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001175/0.6021, allocations: 77.92 kB / 1.383 GB, free: 11.73 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001057/0.6022, allocations: 39.98 kB / 1.383 GB, free: 11.69 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.559e-06/0.6022, allocations: 0 / 1.383 GB, free: 11.69 MB / 0.8855 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002798/0.6025, allocations: 141.4 kB / 1.383 GB, free: 11.54 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 1.951e-05/0.6025, allocations: 4.156 kB / 1.383 GB, free: 11.54 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.785e-06/0.6025, allocations: 8 kB / 1.383 GB, free: 11.53 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.641e-05/0.6025, allocations: 0 / 1.383 GB, free: 11.53 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.586e-05/0.6026, allocations: 15.98 kB / 1.383 GB, free: 11.52 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.487e-05/0.6027, allocations: 11.89 kB / 1.383 GB, free: 11.5 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.367e-05/0.6027, allocations: 7.984 kB / 1.383 GB, free: 11.5 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.091e-05/0.6028, allocations: 12 kB / 1.383 GB, free: 11.48 MB / 0.8855 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.000104/0.6029, allocations: 117.8 kB / 1.383 GB, free: 11.36 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.126e-05/0.6029, allocations: 7.906 kB / 1.383 GB, free: 11.35 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.172e-05/0.603, allocations: 12.38 kB / 1.383 GB, free: 11.34 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.264e-06/0.603, allocations: 384 / 1.383 GB, free: 11.34 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.653e-06/0.603, allocations: 4 kB / 1.383 GB, free: 11.34 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.354e-06/0.603, allocations: 7.938 kB / 1.383 GB, free: 11.33 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005664/0.6036, allocations: 442.4 kB / 1.384 GB, free: 10.84 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.384e-06/0.6036, allocations: 7.938 kB / 1.384 GB, free: 10.83 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.154e-05/0.6036, allocations: 4 kB / 1.384 GB, free: 10.83 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.219e-06/0.6036, allocations: 4 kB / 1.384 GB, free: 10.82 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.813e-05/0.6037, allocations: 7.922 kB / 1.384 GB, free: 10.82 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.957e-06/0.6037, allocations: 3.953 kB / 1.384 GB, free: 10.81 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.203e-06/0.6037, allocations: 0 / 1.384 GB, free: 10.81 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003745/0.6041, allocations: 259.4 kB / 1.384 GB, free: 10.54 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 4.336e-05/0.6041, allocations: 88.95 kB / 1.384 GB, free: 10.44 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.627e-05/0.6041, allocations: 4 kB / 1.384 GB, free: 10.43 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001015/0.6042, allocations: 7.984 kB / 1.384 GB, free: 10.43 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.55e-05/0.6043, allocations: 7.953 kB / 1.384 GB, free: 10.42 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.026e-05/0.6043, allocations: 7.984 kB / 1.384 GB, free: 10.41 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 6.64e-05/0.6044, allocations: 99.02 kB / 1.384 GB, free: 10.32 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.2e-07/0.6044, allocations: 4 kB / 1.384 GB, free: 10.31 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0003358/0.6048, allocations: 48 kB / 1.384 GB, free: 10.27 MB / 0.8855 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.0004432/0.6052, allocations: 166.6 kB / 1.385 GB, free: 10.11 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0003105/0.6055, allocations: 103.8 kB / 1.385 GB, free: 10 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 2.404e-06/0.6055, allocations: 0 / 1.385 GB, free: 10 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0001308/0.6057, allocations: 47.98 kB / 1.385 GB, free: 9.957 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002156/0.6059, allocations: 15.86 kB / 1.385 GB, free: 9.941 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004986/0.6064, allocations: 223.4 kB / 1.385 GB, free: 9.695 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002646/0.6067, allocations: 0.7004 MB / 1.386 GB, free: 8.969 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 4.835e-05/0.6067, allocations: 8 kB / 1.386 GB, free: 8.961 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.987e-05/0.6068, allocations: 11.44 kB / 1.386 GB, free: 8.953 MB / 0.8855 GB Notification: Performance of SimCode: time 3.21e-07/0.6068, allocations: 0 / 1.386 GB, free: 8.953 MB / 0.8855 GB Notification: Performance of Templates: time 0.005024/0.6118, allocations: 1.743 MB / 1.387 GB, free: 7.227 MB / 0.8855 GB make -j1 -f Buildings_latest_Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarAltitude.makefile (rm -f Buildings_latest_Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarAltitude.pipe ; mkfifo Buildings_latest_Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarAltitude.pipe ; head -c 1048576 < Buildings_latest_Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarAltitude.pipe >> ../files/Buildings_latest_Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarAltitude.sim & ./Buildings_latest_Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarAltitude -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarAltitude.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarAltitude_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Occupants_Office_Blinds_Validation_Zhang2012BlindsSolarAltitude.csv","../files/Buildings_latest_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