Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth.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.Zhang2012WindowsNorth,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|win.TOut|win.occ|win.p|win.on",fileNamePrefix="Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth") translateModel(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|win.TOut|win.occ|win.p|win.on",fileNamePrefix="Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.49/2.49, allocations: 390.3 MB / 405.3 MB, free: 13.51 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.001066/0.001066, allocations: 173.1 kB / 498.1 MB, free: 5.77 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.732/1.732, allocations: 223.2 MB / 0.7948 GB, free: 17.95 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.001415/0.001415, allocations: 102.8 kB / 0.9346 GB, free: 6.23 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003778/0.0003778, allocations: 10.47 kB / 1.084 GB, free: 221.5 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3287/0.3291, allocations: 142.3 MB / 1.223 GB, free: 114.3 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2018/0.531, allocations: 151.2 MB / 1.371 GB, free: 10.88 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003157/0.5314, allocations: 83.95 kB / 1.371 GB, free: 10.8 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.009331/0.5407, allocations: 3.02 MB / 1.374 GB, free: 7.773 MB / 0.8698 GB Notification: Performance of FrontEnd: time 2.014e-06/0.5408, allocations: 0 / 1.374 GB, free: 7.773 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 8.196e-06/0.5408, allocations: 0 / 1.374 GB, free: 7.773 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0005321/0.5413, allocations: 428.6 kB / 1.374 GB, free: 7.301 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 4.437e-05/0.5414, allocations: 12.03 kB / 1.374 GB, free: 7.289 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.271e-05/0.5414, allocations: 11.86 kB / 1.374 GB, free: 7.277 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001012/0.5415, allocations: 175 kB / 1.374 GB, free: 7.066 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.261e-05/0.5416, allocations: 7.984 kB / 1.374 GB, free: 7.059 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.234e-05/0.5416, allocations: 7.984 kB / 1.374 GB, free: 7.051 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002003/0.5418, allocations: 73.59 kB / 1.374 GB, free: 6.973 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.016e-05/0.5418, allocations: 0 / 1.374 GB, free: 6.973 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.314e-05/0.5418, allocations: 0 / 1.374 GB, free: 6.973 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.014e-06/0.5418, allocations: 4 kB / 1.374 GB, free: 6.969 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001288/0.542, allocations: 43.97 kB / 1.374 GB, free: 6.926 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006193/0.5426, allocations: 312.8 kB / 1.375 GB, free: 6.57 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001289/0.5427, allocations: 54.5 kB / 1.375 GB, free: 6.508 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 2.107e-05/0.5428, allocations: 4.062 kB / 1.375 GB, free: 6.504 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001764/0.543, allocations: 79.41 kB / 1.375 GB, free: 6.414 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=7): time 1.402e-06/0.543, allocations: 0 / 1.375 GB, free: 6.414 MB / 0.8698 GB Notification: Performance of matching and sorting (n=7): time 0.0003929/0.5434, allocations: 153.6 kB / 1.375 GB, free: 6.258 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.19e-05/0.5434, allocations: 63.33 kB / 1.375 GB, free: 6.184 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.856e-05/0.5435, allocations: 112.9 kB / 1.375 GB, free: 6.066 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 1.781e-05/0.5435, allocations: 25.7 kB / 1.375 GB, free: 6.035 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 5.485e-05/0.5436, allocations: 92.33 kB / 1.375 GB, free: 5.938 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 2.118e-05/0.5436, allocations: 15.78 kB / 1.375 GB, free: 5.922 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.386e-06/0.5436, allocations: 8 kB / 1.375 GB, free: 5.914 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0001077/0.5438, allocations: 318.8 kB / 1.376 GB, free: 5.594 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.835e-05/0.5439, allocations: 23.98 kB / 1.376 GB, free: 5.57 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.814e-05/0.5439, allocations: 54.48 kB / 1.376 GB, free: 5.508 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.925e-05/0.544, allocations: 39.98 kB / 1.376 GB, free: 5.469 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.5441, allocations: 3.938 kB / 1.376 GB, free: 5.465 MB / 0.8698 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.000233/0.5443, allocations: 113.5 kB / 1.376 GB, free: 5.348 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 1.802e-05/0.5443, allocations: 8 kB / 1.376 GB, free: 5.34 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.009e-06/0.5443, allocations: 0 / 1.376 GB, free: 5.34 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.451e-05/0.5444, allocations: 4.062 kB / 1.376 GB, free: 5.336 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.469e-05/0.5444, allocations: 15.94 kB / 1.376 GB, free: 5.32 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.046e-06/0.5445, allocations: 7.938 kB / 1.376 GB, free: 5.312 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.58e-05/0.5445, allocations: 11.94 kB / 1.376 GB, free: 5.301 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.407e-05/0.5446, allocations: 4 kB / 1.376 GB, free: 5.297 MB / 0.8698 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 () * Number of clocked 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.052e-05/0.5447, allocations: 117.6 kB / 1.376 GB, free: 5.176 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.468e-05/0.5447, allocations: 7.906 kB / 1.376 GB, free: 5.168 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.373e-05/0.5447, allocations: 16.36 kB / 1.376 GB, free: 5.152 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.618e-06/0.5447, allocations: 4 kB / 1.376 GB, free: 5.148 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.268e-06/0.5447, allocations: 0 / 1.376 GB, free: 5.148 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.338e-06/0.5447, allocations: 3.953 kB / 1.376 GB, free: 5.145 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004173/0.5452, allocations: 382.5 kB / 1.376 GB, free: 4.715 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.5452, allocations: 0 / 1.376 GB, free: 4.715 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.765e-05/0.5452, allocations: 8 kB / 1.376 GB, free: 4.707 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.827e-06/0.5452, allocations: 4 kB / 1.376 GB, free: 4.703 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.323e-05/0.5453, allocations: 3.984 kB / 1.376 GB, free: 4.699 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.715e-06/0.5453, allocations: 3.953 kB / 1.376 GB, free: 4.695 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.42e-07/0.5453, allocations: 0 / 1.376 GB, free: 4.695 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002748/0.5456, allocations: 215.4 kB / 1.377 GB, free: 4.469 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 4.036e-05/0.5456, allocations: 77.11 kB / 1.377 GB, free: 4.375 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.319e-05/0.5456, allocations: 11.98 kB / 1.377 GB, free: 4.363 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.556e-05/0.5457, allocations: 8 kB / 1.377 GB, free: 4.355 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.462e-05/0.5458, allocations: 7.938 kB / 1.377 GB, free: 4.348 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.009e-05/0.5458, allocations: 4 kB / 1.377 GB, free: 4.344 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 5.329e-05/0.5458, allocations: 91.27 kB / 1.377 GB, free: 4.254 MB / 0.8698 GB Notification: Performance of sort global known variables: time 1.61e-07/0.5459, allocations: 3.938 kB / 1.377 GB, free: 4.25 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.0003282/0.5462, allocations: 47.91 kB / 1.377 GB, free: 4.203 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: 6 (win.sampleTrigger,$whenCondition1,occ.y,win.on,win.p,win.curSeed) * Number of discrete states: 0 () * Number of clocked 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.0004029/0.5466, allocations: 183.5 kB / 1.377 GB, free: 4.023 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.0002425/0.5469, allocations: 83.92 kB / 1.377 GB, free: 3.941 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 2.245e-06/0.5469, allocations: 4.062 kB / 1.377 GB, free: 3.938 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 9.33e-05/0.547, allocations: 39.98 kB / 1.377 GB, free: 3.898 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001693/0.5471, allocations: 3.984 kB / 1.377 GB, free: 3.895 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004057/0.5476, allocations: 207.8 kB / 1.377 GB, free: 3.664 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002429/0.5478, allocations: 0.6926 MB / 1.378 GB, free: 2.945 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 4.382e-05/0.5479, allocations: 4.188 kB / 1.378 GB, free: 2.941 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.746e-05/0.5479, allocations: 11.42 kB / 1.378 GB, free: 2.93 MB / 0.8698 GB Notification: Performance of SimCode: time 2.91e-07/0.5479, allocations: 0 / 1.378 GB, free: 2.93 MB / 0.8698 GB Notification: Performance of Templates: time 0.004014/0.552, allocations: 1.516 MB / 1.379 GB, free: 1.418 MB / 0.8698 GB make -j1 -f Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth.makefile (rm -f Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth.pipe ; mkfifo Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth.pipe ; head -c 1048576 < Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth.pipe >> ../files/Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth.sim & ./Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsNorth.csv","../files/Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth.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