Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Occupants.Office.Windows.Validation.Haldi2009WindowsTInTout.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.Haldi2009WindowsTInTout,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|win.TOut|win.occ|win.pOpen|win.on",fileNamePrefix="Buildings_9_Buildings.Occupants.Office.Windows.Validation.Haldi2009WindowsTInTout") translateModel(Buildings.Occupants.Office.Windows.Validation.Haldi2009WindowsTInTout,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|win.TOut|win.occ|win.pOpen|win.on",fileNamePrefix="Buildings_9_Buildings.Occupants.Office.Windows.Validation.Haldi2009WindowsTInTout") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.468/2.468, allocations: 390.3 MB / 405.3 MB, free: 13.27 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.001192/0.001191, allocations: 185 kB / 498.1 MB, free: 5.52 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.722/1.722, allocations: 223.2 MB / 0.7949 GB, free: 17.89 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.000878/0.000878, allocations: 99.45 kB / 0.9346 GB, free: 6.168 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003214/0.0003214, allocations: 13.94 kB / 1.084 GB, free: 221.2 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2988/0.2991, allocations: 142.3 MB / 1.223 GB, free: 114.2 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2073/0.5065, allocations: 151.5 MB / 1.371 GB, free: 10.52 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002838/0.5068, allocations: 87.94 kB / 1.371 GB, free: 10.43 MB / 0.8698 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.01247/0.5193, allocations: 3.655 MB / 1.375 GB, free: 6.766 MB / 0.8698 GB Notification: Performance of FrontEnd: time 1.603e-06/0.5193, allocations: 0 / 1.375 GB, free: 6.766 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 6.802e-06/0.5194, allocations: 0 / 1.375 GB, free: 6.766 MB / 0.8698 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0007116/0.5201, allocations: 490.5 kB / 1.375 GB, free: 6.227 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 3.615e-05/0.5201, allocations: 11.97 kB / 1.375 GB, free: 6.215 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.813e-05/0.5202, allocations: 15.86 kB / 1.375 GB, free: 6.199 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001558/0.5203, allocations: 185.3 kB / 1.375 GB, free: 5.977 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.111e-05/0.5204, allocations: 8 kB / 1.375 GB, free: 5.969 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.151e-05/0.5204, allocations: 4 kB / 1.375 GB, free: 5.965 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002502/0.5207, allocations: 105.6 kB / 1.375 GB, free: 5.855 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.256e-06/0.5207, allocations: 0 / 1.375 GB, free: 5.855 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.706e-05/0.5207, allocations: 4 kB / 1.375 GB, free: 5.852 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.697e-06/0.5207, allocations: 0 / 1.375 GB, free: 5.852 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002108/0.5209, allocations: 71.95 kB / 1.375 GB, free: 5.781 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000882/0.5218, allocations: 372.6 kB / 1.376 GB, free: 5.367 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001728/0.522, allocations: 74.55 kB / 1.376 GB, free: 5.285 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 2.302e-05/0.522, allocations: 4 kB / 1.376 GB, free: 5.281 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002274/0.5223, allocations: 107.3 kB / 1.376 GB, free: 5.164 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=9): time 1.693e-06/0.5223, allocations: 4 kB / 1.376 GB, free: 5.16 MB / 0.8698 GB Notification: Performance of matching and sorting (n=9): time 0.0006601/0.523, allocations: 229.5 kB / 1.376 GB, free: 4.93 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.87e-05/0.523, allocations: 59.34 kB / 1.376 GB, free: 4.859 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001251/0.5231, allocations: 131.2 kB / 1.376 GB, free: 4.727 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 2.223e-05/0.5232, allocations: 29.7 kB / 1.376 GB, free: 4.691 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 6.505e-05/0.5232, allocations: 104.3 kB / 1.376 GB, free: 4.582 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 2.574e-05/0.5233, allocations: 23.89 kB / 1.376 GB, free: 4.559 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.755e-06/0.5233, allocations: 0 / 1.376 GB, free: 4.559 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0001289/0.5234, allocations: 326.8 kB / 1.377 GB, free: 4.23 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001253/0.5236, allocations: 43.97 kB / 1.377 GB, free: 4.188 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001378/0.5237, allocations: 76.27 kB / 1.377 GB, free: 4.098 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001464/0.5239, allocations: 55.97 kB / 1.377 GB, free: 4.043 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.914e-06/0.5239, allocations: 0 / 1.377 GB, free: 4.043 MB / 0.8698 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0003513/0.5242, allocations: 165.3 kB / 1.377 GB, free: 3.875 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 1.464e-05/0.5243, allocations: 12.47 kB / 1.377 GB, free: 3.863 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.609e-06/0.5243, allocations: 0 / 1.377 GB, free: 3.863 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.449e-05/0.5243, allocations: 4 kB / 1.377 GB, free: 3.859 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001503/0.5244, allocations: 23.88 kB / 1.377 GB, free: 3.836 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.36e-05/0.5245, allocations: 11.92 kB / 1.377 GB, free: 3.824 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001102/0.5246, allocations: 8 kB / 1.377 GB, free: 3.816 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.644e-05/0.5246, allocations: 4 kB / 1.377 GB, free: 3.812 MB / 0.8698 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 11 ($PRE.win.curSeed,win.curSeed,$PRE.win.on,win.on,occ.y,$PRE.win.pOpen,win.pOpen,$PRE.win.pClose,win.pClose,$whenCondition1,win.sampleTrigger) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (14): * Single equations (assignments): 14 * 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 0.0001012/0.5247, allocations: 129.8 kB / 1.377 GB, free: 3.676 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.212e-05/0.5247, allocations: 11.94 kB / 1.377 GB, free: 3.664 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.159e-05/0.5248, allocations: 8.719 kB / 1.377 GB, free: 3.652 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.417e-06/0.5248, allocations: 4 kB / 1.377 GB, free: 3.648 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.869e-06/0.5248, allocations: 3.953 kB / 1.377 GB, free: 3.645 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.048e-06/0.5248, allocations: 64 / 1.377 GB, free: 3.645 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006306/0.5254, allocations: 478.2 kB / 1.378 GB, free: 3.121 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.5255, allocations: 0 / 1.378 GB, free: 3.121 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.805e-05/0.5255, allocations: 11.98 kB / 1.378 GB, free: 3.109 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.006e-06/0.5255, allocations: 0 / 1.378 GB, free: 3.109 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.999e-05/0.5256, allocations: 11.94 kB / 1.378 GB, free: 3.098 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.533e-06/0.5256, allocations: 0 / 1.378 GB, free: 3.098 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.5256, allocations: 4 kB / 1.378 GB, free: 3.094 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004073/0.526, allocations: 276.2 kB / 1.378 GB, free: 2.809 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 3.951e-05/0.526, allocations: 81.02 kB / 1.378 GB, free: 2.711 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.766e-05/0.5261, allocations: 4 kB / 1.378 GB, free: 2.707 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001308/0.5262, allocations: 15.94 kB / 1.378 GB, free: 2.691 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.57e-05/0.5263, allocations: 15.92 kB / 1.378 GB, free: 2.676 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.465e-05/0.5263, allocations: 4 kB / 1.378 GB, free: 2.672 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 7.176e-05/0.5264, allocations: 109.5 kB / 1.378 GB, free: 2.566 MB / 0.8698 GB Notification: Performance of sort global known variables: time 1.31e-07/0.5264, allocations: 0 / 1.378 GB, free: 2.566 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.0003442/0.5267, allocations: 55.94 kB / 1.378 GB, free: 2.512 MB / 0.8698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 7 (win.sampleTrigger,$whenCondition1,occ.y,win.on,win.pOpen,win.pClose,win.curSeed) * Number of discrete states: 1 (win.on) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.0003682/0.5271, allocations: 185 kB / 1.378 GB, free: 2.34 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.0003275/0.5274, allocations: 116 kB / 1.379 GB, free: 2.227 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.5274, allocations: 4 kB / 1.379 GB, free: 2.223 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.000153/0.5276, allocations: 59.97 kB / 1.379 GB, free: 2.164 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001865/0.5278, allocations: 8 kB / 1.379 GB, free: 2.156 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004798/0.5283, allocations: 257.3 kB / 1.379 GB, free: 1.871 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002609/0.5286, allocations: 0.7004 MB / 1.38 GB, free: 1.145 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 6.293e-05/0.5286, allocations: 16.08 kB / 1.38 GB, free: 1.129 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.522e-05/0.5287, allocations: 15.38 kB / 1.38 GB, free: 1.113 MB / 0.8698 GB Notification: Performance of SimCode: time 2.4e-07/0.5287, allocations: 0 / 1.38 GB, free: 1.113 MB / 0.8698 GB Notification: Performance of Templates: time 0.004766/0.5335, allocations: 1.971 MB / 1.382 GB, free: 15.15 MB / 0.8855 GB make -j1 -f Buildings_9_Buildings.Occupants.Office.Windows.Validation.Haldi2009WindowsTInTout.makefile (rm -f Buildings_9_Buildings.Occupants.Office.Windows.Validation.Haldi2009WindowsTInTout.pipe ; mkfifo Buildings_9_Buildings.Occupants.Office.Windows.Validation.Haldi2009WindowsTInTout.pipe ; head -c 1048576 < Buildings_9_Buildings.Occupants.Office.Windows.Validation.Haldi2009WindowsTInTout.pipe >> ../files/Buildings_9_Buildings.Occupants.Office.Windows.Validation.Haldi2009WindowsTInTout.sim & ./Buildings_9_Buildings.Occupants.Office.Windows.Validation.Haldi2009WindowsTInTout -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Occupants.Office.Windows.Validation.Haldi2009WindowsTInTout.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Occupants.Office.Windows.Validation.Haldi2009WindowsTInTout_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Occupants_Office_Windows_Validation_Haldi2009WindowsTInTout.csv","../files/Buildings_9_Buildings.Occupants.Office.Windows.Validation.Haldi2009WindowsTInTout.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,win.TOut,win.occ,win.pOpen,win.on Variables in the result:TIn.amplitude,TIn.f,TIn.offset,TIn.phase,TIn.startTime,TOut.amplitude,TOut.f,TOut.offset,TOut.phase,TOut.startTime,occ.startTime,occ.startValue,occ.y,time,win.ACloseIn,win.ACloseOut,win.AOpenIn,win.AOpenOut,win.BClose,win.BOpen,win.TOut,win.occ,win.on,win.pOpen,win.samplePeriod,win.seed,win.t0