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.454/1.454, allocations: 249.3 MB / 261.9 MB, free: 5.887 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.001038/0.001039, allocations: 180.8 kB / 321.3 MB, free: 14.66 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.468/1.468, allocations: 205.2 MB / 0.572 GB, free: 10.61 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.0008745/0.0008743, allocations: 87.92 kB / 0.6764 GB, free: 15.59 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 3.942e-05/3.944e-05, allocations: 8 kB / 0.7879 GB, free: 97.11 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2513/0.2514, allocations: 106.3 MB / 0.8918 GB, free: 6.688 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7994/1.051, allocations: 133.7 MB / 1.022 GB, free: 1.062 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002441/1.051, allocations: 87.39 kB / 1.022 GB, free: 1.016 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.009395/1.061, allocations: 3.057 MB / 1.025 GB, free: 14.39 MB / 0.6511 GB Notification: Performance of FrontEnd: time 2.094e-06/1.061, allocations: 0 / 1.025 GB, free: 14.39 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 8.927e-06/1.061, allocations: 0 / 1.025 GB, free: 14.39 MB / 0.6511 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.0005627/1.061, allocations: 448.3 kB / 1.026 GB, free: 13.9 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 4.887e-05/1.061, allocations: 8.031 kB / 1.026 GB, free: 13.89 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.442e-05/1.061, allocations: 15.84 kB / 1.026 GB, free: 13.88 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001641/1.061, allocations: 171 kB / 1.026 GB, free: 13.67 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.007e-05/1.061, allocations: 11.75 kB / 1.026 GB, free: 13.66 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.677e-05/1.062, allocations: 8 kB / 1.026 GB, free: 13.65 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001929/1.062, allocations: 79.83 kB / 1.026 GB, free: 13.58 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.385e-06/1.062, allocations: 0 / 1.026 GB, free: 13.58 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.832e-05/1.062, allocations: 2.812 kB / 1.026 GB, free: 13.58 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.496e-06/1.062, allocations: 4 kB / 1.026 GB, free: 13.58 MB / 0.6511 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.297e-05/1.062, allocations: 30.42 kB / 1.026 GB, free: 13.56 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006101/1.062, allocations: 332.3 kB / 1.026 GB, free: 13.21 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001242/1.063, allocations: 57.25 kB / 1.027 GB, free: 13.16 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.955e-05/1.063, allocations: 35.95 kB / 1.027 GB, free: 13.14 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 2.588e-05/1.063, allocations: 3.984 kB / 1.027 GB, free: 13.13 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001581/1.063, allocations: 92.47 kB / 1.027 GB, free: 13.04 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=9): time 1.432e-06/1.063, allocations: 0 / 1.027 GB, free: 13.04 MB / 0.6511 GB Notification: Performance of matching and sorting (n=9): time 0.0003154/1.063, allocations: 139.8 kB / 1.027 GB, free: 12.93 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.187e-05/1.063, allocations: 59.36 kB / 1.027 GB, free: 12.86 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.748e-05/1.063, allocations: 113.8 kB / 1.027 GB, free: 12.75 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 2.133e-05/1.063, allocations: 28.89 kB / 1.027 GB, free: 12.72 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 7.092e-05/1.064, allocations: 91.38 kB / 1.027 GB, free: 12.63 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 2.925e-05/1.064, allocations: 31.08 kB / 1.027 GB, free: 12.6 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.923e-06/1.064, allocations: 3.312 kB / 1.027 GB, free: 12.6 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001358/1.064, allocations: 322.8 kB / 1.027 GB, free: 12.28 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.164e-05/1.064, allocations: 15.69 kB / 1.027 GB, free: 12.27 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.487e-05/1.064, allocations: 61.41 kB / 1.027 GB, free: 12.2 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.097e-05/1.064, allocations: 34.23 kB / 1.028 GB, free: 12.17 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/1.064, allocations: 0 / 1.028 GB, free: 12.17 MB / 0.6511 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.000185/1.064, allocations: 122.5 kB / 1.028 GB, free: 12.06 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.784e-05/1.064, allocations: 4 kB / 1.028 GB, free: 12.06 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.151e-06/1.064, allocations: 4 kB / 1.028 GB, free: 12.05 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.7e-05/1.064, allocations: 8.156 kB / 1.028 GB, free: 12.05 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001017/1.064, allocations: 23.23 kB / 1.028 GB, free: 12.03 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.448e-06/1.064, allocations: 96 / 1.028 GB, free: 12.03 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.579e-05/1.064, allocations: 15.89 kB / 1.028 GB, free: 12.01 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.167e-05/1.064, allocations: 8.125 kB / 1.028 GB, free: 12.01 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 9.91e-05/1.065, allocations: 115.7 kB / 1.028 GB, free: 11.89 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.833e-05/1.065, allocations: 7.906 kB / 1.028 GB, free: 11.88 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.525e-05/1.065, allocations: 19.36 kB / 1.028 GB, free: 11.87 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.633e-06/1.065, allocations: 0 / 1.028 GB, free: 11.87 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.859e-06/1.065, allocations: 0 / 1.028 GB, free: 11.87 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.528e-06/1.065, allocations: 0 / 1.028 GB, free: 11.87 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004867/1.065, allocations: 428.2 kB / 1.028 GB, free: 11.44 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.473e-06/1.065, allocations: 0 / 1.028 GB, free: 11.44 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.247e-05/1.065, allocations: 4 kB / 1.028 GB, free: 11.44 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.893e-06/1.065, allocations: 7.984 kB / 1.028 GB, free: 11.43 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.32e-05/1.065, allocations: 4 kB / 1.028 GB, free: 11.43 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.635e-06/1.065, allocations: 0.875 kB / 1.028 GB, free: 11.43 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.707e-06/1.065, allocations: 3.953 kB / 1.028 GB, free: 11.42 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000272/1.065, allocations: 231.3 kB / 1.028 GB, free: 11.21 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 5.157e-05/1.066, allocations: 85.02 kB / 1.029 GB, free: 11.11 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.359e-05/1.066, allocations: 0 / 1.029 GB, free: 11.11 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.904e-05/1.066, allocations: 7.984 kB / 1.029 GB, free: 11.1 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.949e-05/1.066, allocations: 15.08 kB / 1.029 GB, free: 11.09 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.763e-05/1.066, allocations: 9.297 kB / 1.029 GB, free: 11.08 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 6.166e-05/1.066, allocations: 98.45 kB / 1.029 GB, free: 10.99 MB / 0.6511 GB Notification: Performance of sort global known variables: time 2.71e-07/1.066, allocations: 0 / 1.029 GB, free: 10.99 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0002917/1.066, allocations: 53.88 kB / 1.029 GB, free: 10.95 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.0003744/1.067, allocations: 179.4 kB / 1.029 GB, free: 10.78 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0001826/1.067, allocations: 73.61 kB / 1.029 GB, free: 10.72 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 1.903e-06/1.067, allocations: 0 / 1.029 GB, free: 10.72 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 8.405e-05/1.067, allocations: 46.36 kB / 1.029 GB, free: 10.69 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001993/1.067, allocations: 12.47 kB / 1.029 GB, free: 10.68 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003418/1.067, allocations: 118.3 kB / 1.029 GB, free: 10.56 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002965/1.068, allocations: 0.7008 MB / 1.03 GB, free: 9.832 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 4.954e-05/1.068, allocations: 7.984 kB / 1.03 GB, free: 9.824 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.553e-05/1.068, allocations: 11.44 kB / 1.03 GB, free: 9.816 MB / 0.6511 GB Notification: Performance of SimCode: time 4.41e-07/1.068, allocations: 0 / 1.03 GB, free: 9.816 MB / 0.6511 GB Notification: Performance of Templates: time 0.004469/1.072, allocations: 1.75 MB / 1.032 GB, free: 8.086 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