Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Occupants.Office.Blinds.Validation.Haldi2008BlindsTIn.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.Haldi2008BlindsTIn,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|bli.TIn|bli.occ|bli.pDown|bli.blindState",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Occupants.Office.Blinds.Validation.Haldi2008BlindsTIn") translateModel(Buildings.Occupants.Office.Blinds.Validation.Haldi2008BlindsTIn,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|bli.TIn|bli.occ|bli.pDown|bli.blindState",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Occupants.Office.Blinds.Validation.Haldi2008BlindsTIn") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.482/1.482, allocations: 249.5 MB / 257 MB, free: 6.934 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.001079/0.001079, allocations: 187.1 kB / 316.3 MB, free: 3.215 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.789/1.789, allocations: 205.3 MB / 0.5672 GB, free: 15.8 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.0009084/0.0009087, allocations: 83.31 kB / 0.6714 GB, free: 4.93 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.059e-05/2.061e-05, allocations: 4 kB / 0.7814 GB, free: 102.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2173/0.2173, allocations: 106.3 MB / 0.8852 GB, free: 12.25 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7475/0.9649, allocations: 133.8 MB / 1.016 GB, free: 4.008 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002572/0.9652, allocations: 83.81 kB / 1.016 GB, free: 3.961 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.008909/0.9741, allocations: 2.859 MB / 1.019 GB, free: 1.543 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.432e-06/0.9741, allocations: 0 / 1.019 GB, free: 1.543 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 7.354e-06/0.9742, allocations: 0 / 1.019 GB, free: 1.543 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0005036/0.9747, allocations: 431.6 kB / 1.019 GB, free: 1.074 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.528e-05/0.9747, allocations: 8.031 kB / 1.019 GB, free: 1.066 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.408e-05/0.9748, allocations: 12.7 kB / 1.019 GB, free: 1.055 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001446/0.9749, allocations: 178.8 kB / 1.019 GB, free: 0.8398 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.813e-05/0.975, allocations: 8 kB / 1.019 GB, free: 0.832 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.772e-05/0.975, allocations: 0 / 1.019 GB, free: 0.832 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001096/0.9751, allocations: 23.31 kB / 1.019 GB, free: 0.8164 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001068/0.9752, allocations: 56.97 kB / 1.019 GB, free: 0.7617 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.208e-06/0.9752, allocations: 0 / 1.019 GB, free: 0.7617 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.455e-05/0.9753, allocations: 3.984 kB / 1.019 GB, free: 0.7578 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.569e-06/0.9753, allocations: 0.875 kB / 1.019 GB, free: 0.7578 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004722/0.9757, allocations: 280.5 kB / 1.02 GB, free: 476 kB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 7.598e-05/0.9758, allocations: 41.44 kB / 1.02 GB, free: 436 kB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.01e-05/0.9759, allocations: 24.23 kB / 1.02 GB, free: 416 kB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 2.394e-05/0.9759, allocations: 3.984 kB / 1.02 GB, free: 412 kB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001244/0.976, allocations: 62.77 kB / 1.02 GB, free: 344 kB / 0.6355 GB Notification: Performance of pre-optimization done (n=7): time 1.443e-06/0.9761, allocations: 4 kB / 1.02 GB, free: 340 kB / 0.6355 GB Notification: Performance of matching and sorting (n=7): time 0.0002476/0.9763, allocations: 103.8 kB / 1.02 GB, free: 248 kB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.558e-05/0.9764, allocations: 51.41 kB / 1.02 GB, free: 184 kB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.433e-05/0.9765, allocations: 116.2 kB / 1.02 GB, free: 68 kB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 1.584e-05/0.9765, allocations: 25.7 kB / 1.02 GB, free: 36 kB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 8.894e-05/0.9766, allocations: 91.86 kB / 1.02 GB, free: 15.94 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 2.625e-05/0.9766, allocations: 19.45 kB / 1.02 GB, free: 15.93 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.63e-06/0.9766, allocations: 0 / 1.02 GB, free: 15.93 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.000128/0.9767, allocations: 322.5 kB / 1.021 GB, free: 15.61 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.873e-05/0.9768, allocations: 11.56 kB / 1.021 GB, free: 15.6 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.141e-05/0.9769, allocations: 53.8 kB / 1.021 GB, free: 15.54 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.184e-05/0.9769, allocations: 31.17 kB / 1.021 GB, free: 15.51 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.833e-06/0.9769, allocations: 4 kB / 1.021 GB, free: 15.51 MB / 0.6511 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001317/0.9771, allocations: 84.41 kB / 1.021 GB, free: 15.43 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.405e-05/0.9771, allocations: 4 kB / 1.021 GB, free: 15.43 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.631e-06/0.9771, allocations: 0 / 1.021 GB, free: 15.43 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.677e-05/0.9771, allocations: 4 kB / 1.021 GB, free: 15.42 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.096e-05/0.9772, allocations: 21.86 kB / 1.021 GB, free: 15.4 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.839e-06/0.9772, allocations: 0 / 1.021 GB, free: 15.4 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.36e-05/0.9773, allocations: 16.05 kB / 1.021 GB, free: 15.39 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.329e-05/0.9773, allocations: 4 kB / 1.021 GB, free: 15.38 MB / 0.6511 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 9 ($PRE.bli.curSeed,bli.curSeed,$PRE.bli.blindState,bli.blindState,$PRE.bli.pDown,bli.pDown,bli.occ,$whenCondition1,bli.sampleTrigger) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * 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.12e-05/0.9774, allocations: 110.8 kB / 1.021 GB, free: 15.27 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.326e-05/0.9774, allocations: 4 kB / 1.021 GB, free: 15.27 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.847e-05/0.9775, allocations: 8.312 kB / 1.021 GB, free: 15.26 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.935e-06/0.9775, allocations: 4 kB / 1.021 GB, free: 15.25 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.627e-06/0.9775, allocations: 0 / 1.021 GB, free: 15.25 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.675e-06/0.9775, allocations: 0 / 1.021 GB, free: 15.25 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003241/0.9778, allocations: 347.8 kB / 1.021 GB, free: 14.9 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.9778, allocations: 0 / 1.021 GB, free: 14.9 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.291e-05/0.9779, allocations: 4 kB / 1.021 GB, free: 14.89 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.927e-06/0.9779, allocations: 3.984 kB / 1.021 GB, free: 14.89 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.066e-05/0.9779, allocations: 0 / 1.021 GB, free: 14.89 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.236e-06/0.9779, allocations: 4 kB / 1.021 GB, free: 14.89 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.605e-06/0.9779, allocations: 4 kB / 1.021 GB, free: 14.88 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001903/0.9781, allocations: 193.8 kB / 1.021 GB, free: 14.7 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 4.979e-05/0.9782, allocations: 85.02 kB / 1.022 GB, free: 14.59 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.277e-05/0.9782, allocations: 3.984 kB / 1.022 GB, free: 14.59 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.621e-05/0.9783, allocations: 4 kB / 1.022 GB, free: 14.59 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.691e-05/0.9784, allocations: 11.42 kB / 1.022 GB, free: 14.58 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.025e-06/0.9784, allocations: 0 / 1.022 GB, free: 14.58 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 4.057e-05/0.9784, allocations: 86.72 kB / 1.022 GB, free: 14.5 MB / 0.6511 GB Notification: Performance of sort global known variables: time 1.41e-07/0.9784, allocations: 0 / 1.022 GB, free: 14.5 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0003005/0.9787, allocations: 59.3 kB / 1.022 GB, free: 14.44 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: 6 (bli.sampleTrigger,$whenCondition1,bli.occ,bli.blindState,bli.pDown,bli.curSeed) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0003662/0.9791, allocations: 165 kB / 1.022 GB, free: 14.28 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0001259/0.9792, allocations: 54.11 kB / 1.022 GB, free: 14.24 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 1.543e-06/0.9792, allocations: 0 / 1.022 GB, free: 14.24 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 5.285e-05/0.9793, allocations: 27.31 kB / 1.022 GB, free: 14.22 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001879/0.9795, allocations: 23.44 kB / 1.022 GB, free: 14.2 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002709/0.9798, allocations: 95.47 kB / 1.022 GB, free: 14.1 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002584/0.98, allocations: 0.6924 MB / 1.023 GB, free: 13.38 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 3.634e-05/0.9801, allocations: 4.188 kB / 1.023 GB, free: 13.38 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.257e-05/0.9801, allocations: 11.44 kB / 1.023 GB, free: 13.36 MB / 0.6511 GB Notification: Performance of SimCode: time 2.4e-07/0.9801, allocations: 4 kB / 1.023 GB, free: 13.36 MB / 0.6511 GB Notification: Performance of Templates: time 0.003829/0.984, allocations: 1.488 MB / 1.024 GB, free: 11.89 MB / 0.6511 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Occupants.Office.Blinds.Validation.Haldi2008BlindsTIn.makefile (rm -f Buildings_maint.7.0.x_Buildings.Occupants.Office.Blinds.Validation.Haldi2008BlindsTIn.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Occupants.Office.Blinds.Validation.Haldi2008BlindsTIn.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Occupants.Office.Blinds.Validation.Haldi2008BlindsTIn.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Occupants.Office.Blinds.Validation.Haldi2008BlindsTIn.sim & ./Buildings_maint.7.0.x_Buildings.Occupants.Office.Blinds.Validation.Haldi2008BlindsTIn -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Occupants.Office.Blinds.Validation.Haldi2008BlindsTIn.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Occupants.Office.Blinds.Validation.Haldi2008BlindsTIn_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Occupants_Office_Blinds_Validation_Haldi2008BlindsTIn.csv","../files/Buildings_maint.7.0.x_Buildings.Occupants.Office.Blinds.Validation.Haldi2008BlindsTIn.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,bli.TIn,bli.occ,bli.pDown,bli.blindState Variables in the result:TIn.amplitude,TIn.freqHz,TIn.offset,TIn.phase,TIn.startTime,TIn.y,bli.A,bli.B,bli.TIn,bli.blindState,bli.occ,bli.pDown,bli.samplePeriod,bli.seed,bli.t0,occ.startTime,occ.startValue,time