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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.495/1.495, allocations: 249.5 MB / 257 MB, free: 7 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.001075/0.001075, allocations: 192.8 kB / 316.3 MB, free: 3.266 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.835/1.835, allocations: 205.3 MB / 0.5671 GB, free: 15.89 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.0008306/0.0008303, allocations: 89.42 kB / 0.6714 GB, free: 5.012 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.033e-05/2.035e-05, allocations: 7.984 kB / 0.7814 GB, free: 102.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.224/0.2241, allocations: 106.3 MB / 0.8852 GB, free: 12.27 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7943/1.018, allocations: 134 MB / 1.016 GB, free: 3.855 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002362/1.019, allocations: 82.69 kB / 1.016 GB, free: 3.809 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 - DAE generated: time 0.009157/1.028, allocations: 3.041 MB / 1.019 GB, free: 1.238 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.212e-06/1.028, allocations: 0 / 1.019 GB, free: 1.238 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 7.524e-06/1.028, allocations: 0 / 1.019 GB, free: 1.238 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.0005652/1.028, allocations: 458.8 kB / 1.02 GB, free: 0.7422 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 3.826e-05/1.029, allocations: 8.031 kB / 1.02 GB, free: 0.7344 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.088e-05/1.029, allocations: 7.906 kB / 1.02 GB, free: 0.7266 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001457/1.029, allocations: 178.7 kB / 1.02 GB, free: 0.5156 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.912e-05/1.029, allocations: 4 kB / 1.02 GB, free: 0.5117 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.534e-05/1.029, allocations: 4 kB / 1.02 GB, free: 0.5078 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.746e-05/1.029, allocations: 29.98 kB / 1.02 GB, free: 500 kB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001344/1.029, allocations: 77.28 kB / 1.02 GB, free: 432 kB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.017e-06/1.029, allocations: 0 / 1.02 GB, free: 432 kB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.528e-05/1.029, allocations: 4 kB / 1.02 GB, free: 428 kB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.632e-06/1.029, allocations: 4 kB / 1.02 GB, free: 424 kB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000541/1.03, allocations: 299 kB / 1.02 GB, free: 108 kB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001016/1.03, allocations: 56.23 kB / 1.02 GB, free: 60 kB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.225e-05/1.03, allocations: 35.3 kB / 1.02 GB, free: 32 kB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 2.406e-05/1.03, allocations: 3.984 kB / 1.02 GB, free: 28 kB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001702/1.03, allocations: 85.34 kB / 1.02 GB, free: 15.95 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=9): time 1.453e-06/1.03, allocations: 0 / 1.02 GB, free: 15.95 MB / 0.6511 GB Notification: Performance of matching and sorting (n=9): time 0.0003202/1.03, allocations: 134.6 kB / 1.02 GB, free: 15.84 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.586e-05/1.03, allocations: 55.39 kB / 1.02 GB, free: 15.77 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.472e-05/1.031, allocations: 112.7 kB / 1.021 GB, free: 15.66 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 2.113e-05/1.031, allocations: 29.7 kB / 1.021 GB, free: 15.62 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 6.114e-05/1.031, allocations: 94.73 kB / 1.021 GB, free: 15.53 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 2.744e-05/1.031, allocations: 22.78 kB / 1.021 GB, free: 15.51 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.42e-06/1.031, allocations: 0 / 1.021 GB, free: 15.51 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001153/1.031, allocations: 326 kB / 1.021 GB, free: 15.19 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.366e-05/1.031, allocations: 17.94 kB / 1.021 GB, free: 15.18 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.37e-05/1.031, allocations: 62.67 kB / 1.021 GB, free: 15.11 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.025e-05/1.031, allocations: 28.98 kB / 1.021 GB, free: 15.09 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/1.031, allocations: 0 / 1.021 GB, free: 15.09 MB / 0.6511 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0001955/1.031, allocations: 110.9 kB / 1.021 GB, free: 14.98 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.512e-05/1.031, allocations: 9.562 kB / 1.021 GB, free: 14.98 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.641e-06/1.031, allocations: 0 / 1.021 GB, free: 14.98 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.625e-05/1.031, allocations: 4 kB / 1.021 GB, free: 14.97 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.792e-05/1.031, allocations: 19.17 kB / 1.021 GB, free: 14.96 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.066e-05/1.031, allocations: 4 kB / 1.021 GB, free: 14.95 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.506e-05/1.031, allocations: 7.938 kB / 1.021 GB, free: 14.95 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.324e-05/1.031, allocations: 7.938 kB / 1.021 GB, free: 14.94 MB / 0.6511 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 0.0001019/1.032, allocations: 121.5 kB / 1.021 GB, free: 14.82 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.668e-05/1.032, allocations: 8 kB / 1.021 GB, free: 14.81 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.624e-05/1.032, allocations: 19.91 kB / 1.021 GB, free: 14.79 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.174e-06/1.032, allocations: 0 / 1.021 GB, free: 14.79 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.949e-06/1.032, allocations: 0 / 1.021 GB, free: 14.79 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.026e-06/1.032, allocations: 0 / 1.021 GB, free: 14.79 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004392/1.032, allocations: 389 kB / 1.022 GB, free: 14.41 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/1.032, allocations: 96 / 1.022 GB, free: 14.41 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.039e-05/1.032, allocations: 7.938 kB / 1.022 GB, free: 14.4 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.108e-06/1.032, allocations: 8 kB / 1.022 GB, free: 14.39 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.499e-05/1.032, allocations: 7.359 kB / 1.022 GB, free: 14.39 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.685e-06/1.032, allocations: 0 / 1.022 GB, free: 14.39 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.808e-06/1.032, allocations: 7.922 kB / 1.022 GB, free: 14.38 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002747/1.032, allocations: 220.3 kB / 1.022 GB, free: 14.18 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 5.031e-05/1.033, allocations: 89 kB / 1.022 GB, free: 14.07 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.574e-05/1.033, allocations: 0 / 1.022 GB, free: 14.07 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.584e-05/1.033, allocations: 8 kB / 1.022 GB, free: 14.06 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.482e-05/1.033, allocations: 15.36 kB / 1.022 GB, free: 14.05 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.295e-05/1.033, allocations: 4 kB / 1.022 GB, free: 14.05 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 5.73e-05/1.033, allocations: 92.14 kB / 1.022 GB, free: 13.96 MB / 0.6511 GB Notification: Performance of sort global known variables: time 1.2e-07/1.033, allocations: 0 / 1.022 GB, free: 13.96 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0003658/1.033, allocations: 54.73 kB / 1.022 GB, free: 13.91 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.0004224/1.034, allocations: 164 kB / 1.022 GB, free: 13.76 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0001649/1.034, allocations: 72.67 kB / 1.023 GB, free: 13.7 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/1.034, allocations: 0 / 1.023 GB, free: 13.7 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 7.362e-05/1.034, allocations: 42.36 kB / 1.023 GB, free: 13.68 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002126/1.034, allocations: 19.62 kB / 1.023 GB, free: 13.66 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003184/1.034, allocations: 119.4 kB / 1.023 GB, free: 13.54 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002929/1.035, allocations: 0.6963 MB / 1.023 GB, free: 12.81 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 4.165e-05/1.035, allocations: 8.172 kB / 1.023 GB, free: 12.8 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.391e-05/1.035, allocations: 7.438 kB / 1.023 GB, free: 12.8 MB / 0.6511 GB Notification: Performance of SimCode: time 2.3e-07/1.035, allocations: 4 kB / 1.023 GB, free: 12.8 MB / 0.6511 GB Notification: Performance of Templates: time 0.004295/1.039, allocations: 1.72 MB / 1.025 GB, free: 11.11 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