Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.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.Zhang2012WindowsWest,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|win.TOut|win.occ|win.p|win.on",fileNamePrefix="Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest") translateModel(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|win.TOut|win.occ|win.p|win.on",fileNamePrefix="Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.396/2.396, allocations: 390.5 MB / 398 MB, free: 10.97 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.001244/0.001244, allocations: 179.8 kB / 491.2 MB, free: 1.598 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.757/1.757, allocations: 221.5 MB / 0.7868 GB, free: 13.26 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.0009959/0.0009959, allocations: 95.83 kB / 0.9269 GB, free: 13.77 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 1.668e-05/1.701e-05, allocations: 4 kB / 1.073 GB, free: 182.1 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2926/0.2927, allocations: 143 MB / 1.212 GB, free: 39.56 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9517/1.244, allocations: 151.3 MB / 1.36 GB, free: 17.57 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001806/1.245, allocations: 83.64 kB / 1.36 GB, free: 17.57 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.008524/1.253, allocations: 3 MB / 1.363 GB, free: 33.11 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.683e-06/1.253, allocations: 0 / 1.363 GB, free: 33.11 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 6.442e-06/1.253, allocations: 0 / 1.363 GB, free: 33.11 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.0004387/1.254, allocations: 407.8 kB / 1.363 GB, free: 32.71 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.687e-05/1.254, allocations: 7.688 kB / 1.363 GB, free: 32.71 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.92e-05/1.254, allocations: 18.95 kB / 1.363 GB, free: 32.7 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.448e-05/1.254, allocations: 172.1 kB / 1.364 GB, free: 32.5 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.421e-05/1.254, allocations: 3.781 kB / 1.364 GB, free: 32.5 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.94e-05/1.254, allocations: 5.25 kB / 1.364 GB, free: 32.5 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.366e-05/1.254, allocations: 17.28 kB / 1.364 GB, free: 32.5 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.211e-05/1.254, allocations: 55.78 kB / 1.364 GB, free: 32.47 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.626e-06/1.254, allocations: 3.875 kB / 1.364 GB, free: 32.47 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.202e-05/1.254, allocations: 0 / 1.364 GB, free: 32.47 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.566e-06/1.254, allocations: 0.5625 kB / 1.364 GB, free: 32.47 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005323/1.255, allocations: 295.6 kB / 1.364 GB, free: 32.23 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 6.502e-05/1.255, allocations: 40.55 kB / 1.364 GB, free: 32.2 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.722e-05/1.255, allocations: 24.78 kB / 1.364 GB, free: 32.2 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.142e-05/1.255, allocations: 0 / 1.364 GB, free: 32.2 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001044/1.255, allocations: 68.14 kB / 1.364 GB, free: 32.14 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=7): time 1.292e-06/1.255, allocations: 7.75 kB / 1.364 GB, free: 32.14 MB / 0.8386 GB Notification: Performance of matching and sorting (n=7): time 0.0002391/1.255, allocations: 89.83 kB / 1.364 GB, free: 32.11 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.769e-05/1.255, allocations: 64.83 kB / 1.364 GB, free: 32.04 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.972e-05/1.255, allocations: 107 kB / 1.364 GB, free: 31.95 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.224e-05/1.255, allocations: 29.27 kB / 1.364 GB, free: 31.91 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 4.811e-05/1.255, allocations: 95.8 kB / 1.365 GB, free: 31.82 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 1.642e-05/1.255, allocations: 25.09 kB / 1.365 GB, free: 31.81 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.031e-06/1.255, allocations: 0 / 1.365 GB, free: 31.81 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 7.55e-05/1.256, allocations: 315 kB / 1.365 GB, free: 31.5 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.305e-05/1.256, allocations: 18.47 kB / 1.365 GB, free: 31.5 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.798e-05/1.256, allocations: 36.97 kB / 1.365 GB, free: 31.47 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.6e-05/1.256, allocations: 28.55 kB / 1.365 GB, free: 31.46 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/1.256, allocations: 4 kB / 1.365 GB, free: 31.46 MB / 0.8386 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001401/1.256, allocations: 87.8 kB / 1.365 GB, free: 31.43 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.2e-05/1.256, allocations: 3.75 kB / 1.365 GB, free: 31.43 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.938e-06/1.256, allocations: 0 / 1.365 GB, free: 31.43 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.31e-05/1.256, allocations: 5.172 kB / 1.365 GB, free: 31.43 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.555e-05/1.256, allocations: 17.12 kB / 1.365 GB, free: 31.43 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.977e-06/1.256, allocations: 0 / 1.365 GB, free: 31.43 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.369e-05/1.256, allocations: 17.19 kB / 1.365 GB, free: 31.42 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.222e-05/1.256, allocations: 3.938 kB / 1.365 GB, free: 31.41 MB / 0.8386 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 9 (occ.y,$PRE.win.on,win.on,$PRE.win.p,win.p,$PRE.win.curSeed,win.curSeed,$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.242e-05/1.256, allocations: 115.1 kB / 1.365 GB, free: 31.3 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.318e-05/1.256, allocations: 7.781 kB / 1.365 GB, free: 31.3 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.902e-05/1.256, allocations: 9.609 kB / 1.365 GB, free: 31.29 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.452e-06/1.256, allocations: 3.969 kB / 1.365 GB, free: 31.29 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.536e-06/1.256, allocations: 0 / 1.365 GB, free: 31.29 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.956e-06/1.256, allocations: 0 / 1.365 GB, free: 31.29 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002849/1.257, allocations: 341.2 kB / 1.366 GB, free: 31.02 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.272e-06/1.257, allocations: 4 kB / 1.366 GB, free: 31.02 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.243e-05/1.257, allocations: 5.859 kB / 1.366 GB, free: 31.02 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.144e-06/1.257, allocations: 0 / 1.366 GB, free: 31.02 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.134e-05/1.257, allocations: 1.688 kB / 1.366 GB, free: 31.02 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/1.257, allocations: 3.969 kB / 1.366 GB, free: 31.02 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.294e-06/1.257, allocations: 0 / 1.366 GB, free: 31.02 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000176/1.257, allocations: 191.1 kB / 1.366 GB, free: 30.88 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 2.215e-05/1.257, allocations: 80.95 kB / 1.366 GB, free: 30.79 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.92e-05/1.257, allocations: 4 kB / 1.366 GB, free: 30.79 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.663e-05/1.257, allocations: 5.391 kB / 1.366 GB, free: 30.79 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.714e-05/1.257, allocations: 6.781 kB / 1.366 GB, free: 30.79 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.185e-06/1.257, allocations: 0 / 1.366 GB, free: 30.79 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 3.722e-05/1.257, allocations: 92.66 kB / 1.366 GB, free: 30.71 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.41e-07/1.257, allocations: 0 / 1.366 GB, free: 30.71 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0003192/1.257, allocations: 64.11 kB / 1.366 GB, free: 30.69 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.0003454/1.258, allocations: 168.8 kB / 1.366 GB, free: 30.57 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0001236/1.258, allocations: 58.28 kB / 1.366 GB, free: 30.57 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.783e-06/1.258, allocations: 3.844 kB / 1.366 GB, free: 30.57 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 4.75e-05/1.258, allocations: 26.72 kB / 1.366 GB, free: 30.57 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001762/1.258, allocations: 3.859 kB / 1.366 GB, free: 30.57 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002899/1.258, allocations: 99.44 kB / 1.366 GB, free: 30.49 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002287/1.259, allocations: 0.6931 MB / 1.367 GB, free: 29.79 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 3.724e-05/1.259, allocations: 8.016 kB / 1.367 GB, free: 29.79 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.542e-05/1.259, allocations: 16.11 kB / 1.367 GB, free: 29.78 MB / 0.8386 GB Notification: Performance of SimCode: time 2.51e-07/1.259, allocations: 0 / 1.367 GB, free: 29.78 MB / 0.8386 GB Notification: Performance of Templates: time 0.003758/1.262, allocations: 1.501 MB / 1.368 GB, free: 29.62 MB / 0.8386 GB make -j1 -f Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.makefile (rm -f Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.pipe ; mkfifo Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.pipe ; head -c 1048576 < Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.pipe >> ../files/Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.sim & ./Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsWest.csv","../files/Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,win.TOut,win.occ,win.p,win.on Variables in the result:TOut.amplitude,TOut.f,TOut.offset,TOut.phase,TOut.startTime,occ.startTime,occ.startValue,occ.y,time,win.A,win.B,win.TOut,win.occ,win.on,win.p,win.samplePeriod,win.seed,win.t0