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.306/2.306, allocations: 387.1 MB / 399.7 MB, free: 9.465 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.001171/0.001171, allocations: 180.9 kB / 492.3 MB, free: 0.6328 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.53/1.53, allocations: 221.3 MB / 0.7871 GB, free: 12.91 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.0008879/0.0008879, allocations: 85.95 kB / 0.9267 GB, free: 13.99 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.319e-05/3.321e-05, allocations: 4 kB / 1.073 GB, free: 180.4 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2733/0.2734, allocations: 142.3 MB / 1.212 GB, free: 38.56 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.005/1.279, allocations: 151.5 MB / 1.36 GB, free: 19.21 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002263/1.279, allocations: 77.7 kB / 1.36 GB, free: 19.21 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.01164/1.291, allocations: 3.646 MB / 1.364 GB, free: 34.7 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.733e-06/1.291, allocations: 0 / 1.364 GB, free: 34.7 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 6.973e-06/1.291, allocations: 0 / 1.364 GB, free: 34.7 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: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0005077/1.291, allocations: 472 kB / 1.364 GB, free: 34.25 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 5.769e-05/1.291, allocations: 7.688 kB / 1.364 GB, free: 34.25 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.532e-05/1.291, allocations: 11.72 kB / 1.364 GB, free: 34.25 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.065e-05/1.291, allocations: 186.7 kB / 1.365 GB, free: 34.04 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.785e-05/1.292, allocations: 7.25 kB / 1.365 GB, free: 34.04 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.313e-05/1.292, allocations: 3.812 kB / 1.365 GB, free: 34.04 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00019/1.292, allocations: 88.94 kB / 1.365 GB, free: 34 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.117e-06/1.292, allocations: 4 kB / 1.365 GB, free: 34 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.626e-05/1.292, allocations: 2.859 kB / 1.365 GB, free: 34 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.548e-06/1.292, allocations: 0 / 1.365 GB, free: 34 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.511e-05/1.292, allocations: 40.31 kB / 1.365 GB, free: 34 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007689/1.293, allocations: 377.2 kB / 1.365 GB, free: 33.72 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001015/1.293, allocations: 60.97 kB / 1.365 GB, free: 33.69 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.337e-05/1.293, allocations: 38.17 kB / 1.365 GB, free: 33.68 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.584e-05/1.293, allocations: 6.875 kB / 1.365 GB, free: 33.68 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001537/1.293, allocations: 89.48 kB / 1.365 GB, free: 33.63 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=9): time 1.462e-06/1.293, allocations: 4 kB / 1.365 GB, free: 33.63 MB / 0.8386 GB Notification: Performance of matching and sorting (n=9): time 0.0003056/1.293, allocations: 149.6 kB / 1.365 GB, free: 33.59 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.532e-05/1.293, allocations: 63.06 kB / 1.365 GB, free: 33.52 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.748e-05/1.294, allocations: 130.4 kB / 1.366 GB, free: 33.43 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.563e-05/1.294, allocations: 29.02 kB / 1.366 GB, free: 33.4 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 4.807e-05/1.294, allocations: 97.47 kB / 1.366 GB, free: 33.31 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 1.967e-05/1.294, allocations: 25.22 kB / 1.366 GB, free: 33.3 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.995e-06/1.294, allocations: 3.312 kB / 1.366 GB, free: 33.3 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 7.031e-05/1.294, allocations: 325.5 kB / 1.366 GB, free: 32.98 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.523e-05/1.294, allocations: 25.34 kB / 1.366 GB, free: 32.98 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.643e-05/1.294, allocations: 63.72 kB / 1.366 GB, free: 32.94 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.798e-05/1.294, allocations: 32.12 kB / 1.366 GB, free: 32.94 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.874e-06/1.294, allocations: 3.969 kB / 1.366 GB, free: 32.94 MB / 0.8386 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.000179/1.294, allocations: 134.7 kB / 1.366 GB, free: 32.89 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.6e-05/1.294, allocations: 10.33 kB / 1.366 GB, free: 32.89 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.911e-06/1.294, allocations: 3.938 kB / 1.366 GB, free: 32.89 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.505e-05/1.294, allocations: 3.812 kB / 1.366 GB, free: 32.89 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000136/1.294, allocations: 22.38 kB / 1.366 GB, free: 32.88 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.075e-06/1.294, allocations: 6.625 kB / 1.366 GB, free: 32.88 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.075e-05/1.294, allocations: 11.66 kB / 1.366 GB, free: 32.88 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.516e-05/1.294, allocations: 10.69 kB / 1.366 GB, free: 32.88 MB / 0.8386 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 () * 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 7.536e-05/1.295, allocations: 108.3 kB / 1.366 GB, free: 32.77 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.895e-05/1.295, allocations: 15.53 kB / 1.366 GB, free: 32.76 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.845e-05/1.295, allocations: 9.984 kB / 1.367 GB, free: 32.76 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.595e-06/1.295, allocations: 3.875 kB / 1.367 GB, free: 32.76 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.38e-06/1.295, allocations: 0 / 1.367 GB, free: 32.76 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.328e-06/1.295, allocations: 3.953 kB / 1.367 GB, free: 32.76 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004003/1.295, allocations: 437.8 kB / 1.367 GB, free: 32.46 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/1.295, allocations: 4.062 kB / 1.367 GB, free: 32.45 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.207e-05/1.295, allocations: 14.3 kB / 1.367 GB, free: 32.45 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.094e-06/1.295, allocations: 0 / 1.367 GB, free: 32.45 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.647e-05/1.295, allocations: 10.8 kB / 1.367 GB, free: 32.45 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.635e-06/1.295, allocations: 3.953 kB / 1.367 GB, free: 32.45 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/1.295, allocations: 0 / 1.367 GB, free: 32.45 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002428/1.295, allocations: 242.6 kB / 1.367 GB, free: 32.3 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 2.896e-05/1.295, allocations: 84.92 kB / 1.367 GB, free: 32.21 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.455e-05/1.295, allocations: 6.656 kB / 1.367 GB, free: 32.21 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001173/1.296, allocations: 8.984 kB / 1.367 GB, free: 32.21 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.872e-05/1.296, allocations: 10.59 kB / 1.367 GB, free: 32.2 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.401e-05/1.296, allocations: 7.25 kB / 1.367 GB, free: 32.2 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 5.615e-05/1.296, allocations: 104.2 kB / 1.367 GB, free: 32.13 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.3e-07/1.296, allocations: 192 / 1.367 GB, free: 32.13 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002972/1.296, allocations: 65.97 kB / 1.367 GB, free: 32.11 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: 7 (win.sampleTrigger,$whenCondition1,occ.y,win.on,win.pOpen,win.pClose,win.curSeed) * Number of discrete states: 1 (win.on) * 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.0003425/1.296, allocations: 175.2 kB / 1.368 GB, free: 32 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0001821/1.297, allocations: 93.89 kB / 1.368 GB, free: 31.99 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/1.297, allocations: 3.938 kB / 1.368 GB, free: 31.99 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 7.487e-05/1.297, allocations: 38.19 kB / 1.368 GB, free: 31.99 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001769/1.297, allocations: 16.44 kB / 1.368 GB, free: 31.98 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003189/1.297, allocations: 142.8 kB / 1.368 GB, free: 31.89 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002573/1.297, allocations: 0.6983 MB / 1.369 GB, free: 31.2 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 5.369e-05/1.298, allocations: 10.81 kB / 1.369 GB, free: 31.19 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.401e-05/1.298, allocations: 14.69 kB / 1.369 GB, free: 31.18 MB / 0.8386 GB Notification: Performance of SimCode: time 7.41e-07/1.298, allocations: 192 / 1.369 GB, free: 31.18 MB / 0.8386 GB Notification: Performance of Templates: time 0.0041/1.302, allocations: 1.989 MB / 1.371 GB, free: 31.02 MB / 0.8386 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