Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Occupants.Office.Blinds.Validation.Haldi2008BlindsTIn.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.Haldi2008BlindsTIn,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|bli.TIn|bli.occ|bli.pDown|bli.blindState",fileNamePrefix="Buildings_latest_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_latest_Buildings.Occupants.Office.Blinds.Validation.Haldi2008BlindsTIn") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.252/2.252, allocations: 393.5 MB / 408.4 MB, free: 11.03 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.001112/0.001112, allocations: 187.6 kB / 0.4902 GB, free: 2.254 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.621/1.621, allocations: 223.2 MB / 0.7992 GB, free: 14.71 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.0009341/0.0009342, allocations: 94.41 kB / 0.9396 GB, free: 1.906 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003583/0.0003584, allocations: 7.531 kB / 1.09 GB, free: 216.3 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3034/0.3038, allocations: 143 MB / 1.229 GB, free: 105.8 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1972/0.501, allocations: 151.9 MB / 1.378 GB, free: 1.633 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002781/0.5013, allocations: 83.94 kB / 1.378 GB, free: 1.551 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.008849/0.5102, allocations: 2.945 MB / 1.381 GB, free: 14.6 MB / 0.8855 GB Notification: Performance of FrontEnd: time 2.375e-06/0.5102, allocations: 0 / 1.381 GB, free: 14.6 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 7.674e-06/0.5102, allocations: 0 / 1.381 GB, free: 14.6 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.000577/0.5108, allocations: 446.4 kB / 1.381 GB, free: 14.1 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 5.322e-05/0.5109, allocations: 8.562 kB / 1.381 GB, free: 14.09 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.266e-05/0.5109, allocations: 11.94 kB / 1.381 GB, free: 14.08 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001283/0.5111, allocations: 171 kB / 1.381 GB, free: 13.88 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.072e-05/0.5111, allocations: 4 kB / 1.381 GB, free: 13.87 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.907e-05/0.5111, allocations: 0 / 1.381 GB, free: 13.87 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001975/0.5113, allocations: 73.66 kB / 1.381 GB, free: 13.79 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.346e-06/0.5114, allocations: 4 kB / 1.381 GB, free: 13.79 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.219e-05/0.5114, allocations: 0 / 1.381 GB, free: 13.79 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.258e-06/0.5114, allocations: 0 / 1.381 GB, free: 13.79 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001475/0.5115, allocations: 51.89 kB / 1.381 GB, free: 13.74 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005165/0.5121, allocations: 304.7 kB / 1.382 GB, free: 13.39 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001288/0.5122, allocations: 50.56 kB / 1.382 GB, free: 13.33 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 2.439e-05/0.5122, allocations: 0 / 1.382 GB, free: 13.33 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000188/0.5124, allocations: 99.36 kB / 1.382 GB, free: 13.22 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=7): time 1.442e-06/0.5124, allocations: 0 / 1.382 GB, free: 13.22 MB / 0.8855 GB Notification: Performance of matching and sorting (n=7): time 0.0004255/0.5129, allocations: 145.6 kB / 1.382 GB, free: 13.07 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.29e-05/0.5129, allocations: 55.41 kB / 1.382 GB, free: 13.01 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.561e-05/0.513, allocations: 109 kB / 1.382 GB, free: 12.89 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 2.008e-05/0.5131, allocations: 33.7 kB / 1.382 GB, free: 12.86 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 5.868e-05/0.5131, allocations: 96.22 kB / 1.382 GB, free: 12.75 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 1.787e-05/0.5131, allocations: 11.91 kB / 1.382 GB, free: 12.74 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.869e-06/0.5132, allocations: 0 / 1.382 GB, free: 12.74 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001159/0.5133, allocations: 318.8 kB / 1.382 GB, free: 12.42 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.316e-05/0.5134, allocations: 23.98 kB / 1.382 GB, free: 12.4 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.231e-05/0.5135, allocations: 69.08 kB / 1.383 GB, free: 12.31 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.889e-05/0.5136, allocations: 27.98 kB / 1.383 GB, free: 12.29 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.507e-06/0.5136, allocations: 8 kB / 1.383 GB, free: 12.28 MB / 0.8855 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002252/0.5138, allocations: 117.4 kB / 1.383 GB, free: 12.16 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 1.445e-05/0.5138, allocations: 4 kB / 1.383 GB, free: 12.15 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.48e-06/0.5138, allocations: 0 / 1.383 GB, free: 12.15 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.389e-05/0.5138, allocations: 4 kB / 1.383 GB, free: 12.15 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.874e-05/0.5139, allocations: 24.08 kB / 1.383 GB, free: 12.12 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.684e-06/0.514, allocations: 3.953 kB / 1.383 GB, free: 12.12 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.541e-05/0.514, allocations: 11.91 kB / 1.383 GB, free: 12.11 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.38e-05/0.514, allocations: 4 kB / 1.383 GB, free: 12.11 MB / 0.8855 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 () * Number of clocked 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 8.937e-05/0.5141, allocations: 125.8 kB / 1.383 GB, free: 11.97 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.433e-05/0.5142, allocations: 4 kB / 1.383 GB, free: 11.97 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.613e-05/0.5142, allocations: 8.375 kB / 1.383 GB, free: 11.96 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.004e-06/0.5142, allocations: 3.938 kB / 1.383 GB, free: 11.96 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.521e-06/0.5142, allocations: 4 kB / 1.383 GB, free: 11.95 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.849e-06/0.5142, allocations: 7.891 kB / 1.383 GB, free: 11.95 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004664/0.5147, allocations: 386.4 kB / 1.383 GB, free: 11.51 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.5147, allocations: 0 / 1.383 GB, free: 11.51 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.279e-05/0.5148, allocations: 7.984 kB / 1.383 GB, free: 11.5 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.304e-06/0.5148, allocations: 0 / 1.383 GB, free: 11.5 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.174e-05/0.5148, allocations: 4 kB / 1.383 GB, free: 11.5 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.266e-06/0.5148, allocations: 3.953 kB / 1.383 GB, free: 11.5 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.92e-07/0.5148, allocations: 0 / 1.383 GB, free: 11.5 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002898/0.5151, allocations: 219.7 kB / 1.383 GB, free: 11.27 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 3.948e-05/0.5152, allocations: 81.11 kB / 1.384 GB, free: 11.17 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.798e-05/0.5152, allocations: 8 kB / 1.384 GB, free: 11.16 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.42e-05/0.5153, allocations: 7.984 kB / 1.384 GB, free: 11.15 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.118e-05/0.5153, allocations: 3.953 kB / 1.384 GB, free: 11.15 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.157e-06/0.5153, allocations: 4 kB / 1.384 GB, free: 11.14 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 5.072e-05/0.5154, allocations: 91.27 kB / 1.384 GB, free: 11.05 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.51e-07/0.5154, allocations: 0 / 1.384 GB, free: 11.05 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0003048/0.5157, allocations: 55.92 kB / 1.384 GB, free: 11 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: 6 (bli.sampleTrigger,$whenCondition1,bli.occ,bli.blindState,bli.pDown,bli.curSeed) * Number of discrete states: 0 () * Number of clocked 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.0003702/0.5161, allocations: 174.2 kB / 1.384 GB, free: 10.83 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0002441/0.5163, allocations: 79.88 kB / 1.384 GB, free: 10.75 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 3.386e-06/0.5164, allocations: 4.25 kB / 1.384 GB, free: 10.75 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0001097/0.5165, allocations: 43.86 kB / 1.384 GB, free: 10.71 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001843/0.5167, allocations: 8.688 kB / 1.384 GB, free: 10.7 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004251/0.5171, allocations: 211.1 kB / 1.384 GB, free: 10.46 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002685/0.5174, allocations: 0.6926 MB / 1.385 GB, free: 9.742 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 3.604e-05/0.5174, allocations: 4.188 kB / 1.385 GB, free: 9.738 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.541e-05/0.5175, allocations: 11.44 kB / 1.385 GB, free: 9.727 MB / 0.8855 GB Notification: Performance of SimCode: time 2.41e-07/0.5175, allocations: 0 / 1.385 GB, free: 9.727 MB / 0.8855 GB Notification: Performance of Templates: time 0.004028/0.5215, allocations: 1.515 MB / 1.386 GB, free: 8.219 MB / 0.8855 GB make -j1 -f Buildings_latest_Buildings.Occupants.Office.Blinds.Validation.Haldi2008BlindsTIn.makefile (rm -f Buildings_latest_Buildings.Occupants.Office.Blinds.Validation.Haldi2008BlindsTIn.pipe ; mkfifo Buildings_latest_Buildings.Occupants.Office.Blinds.Validation.Haldi2008BlindsTIn.pipe ; head -c 1048576 < Buildings_latest_Buildings.Occupants.Office.Blinds.Validation.Haldi2008BlindsTIn.pipe >> ../files/Buildings_latest_Buildings.Occupants.Office.Blinds.Validation.Haldi2008BlindsTIn.sim & ./Buildings_latest_Buildings.Occupants.Office.Blinds.Validation.Haldi2008BlindsTIn -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Occupants.Office.Blinds.Validation.Haldi2008BlindsTIn.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Occupants.Office.Blinds.Validation.Haldi2008BlindsTIn_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Occupants_Office_Blinds_Validation_Haldi2008BlindsTIn.csv","../files/Buildings_latest_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.f,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