Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Occupants.Office.Windows.Validation.Yun2008WindowsTIn.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.Yun2008WindowsTIn,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|win.TIn|win.occ|win.pOpen|win.on",fileNamePrefix="Buildings_9_Buildings.Occupants.Office.Windows.Validation.Yun2008WindowsTIn") translateModel(Buildings.Occupants.Office.Windows.Validation.Yun2008WindowsTIn,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|win.TIn|win.occ|win.pOpen|win.on",fileNamePrefix="Buildings_9_Buildings.Occupants.Office.Windows.Validation.Yun2008WindowsTIn") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.053/2.053, allocations: 387.4 MB / 394.9 MB, free: 13.36 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.0009748/0.0009748, allocations: 176.9 kB / 487.4 MB, free: 5.047 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.331/1.331, allocations: 221.5 MB / 0.7824 GB, free: 0.9727 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008982/0.0008984, allocations: 103.5 kB / 0.9219 GB, free: 2.215 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 2.028e-05/2.03e-05, allocations: 8 kB / 1.067 GB, free: 185.7 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2127/0.2128, allocations: 142.4 MB / 1.206 GB, free: 43.95 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7247/0.9375, allocations: 150.8 MB / 1.353 GB, free: 18.38 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001931/0.9377, allocations: 86.66 kB / 1.353 GB, free: 18.38 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.009494/0.9472, allocations: 3.246 MB / 1.356 GB, free: 33.92 MB / 0.8386 GB Notification: Performance of FrontEnd: time 8.92e-07/0.9472, allocations: 4 kB / 1.356 GB, free: 33.92 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 7.684e-06/0.9472, allocations: 3.812 kB / 1.357 GB, free: 33.92 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0004118/0.9477, allocations: 448.8 kB / 1.357 GB, free: 33.48 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.53e-05/0.9477, allocations: 7.688 kB / 1.357 GB, free: 33.48 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.725e-05/0.9477, allocations: 11.67 kB / 1.357 GB, free: 33.47 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.331e-05/0.9478, allocations: 167 kB / 1.357 GB, free: 33.27 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.185e-05/0.9479, allocations: 3.812 kB / 1.357 GB, free: 33.27 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.876e-05/0.9479, allocations: 7.906 kB / 1.357 GB, free: 33.27 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.727e-05/0.948, allocations: 35.33 kB / 1.357 GB, free: 33.27 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001086/0.9481, allocations: 70.64 kB / 1.357 GB, free: 33.23 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.442e-06/0.9481, allocations: 0 / 1.357 GB, free: 33.23 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.376e-05/0.9481, allocations: 3.875 kB / 1.357 GB, free: 33.23 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.699e-06/0.9481, allocations: 3.875 kB / 1.357 GB, free: 33.23 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006055/0.9487, allocations: 326.8 kB / 1.358 GB, free: 32.98 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 7.433e-05/0.9488, allocations: 54.75 kB / 1.358 GB, free: 32.95 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.747e-05/0.9489, allocations: 31.27 kB / 1.358 GB, free: 32.95 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.914e-05/0.9489, allocations: 10.12 kB / 1.358 GB, free: 32.95 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001063/0.949, allocations: 79.05 kB / 1.358 GB, free: 32.89 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=8): time 2.154e-06/0.949, allocations: 3.984 kB / 1.358 GB, free: 32.89 MB / 0.8386 GB Notification: Performance of matching and sorting (n=8): time 0.0002498/0.9493, allocations: 130.6 kB / 1.358 GB, free: 32.85 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.118e-05/0.9493, allocations: 55.25 kB / 1.358 GB, free: 32.79 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.874e-05/0.9494, allocations: 107.2 kB / 1.358 GB, free: 32.7 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.184e-05/0.9494, allocations: 29.45 kB / 1.358 GB, free: 32.67 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 5.038e-05/0.9495, allocations: 90.64 kB / 1.358 GB, free: 32.59 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 1.634e-05/0.9495, allocations: 19.09 kB / 1.358 GB, free: 32.57 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.981e-06/0.9495, allocations: 3.938 kB / 1.358 GB, free: 32.57 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 9.582e-05/0.9496, allocations: 329.6 kB / 1.358 GB, free: 32.25 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.425e-05/0.9496, allocations: 17.97 kB / 1.358 GB, free: 32.25 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.356e-05/0.9497, allocations: 54.42 kB / 1.359 GB, free: 32.21 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.43e-05/0.9497, allocations: 21.89 kB / 1.359 GB, free: 32.21 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.9497, allocations: 0 / 1.359 GB, free: 32.21 MB / 0.8386 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001297/0.9499, allocations: 110.7 kB / 1.359 GB, free: 32.17 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 9.839e-06/0.9499, allocations: 3.844 kB / 1.359 GB, free: 32.17 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.248e-06/0.9499, allocations: 0 / 1.359 GB, free: 32.17 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.229e-05/0.9499, allocations: 3.969 kB / 1.359 GB, free: 32.17 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.743e-05/0.95, allocations: 19.22 kB / 1.359 GB, free: 32.16 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.997e-06/0.95, allocations: 0 / 1.359 GB, free: 32.16 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.545e-05/0.9501, allocations: 10.97 kB / 1.359 GB, free: 32.16 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.237e-05/0.9501, allocations: 7.5 kB / 1.359 GB, free: 32.16 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 (13): * Single equations (assignments): 13 * 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.905e-05/0.9502, allocations: 120.7 kB / 1.359 GB, free: 32.04 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.438e-05/0.9502, allocations: 7.594 kB / 1.359 GB, free: 32.04 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.341e-05/0.9503, allocations: 11.05 kB / 1.359 GB, free: 32.04 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.323e-06/0.9503, allocations: 0 / 1.359 GB, free: 32.04 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.226e-06/0.9503, allocations: 0 / 1.359 GB, free: 32.04 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.296e-06/0.9503, allocations: 3.969 kB / 1.359 GB, free: 32.04 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000309/0.9506, allocations: 373.7 kB / 1.359 GB, free: 31.77 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.293e-06/0.9506, allocations: 4 kB / 1.359 GB, free: 31.77 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.05e-05/0.9506, allocations: 8.188 kB / 1.359 GB, free: 31.77 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.903e-06/0.9507, allocations: 0 / 1.359 GB, free: 31.77 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.312e-05/0.9507, allocations: 6.578 kB / 1.359 GB, free: 31.77 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.313e-06/0.9507, allocations: 11.81 kB / 1.359 GB, free: 31.76 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.9507, allocations: 0 / 1.359 GB, free: 31.76 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000206/0.9509, allocations: 219.8 kB / 1.359 GB, free: 31.62 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 1.831e-05/0.9509, allocations: 88.83 kB / 1.359 GB, free: 31.52 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.412e-05/0.951, allocations: 2.953 kB / 1.359 GB, free: 31.52 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001056/0.9511, allocations: 6.031 kB / 1.36 GB, free: 31.52 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.987e-05/0.9511, allocations: 6.438 kB / 1.36 GB, free: 31.52 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.153e-05/0.9511, allocations: 10.31 kB / 1.36 GB, free: 31.52 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 4.059e-05/0.9512, allocations: 87.19 kB / 1.36 GB, free: 31.45 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.5e-07/0.9512, allocations: 0 / 1.36 GB, free: 31.45 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002746/0.9514, allocations: 52.83 kB / 1.36 GB, free: 31.44 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 (8): * Single equations (assignments): 4 * 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.0002891/0.9517, allocations: 179.3 kB / 1.36 GB, free: 31.31 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0001289/0.9519, allocations: 74.14 kB / 1.36 GB, free: 31.31 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.272e-06/0.9519, allocations: 0 / 1.36 GB, free: 31.31 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 5.221e-05/0.9519, allocations: 32.03 kB / 1.36 GB, free: 31.31 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001655/0.9521, allocations: 14.48 kB / 1.36 GB, free: 31.3 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002264/0.9524, allocations: 112.5 kB / 1.36 GB, free: 31.23 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002163/0.9526, allocations: 0.6908 MB / 1.361 GB, free: 30.53 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 3.7e-05/0.9526, allocations: 3.844 kB / 1.361 GB, free: 30.53 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.315e-05/0.9526, allocations: 13.95 kB / 1.361 GB, free: 30.52 MB / 0.8386 GB Notification: Performance of SimCode: time 7.31e-07/0.9527, allocations: 4 kB / 1.361 GB, free: 30.52 MB / 0.8386 GB Notification: Performance of Templates: time 0.003415/0.9561, allocations: 1.778 MB / 1.362 GB, free: 30.35 MB / 0.8386 GB make -j1 -f Buildings_9_Buildings.Occupants.Office.Windows.Validation.Yun2008WindowsTIn.makefile (rm -f Buildings_9_Buildings.Occupants.Office.Windows.Validation.Yun2008WindowsTIn.pipe ; mkfifo Buildings_9_Buildings.Occupants.Office.Windows.Validation.Yun2008WindowsTIn.pipe ; head -c 1048576 < Buildings_9_Buildings.Occupants.Office.Windows.Validation.Yun2008WindowsTIn.pipe >> ../files/Buildings_9_Buildings.Occupants.Office.Windows.Validation.Yun2008WindowsTIn.sim & ./Buildings_9_Buildings.Occupants.Office.Windows.Validation.Yun2008WindowsTIn -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Occupants.Office.Windows.Validation.Yun2008WindowsTIn.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Occupants.Office.Windows.Validation.Yun2008WindowsTIn_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Occupants_Office_Windows_Validation_Yun2008WindowsTIn.csv","../files/Buildings_9_Buildings.Occupants.Office.Windows.Validation.Yun2008WindowsTIn.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,win.TIn,win.occ,win.pOpen,win.on Variables in the result:TIn.amplitude,TIn.f,TIn.offset,TIn.phase,TIn.startTime,occ.startTime,occ.startValue,occ.y,time,win.AClose,win.AOpen,win.BClose,win.BOpen,win.TIn,win.occ,win.on,win.pOpen,win.samplePeriod,win.seed,win.t0