Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTIn.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.Windows.Validation.Haldi2008WindowsTIn,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|win.TIn|win.occ|win.p|win.on",fileNamePrefix="Buildings_9_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_9_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTIn") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.409/2.409, allocations: 387.1 MB / 399.7 MB, free: 9.445 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.001963/0.001963, allocations: 180.9 kB / 492.3 MB, free: 0.5977 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.676/1.676, allocations: 221.3 MB / 0.7871 GB, free: 12.9 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.0009997/0.0009997, allocations: 96.27 kB / 0.9267 GB, free: 13.96 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.127e-05/3.131e-05, allocations: 0 / 1.073 GB, free: 180.4 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2917/0.2918, allocations: 142.3 MB / 1.212 GB, free: 38.53 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9696/1.261, allocations: 151.2 MB / 1.36 GB, free: 19.02 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002355/1.262, allocations: 88.44 kB / 1.36 GB, free: 19.02 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.009294/1.271, allocations: 3.013 MB / 1.363 GB, free: 34.56 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.883e-06/1.271, allocations: 0 / 1.363 GB, free: 34.56 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 7.213e-06/1.271, allocations: 0 / 1.363 GB, free: 34.56 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.0004323/1.272, allocations: 419.2 kB / 1.363 GB, free: 34.16 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.458e-05/1.272, allocations: 15.53 kB / 1.363 GB, free: 34.15 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.056e-05/1.272, allocations: 8.188 kB / 1.363 GB, free: 34.15 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.656e-05/1.272, allocations: 168.5 kB / 1.364 GB, free: 33.95 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.775e-05/1.272, allocations: 3.312 kB / 1.364 GB, free: 33.95 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.759e-05/1.272, allocations: 5.328 kB / 1.364 GB, free: 33.95 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001364/1.272, allocations: 58.45 kB / 1.364 GB, free: 33.92 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.967e-06/1.272, allocations: 1.266 kB / 1.364 GB, free: 33.92 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.642e-05/1.272, allocations: 0 / 1.364 GB, free: 33.92 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.553e-06/1.272, allocations: 11.72 kB / 1.364 GB, free: 33.91 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.064e-05/1.272, allocations: 19.36 kB / 1.364 GB, free: 33.91 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000585/1.273, allocations: 317 kB / 1.364 GB, free: 33.64 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 7.801e-05/1.273, allocations: 42.02 kB / 1.364 GB, free: 33.62 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.203e-05/1.273, allocations: 23.39 kB / 1.364 GB, free: 33.61 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.494e-05/1.273, allocations: 11.66 kB / 1.364 GB, free: 33.61 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001175/1.273, allocations: 70.06 kB / 1.364 GB, free: 33.55 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=7): time 1.513e-06/1.273, allocations: 0 / 1.364 GB, free: 33.55 MB / 0.8386 GB Notification: Performance of matching and sorting (n=7): time 0.0002149/1.273, allocations: 96.27 kB / 1.364 GB, free: 33.52 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.433e-05/1.273, allocations: 64.19 kB / 1.364 GB, free: 33.45 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.18e-05/1.273, allocations: 112.9 kB / 1.364 GB, free: 33.36 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.457e-05/1.273, allocations: 25.7 kB / 1.364 GB, free: 33.33 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 4.383e-05/1.273, allocations: 101.8 kB / 1.365 GB, free: 33.23 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 1.767e-05/1.273, allocations: 15.53 kB / 1.365 GB, free: 33.23 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.883e-06/1.273, allocations: 3.125 kB / 1.365 GB, free: 33.23 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 8.631e-05/1.273, allocations: 320.8 kB / 1.365 GB, free: 32.91 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.03e-05/1.274, allocations: 19.5 kB / 1.365 GB, free: 32.91 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.039e-05/1.274, allocations: 45.7 kB / 1.365 GB, free: 32.88 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.14e-05/1.274, allocations: 33.5 kB / 1.365 GB, free: 32.87 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.833e-06/1.274, allocations: 0 / 1.365 GB, free: 32.87 MB / 0.8386 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001439/1.274, allocations: 97.42 kB / 1.365 GB, free: 32.83 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.503e-05/1.274, allocations: 8.781 kB / 1.365 GB, free: 32.83 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.27e-06/1.274, allocations: 0 / 1.365 GB, free: 32.83 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.386e-05/1.274, allocations: 7.781 kB / 1.365 GB, free: 32.83 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.615e-05/1.274, allocations: 14.58 kB / 1.365 GB, free: 32.82 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.945e-06/1.274, allocations: 3.047 kB / 1.365 GB, free: 32.82 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.431e-05/1.274, allocations: 15.83 kB / 1.365 GB, free: 32.82 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.476e-05/1.274, allocations: 7.781 kB / 1.365 GB, free: 32.81 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 7.024e-05/1.274, allocations: 111 kB / 1.365 GB, free: 32.71 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.386e-05/1.274, allocations: 6.719 kB / 1.365 GB, free: 32.7 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.211e-05/1.274, allocations: 11.91 kB / 1.365 GB, free: 32.7 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.104e-06/1.274, allocations: 0 / 1.365 GB, free: 32.7 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.627e-06/1.274, allocations: 0 / 1.365 GB, free: 32.7 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.006e-06/1.274, allocations: 0 / 1.365 GB, free: 32.7 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003072/1.275, allocations: 367.4 kB / 1.366 GB, free: 32.39 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.084e-06/1.275, allocations: 3.984 kB / 1.366 GB, free: 32.39 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.27e-05/1.275, allocations: 6.641 kB / 1.366 GB, free: 32.39 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.587e-06/1.275, allocations: 3.844 kB / 1.366 GB, free: 32.39 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.105e-05/1.275, allocations: 0 / 1.366 GB, free: 32.39 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.243e-06/1.275, allocations: 0 / 1.366 GB, free: 32.39 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.465e-06/1.275, allocations: 5.5 kB / 1.366 GB, free: 32.38 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002133/1.275, allocations: 203.7 kB / 1.366 GB, free: 32.24 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 2.443e-05/1.275, allocations: 80.95 kB / 1.366 GB, free: 32.15 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.83e-05/1.275, allocations: 1.594 kB / 1.366 GB, free: 32.15 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.435e-05/1.275, allocations: 5.719 kB / 1.366 GB, free: 32.15 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.08e-05/1.275, allocations: 12.45 kB / 1.366 GB, free: 32.14 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.127e-06/1.275, allocations: 1.266 kB / 1.366 GB, free: 32.14 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 4.525e-05/1.275, allocations: 92.14 kB / 1.366 GB, free: 32.07 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.3e-07/1.275, allocations: 0 / 1.366 GB, free: 32.07 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0003191/1.275, allocations: 61.31 kB / 1.366 GB, free: 32.05 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.0003763/1.276, allocations: 171 kB / 1.366 GB, free: 31.95 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0001463/1.276, allocations: 57.28 kB / 1.366 GB, free: 31.94 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/1.276, allocations: 0 / 1.366 GB, free: 31.94 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 5.758e-05/1.276, allocations: 35.16 kB / 1.366 GB, free: 31.93 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001736/1.276, allocations: 9.656 kB / 1.366 GB, free: 31.93 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002756/1.277, allocations: 107.9 kB / 1.366 GB, free: 31.85 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002361/1.277, allocations: 0.6908 MB / 1.367 GB, free: 31.15 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 3.65e-05/1.277, allocations: 5.688 kB / 1.367 GB, free: 31.15 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.647e-05/1.277, allocations: 11.22 kB / 1.367 GB, free: 31.14 MB / 0.8386 GB Notification: Performance of SimCode: time 2.41e-07/1.277, allocations: 0 / 1.367 GB, free: 31.14 MB / 0.8386 GB Notification: Performance of Templates: time 0.004457/1.281, allocations: 1.538 MB / 1.369 GB, free: 31.01 MB / 0.8386 GB make -j1 -f Buildings_9_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTIn.makefile (rm -f Buildings_9_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTIn.pipe ; mkfifo Buildings_9_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTIn.pipe ; head -c 1048576 < Buildings_9_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTIn.pipe >> ../files/Buildings_9_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTIn.sim & ./Buildings_9_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTIn -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTIn.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTIn_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Occupants_Office_Windows_Validation_Haldi2008WindowsTIn.csv","../files/Buildings_9_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