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.451/2.451, allocations: 390.3 MB / 402.8 MB, free: 6.699 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.001133/0.001133, allocations: 180.8 kB / 496.1 MB, free: 12.87 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.58/1.58, allocations: 221.3 MB / 0.7915 GB, free: 5.453 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.001049/0.001049, allocations: 95.89 kB / 0.9317 GB, free: 5.766 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.829e-05/2.832e-05, allocations: 0 / 1.079 GB, free: 140.6 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3014/0.3014, allocations: 143 MB / 1.219 GB, free: 13.55 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.973/1.275, allocations: 152 MB / 1.367 GB, free: 2.02 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002608/1.275, allocations: 77.83 kB / 1.367 GB, free: 1.977 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.00947/1.284, allocations: 3.02 MB / 1.37 GB, free: 15.39 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.413e-06/1.284, allocations: 4 kB / 1.37 GB, free: 15.38 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 7.754e-06/1.284, allocations: 0 / 1.37 GB, free: 15.38 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.0005639/1.285, allocations: 412.2 kB / 1.371 GB, free: 14.93 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.863e-05/1.285, allocations: 8.031 kB / 1.371 GB, free: 14.93 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.069e-05/1.285, allocations: 7.953 kB / 1.371 GB, free: 14.92 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001614/1.285, allocations: 170.9 kB / 1.371 GB, free: 14.71 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.307e-05/1.285, allocations: 7.125 kB / 1.371 GB, free: 14.71 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.08e-05/1.285, allocations: 8 kB / 1.371 GB, free: 14.7 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001588/1.285, allocations: 64.64 kB / 1.371 GB, free: 14.64 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.208e-06/1.285, allocations: 3.938 kB / 1.371 GB, free: 14.64 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.319e-05/1.285, allocations: 3.984 kB / 1.371 GB, free: 14.63 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.953e-06/1.286, allocations: 0 / 1.371 GB, free: 14.63 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.719e-05/1.286, allocations: 26.44 kB / 1.371 GB, free: 14.62 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006808/1.286, allocations: 313.1 kB / 1.371 GB, free: 14.28 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 9.185e-05/1.286, allocations: 40.33 kB / 1.371 GB, free: 14.24 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.671e-05/1.286, allocations: 31.22 kB / 1.371 GB, free: 14.22 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.101e-05/1.286, allocations: 3.938 kB / 1.371 GB, free: 14.21 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001473/1.287, allocations: 69.33 kB / 1.371 GB, free: 14.14 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=7): time 1.562e-06/1.287, allocations: 4 kB / 1.371 GB, free: 14.14 MB / 0.8386 GB Notification: Performance of matching and sorting (n=7): time 0.0002618/1.287, allocations: 100.4 kB / 1.371 GB, free: 14.05 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.344e-05/1.287, allocations: 58.97 kB / 1.371 GB, free: 13.98 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001214/1.287, allocations: 107.7 kB / 1.372 GB, free: 13.88 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.057e-05/1.287, allocations: 29.7 kB / 1.372 GB, free: 13.84 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 6.896e-05/1.287, allocations: 93.73 kB / 1.372 GB, free: 13.75 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.684e-05/1.287, allocations: 22.48 kB / 1.372 GB, free: 13.73 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.035e-06/1.287, allocations: 3 kB / 1.372 GB, free: 13.73 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001921/1.287, allocations: 318.5 kB / 1.372 GB, free: 13.41 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.174e-05/1.287, allocations: 19.5 kB / 1.372 GB, free: 13.4 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.038e-05/1.288, allocations: 49.92 kB / 1.372 GB, free: 13.35 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.905e-05/1.288, allocations: 28.67 kB / 1.372 GB, free: 13.32 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.445e-06/1.288, allocations: 0 / 1.372 GB, free: 13.32 MB / 0.8386 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001699/1.288, allocations: 101.9 kB / 1.372 GB, free: 13.24 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.703e-05/1.288, allocations: 8 kB / 1.372 GB, free: 13.23 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.142e-06/1.288, allocations: 0 / 1.372 GB, free: 13.23 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.558e-05/1.288, allocations: 4 kB / 1.372 GB, free: 13.23 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001046/1.288, allocations: 15.98 kB / 1.372 GB, free: 13.21 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.375e-05/1.288, allocations: 7.953 kB / 1.372 GB, free: 13.2 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.873e-05/1.288, allocations: 11.91 kB / 1.372 GB, free: 13.19 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.653e-05/1.288, allocations: 4 kB / 1.372 GB, free: 13.19 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.269e-05/1.288, allocations: 111.9 kB / 1.372 GB, free: 13.07 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.315e-05/1.288, allocations: 7 kB / 1.372 GB, free: 13.07 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.117e-05/1.288, allocations: 8.625 kB / 1.372 GB, free: 13.06 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.653e-06/1.288, allocations: 0 / 1.372 GB, free: 13.06 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.671e-06/1.288, allocations: 0 / 1.372 GB, free: 13.06 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.04e-06/1.288, allocations: 3.953 kB / 1.372 GB, free: 13.05 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004109/1.289, allocations: 368.8 kB / 1.373 GB, free: 12.67 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-06/1.289, allocations: 0 / 1.373 GB, free: 12.67 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.308e-05/1.289, allocations: 8 kB / 1.373 GB, free: 12.66 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.944e-06/1.289, allocations: 4 kB / 1.373 GB, free: 12.66 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.269e-05/1.289, allocations: 3.984 kB / 1.373 GB, free: 12.66 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.815e-06/1.289, allocations: 3.953 kB / 1.373 GB, free: 12.65 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/1.289, allocations: 0 / 1.373 GB, free: 12.65 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002293/1.289, allocations: 196.4 kB / 1.373 GB, free: 12.46 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 3.948e-05/1.289, allocations: 81.11 kB / 1.373 GB, free: 12.37 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.913e-05/1.289, allocations: 3.984 kB / 1.373 GB, free: 12.36 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.696e-05/1.289, allocations: 8 kB / 1.373 GB, free: 12.36 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.441e-05/1.289, allocations: 19.34 kB / 1.373 GB, free: 12.34 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.486e-06/1.289, allocations: 0 / 1.373 GB, free: 12.34 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 6.301e-05/1.289, allocations: 93.39 kB / 1.373 GB, free: 12.25 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.3e-07/1.289, allocations: 0 / 1.373 GB, free: 12.25 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0003176/1.29, allocations: 55.11 kB / 1.373 GB, free: 12.2 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.000472/1.29, allocations: 172.7 kB / 1.373 GB, free: 12.05 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0001661/1.29, allocations: 62.73 kB / 1.373 GB, free: 12 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/1.29, allocations: 0 / 1.373 GB, free: 12 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 6.41e-05/1.29, allocations: 27 kB / 1.373 GB, free: 11.98 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001779/1.291, allocations: 11.23 kB / 1.373 GB, free: 11.97 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003002/1.291, allocations: 100.9 kB / 1.374 GB, free: 11.86 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003257/1.291, allocations: 0.6967 MB / 1.374 GB, free: 11.14 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 4.053e-05/1.291, allocations: 4.578 kB / 1.374 GB, free: 11.13 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.845e-05/1.291, allocations: 11.44 kB / 1.374 GB, free: 11.12 MB / 0.8386 GB Notification: Performance of SimCode: time 3.71e-07/1.291, allocations: 0 / 1.374 GB, free: 11.12 MB / 0.8386 GB Notification: Performance of Templates: time 0.004138/1.295, allocations: 1.542 MB / 1.376 GB, free: 9.594 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