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.028/2.028, allocations: 387.4 MB / 394.9 MB, free: 13.36 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.0009225/0.0009225, allocations: 180.8 kB / 487.4 MB, free: 5.043 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.355/1.355, allocations: 221.5 MB / 0.7824 GB, free: 0.9062 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.0008466/0.0008468, allocations: 95.67 kB / 0.9219 GB, free: 2.145 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 1.564e-05/1.565e-05, allocations: 6.062 kB / 1.067 GB, free: 185.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2335/0.2335, allocations: 142.4 MB / 1.206 GB, free: 43.91 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7608/0.9944, allocations: 150.6 MB / 1.353 GB, free: 18.32 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002028/0.9946, allocations: 78.41 kB / 1.353 GB, free: 18.32 MB / 0.823 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.008655/1.003, allocations: 3.08 MB / 1.356 GB, free: 33.86 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.002e-06/1.003, allocations: 0 / 1.356 GB, free: 33.86 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 6.743e-06/1.003, allocations: 3.875 kB / 1.356 GB, free: 33.86 MB / 0.8386 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.0003952/1.004, allocations: 450.1 kB / 1.356 GB, free: 33.43 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.319e-05/1.004, allocations: 11.81 kB / 1.357 GB, free: 33.42 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.664e-05/1.004, allocations: 8.297 kB / 1.357 GB, free: 33.42 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.694e-05/1.004, allocations: 177.1 kB / 1.357 GB, free: 33.21 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.486e-05/1.004, allocations: 4.719 kB / 1.357 GB, free: 33.21 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.957e-05/1.004, allocations: 3.969 kB / 1.357 GB, free: 33.21 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.439e-05/1.004, allocations: 35.61 kB / 1.357 GB, free: 33.21 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001139/1.004, allocations: 69.77 kB / 1.357 GB, free: 33.18 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.362e-06/1.004, allocations: 3.812 kB / 1.357 GB, free: 33.18 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.33e-05/1.004, allocations: 4.594 kB / 1.357 GB, free: 33.17 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.577e-06/1.004, allocations: 0 / 1.357 GB, free: 33.17 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000438/1.005, allocations: 298.8 kB / 1.357 GB, free: 32.93 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 8.153e-05/1.005, allocations: 63.72 kB / 1.357 GB, free: 32.9 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.497e-05/1.005, allocations: 32.8 kB / 1.357 GB, free: 32.89 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.881e-05/1.005, allocations: 3.75 kB / 1.357 GB, free: 32.89 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001156/1.005, allocations: 85.53 kB / 1.357 GB, free: 32.84 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=9): time 2.054e-06/1.005, allocations: 3.984 kB / 1.357 GB, free: 32.84 MB / 0.8386 GB Notification: Performance of matching and sorting (n=9): time 0.0002719/1.005, allocations: 134.6 kB / 1.357 GB, free: 32.8 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.204e-05/1.005, allocations: 55.81 kB / 1.357 GB, free: 32.74 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.217e-05/1.005, allocations: 114.1 kB / 1.358 GB, free: 32.65 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.085e-05/1.005, allocations: 25.7 kB / 1.358 GB, free: 32.62 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 4.714e-05/1.005, allocations: 93.75 kB / 1.358 GB, free: 32.53 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 1.746e-05/1.005, allocations: 25.61 kB / 1.358 GB, free: 32.51 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.669e-06/1.005, allocations: 0 / 1.358 GB, free: 32.51 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001041/1.006, allocations: 321.4 kB / 1.358 GB, free: 32.2 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.29e-05/1.006, allocations: 19.23 kB / 1.358 GB, free: 32.2 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.588e-05/1.006, allocations: 65.19 kB / 1.358 GB, free: 32.14 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.794e-05/1.006, allocations: 29.5 kB / 1.358 GB, free: 32.13 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/1.006, allocations: 3.969 kB / 1.358 GB, free: 32.13 MB / 0.8386 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0001259/1.006, allocations: 101.3 kB / 1.358 GB, free: 32.09 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.203e-05/1.006, allocations: 7.719 kB / 1.358 GB, free: 32.09 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.809e-06/1.006, allocations: 0 / 1.358 GB, free: 32.09 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.387e-05/1.006, allocations: 8.062 kB / 1.358 GB, free: 32.09 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.618e-05/1.006, allocations: 17.64 kB / 1.358 GB, free: 32.09 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.012e-06/1.006, allocations: 7.75 kB / 1.358 GB, free: 32.08 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.024e-05/1.006, allocations: 10.31 kB / 1.358 GB, free: 32.08 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.198e-05/1.006, allocations: 3.875 kB / 1.358 GB, free: 32.08 MB / 0.8386 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.525e-05/1.006, allocations: 121 kB / 1.358 GB, free: 31.96 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.484e-05/1.006, allocations: 6.656 kB / 1.358 GB, free: 31.96 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.473e-05/1.006, allocations: 8.625 kB / 1.358 GB, free: 31.96 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.593e-06/1.006, allocations: 0 / 1.358 GB, free: 31.96 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.807e-06/1.006, allocations: 96 / 1.358 GB, free: 31.96 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.766e-06/1.006, allocations: 7.781 kB / 1.358 GB, free: 31.95 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003439/1.007, allocations: 392.7 kB / 1.359 GB, free: 31.68 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/1.007, allocations: 0 / 1.359 GB, free: 31.68 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.116e-05/1.007, allocations: 6.234 kB / 1.359 GB, free: 31.68 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.883e-06/1.007, allocations: 0 / 1.359 GB, free: 31.68 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.614e-05/1.007, allocations: 6.609 kB / 1.359 GB, free: 31.68 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.784e-06/1.007, allocations: 11.88 kB / 1.359 GB, free: 31.67 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/1.007, allocations: 4 kB / 1.359 GB, free: 31.66 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002082/1.007, allocations: 228.1 kB / 1.359 GB, free: 31.53 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 2.054e-05/1.007, allocations: 84.95 kB / 1.359 GB, free: 31.43 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.58e-05/1.007, allocations: 0 / 1.359 GB, free: 31.43 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.349e-05/1.007, allocations: 14.75 kB / 1.359 GB, free: 31.43 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.029e-05/1.007, allocations: 6.688 kB / 1.359 GB, free: 31.43 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.06e-05/1.007, allocations: 7.875 kB / 1.359 GB, free: 31.42 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 4.171e-05/1.007, allocations: 93.98 kB / 1.359 GB, free: 31.35 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.3e-07/1.007, allocations: 0 / 1.359 GB, free: 31.35 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002971/1.007, allocations: 48.95 kB / 1.359 GB, free: 31.34 MB / 0.8386 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.0003118/1.008, allocations: 181.5 kB / 1.359 GB, free: 31.23 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0001297/1.008, allocations: 71.44 kB / 1.36 GB, free: 31.22 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.683e-06/1.008, allocations: 0 / 1.36 GB, free: 31.22 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 5.317e-05/1.008, allocations: 32.72 kB / 1.36 GB, free: 31.22 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001869/1.008, allocations: 20.03 kB / 1.36 GB, free: 31.21 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002485/1.008, allocations: 113.3 kB / 1.36 GB, free: 31.14 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002346/1.009, allocations: 0.6966 MB / 1.36 GB, free: 30.44 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 3.625e-05/1.009, allocations: 6.641 kB / 1.36 GB, free: 30.44 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.111e-05/1.009, allocations: 11.19 kB / 1.36 GB, free: 30.43 MB / 0.8386 GB Notification: Performance of SimCode: time 2.41e-07/1.009, allocations: 192 / 1.36 GB, free: 30.43 MB / 0.8386 GB Notification: Performance of Templates: time 0.003463/1.012, allocations: 1.715 MB / 1.362 GB, free: 30.27 MB / 0.8386 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