Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTIn.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.Windows.Validation.Haldi2008WindowsTIn,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|win.TIn|win.occ|win.p|win.on",fileNamePrefix="Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTIn") translateModel(Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTIn,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|win.TIn|win.occ|win.p|win.on",fileNamePrefix="Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTIn") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.261/2.261, allocations: 390.5 MB / 398 MB, free: 10.94 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.001009/0.001009, allocations: 172.9 kB / 491.2 MB, free: 1.598 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.553/1.553, allocations: 221.5 MB / 0.7868 GB, free: 13.34 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.0008566/0.0008571, allocations: 97.52 kB / 0.9269 GB, free: 13.85 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 1.398e-05/1.381e-05, allocations: 4 kB / 1.073 GB, free: 182.1 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3349/0.335, allocations: 143 MB / 1.212 GB, free: 39.57 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.045/1.38, allocations: 151.3 MB / 1.36 GB, free: 17.66 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002937/1.38, allocations: 77.91 kB / 1.36 GB, free: 17.66 MB / 0.823 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.01001/1.39, allocations: 3.008 MB / 1.363 GB, free: 33.2 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.543e-06/1.39, allocations: 0 / 1.363 GB, free: 33.2 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 6.853e-06/1.39, allocations: 0 / 1.363 GB, free: 33.2 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0004902/1.391, allocations: 407.1 kB / 1.363 GB, free: 32.8 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.795e-05/1.391, allocations: 11.53 kB / 1.363 GB, free: 32.8 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.21e-05/1.391, allocations: 15.67 kB / 1.364 GB, free: 32.79 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001055/1.391, allocations: 180.2 kB / 1.364 GB, free: 32.58 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.801e-05/1.391, allocations: 0 / 1.364 GB, free: 32.58 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.675e-05/1.391, allocations: 4.438 kB / 1.364 GB, free: 32.58 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.29e-05/1.391, allocations: 19.42 kB / 1.364 GB, free: 32.58 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001201/1.391, allocations: 59.75 kB / 1.364 GB, free: 32.55 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.099e-05/1.391, allocations: 0 / 1.364 GB, free: 32.55 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.51e-05/1.391, allocations: 0 / 1.364 GB, free: 32.55 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.941e-06/1.391, allocations: 0 / 1.364 GB, free: 32.55 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006476/1.392, allocations: 302.1 kB / 1.364 GB, free: 32.3 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 8.151e-05/1.392, allocations: 32.89 kB / 1.364 GB, free: 32.28 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.365e-05/1.392, allocations: 26.05 kB / 1.364 GB, free: 32.27 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.676e-05/1.392, allocations: 0 / 1.364 GB, free: 32.27 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001284/1.392, allocations: 76.95 kB / 1.364 GB, free: 32.22 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=7): time 1.212e-06/1.392, allocations: 0 / 1.364 GB, free: 32.22 MB / 0.8386 GB Notification: Performance of matching and sorting (n=7): time 0.0002895/1.393, allocations: 95.48 kB / 1.364 GB, free: 32.18 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.703e-05/1.393, allocations: 55.36 kB / 1.364 GB, free: 32.12 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001182/1.393, allocations: 108.7 kB / 1.364 GB, free: 32.03 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.181e-05/1.393, allocations: 34.61 kB / 1.364 GB, free: 32 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 8.379e-05/1.393, allocations: 93.97 kB / 1.365 GB, free: 31.9 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.367e-05/1.393, allocations: 11.66 kB / 1.365 GB, free: 31.89 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.426e-06/1.393, allocations: 7.75 kB / 1.365 GB, free: 31.89 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001576/1.393, allocations: 317.5 kB / 1.365 GB, free: 31.58 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.631e-05/1.393, allocations: 16.48 kB / 1.365 GB, free: 31.58 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.142e-05/1.393, allocations: 42.69 kB / 1.365 GB, free: 31.55 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.253e-05/1.393, allocations: 21.75 kB / 1.365 GB, free: 31.55 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.126e-06/1.393, allocations: 7.812 kB / 1.365 GB, free: 31.54 MB / 0.8386 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001471/1.393, allocations: 91.06 kB / 1.365 GB, free: 31.5 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.914e-05/1.393, allocations: 6.734 kB / 1.365 GB, free: 31.5 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.251e-06/1.393, allocations: 3.844 kB / 1.365 GB, free: 31.5 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.577e-05/1.393, allocations: 0 / 1.365 GB, free: 31.5 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.919e-05/1.394, allocations: 18.89 kB / 1.365 GB, free: 31.5 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.939e-06/1.394, allocations: 0 / 1.365 GB, free: 31.5 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.622e-05/1.394, allocations: 12.89 kB / 1.365 GB, free: 31.49 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.472e-05/1.394, allocations: 5.172 kB / 1.365 GB, free: 31.49 MB / 0.8386 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 9 ($PRE.win.curSeed,win.curSeed,occ.y,$PRE.win.on,win.on,$PRE.win.p,win.p,$whenCondition1,win.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.466e-05/1.394, allocations: 113.2 kB / 1.365 GB, free: 31.38 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.389e-05/1.394, allocations: 7.875 kB / 1.365 GB, free: 31.38 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.71e-05/1.394, allocations: 6.359 kB / 1.365 GB, free: 31.38 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.154e-06/1.394, allocations: 0 / 1.365 GB, free: 31.38 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.153e-06/1.394, allocations: 3.875 kB / 1.365 GB, free: 31.38 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.382e-06/1.394, allocations: 1.5 kB / 1.365 GB, free: 31.38 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003489/1.394, allocations: 336.5 kB / 1.366 GB, free: 31.11 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.142e-06/1.394, allocations: 4 kB / 1.366 GB, free: 31.1 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.374e-05/1.394, allocations: 10.61 kB / 1.366 GB, free: 31.1 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.804e-06/1.394, allocations: 0 / 1.366 GB, free: 31.1 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.541e-05/1.394, allocations: 0.875 kB / 1.366 GB, free: 31.1 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.074e-06/1.394, allocations: 1.312 kB / 1.366 GB, free: 31.1 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.677e-06/1.394, allocations: 0 / 1.366 GB, free: 31.1 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002223/1.395, allocations: 205.8 kB / 1.366 GB, free: 30.96 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 3.212e-05/1.395, allocations: 78.7 kB / 1.366 GB, free: 30.86 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.266e-05/1.395, allocations: 7.922 kB / 1.366 GB, free: 30.86 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.745e-05/1.395, allocations: 17.38 kB / 1.366 GB, free: 30.85 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.953e-05/1.395, allocations: 7.266 kB / 1.366 GB, free: 30.85 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.131e-05/1.395, allocations: 3.844 kB / 1.366 GB, free: 30.85 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 5.167e-05/1.395, allocations: 88.28 kB / 1.366 GB, free: 30.77 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.2e-07/1.395, allocations: 0 / 1.366 GB, free: 30.77 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0003373/1.395, allocations: 59.39 kB / 1.366 GB, free: 30.75 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: 6 (win.sampleTrigger,$whenCondition1,occ.y,win.on,win.p,win.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.0004845/1.396, allocations: 164.1 kB / 1.366 GB, free: 30.64 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0001515/1.396, allocations: 51.38 kB / 1.366 GB, free: 30.64 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 5.16e-06/1.396, allocations: 3.844 kB / 1.366 GB, free: 30.64 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 5.638e-05/1.396, allocations: 24.22 kB / 1.366 GB, free: 30.64 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001826/1.396, allocations: 8.844 kB / 1.366 GB, free: 30.63 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002691/1.396, allocations: 104.8 kB / 1.366 GB, free: 30.55 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002772/1.397, allocations: 0.6893 MB / 1.367 GB, free: 29.86 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 3.692e-05/1.397, allocations: 5.406 kB / 1.367 GB, free: 29.86 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.506e-05/1.397, allocations: 11.28 kB / 1.367 GB, free: 29.85 MB / 0.8386 GB Notification: Performance of SimCode: time 2.2e-07/1.397, allocations: 0 / 1.367 GB, free: 29.85 MB / 0.8386 GB Notification: Performance of Templates: time 0.004286/1.401, allocations: 1.502 MB / 1.368 GB, free: 29.7 MB / 0.8386 GB make -j1 -f Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTIn.makefile (rm -f Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTIn.pipe ; mkfifo Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTIn.pipe ; head -c 1048576 < Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTIn.pipe >> ../files/Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTIn.sim & ./Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTIn -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTIn.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTIn_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Occupants_Office_Windows_Validation_Haldi2008WindowsTIn.csv","../files/Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTIn.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,win.TIn,win.occ,win.p,win.on Variables in the result:TIn.amplitude,TIn.f,TIn.offset,TIn.phase,TIn.startTime,occ.startTime,occ.startValue,occ.y,time,win.A,win.B,win.TIn,win.occ,win.on,win.p,win.samplePeriod,win.seed,win.t0