Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll.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.Zhang2012WindowsAll,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.Zhang2012WindowsAll") translateModel(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll,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.Zhang2012WindowsAll") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.534/2.534, allocations: 390.3 MB / 402.8 MB, free: 6.727 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.001201/0.001201, allocations: 176.8 kB / 496.1 MB, free: 12.89 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.504/1.504, allocations: 221.3 MB / 0.7915 GB, free: 5.477 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.0009068/0.0009069, allocations: 87.88 kB / 0.9317 GB, free: 5.797 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.923e-05/2.934e-05, allocations: 4 kB / 1.079 GB, free: 140.6 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3025/0.3025, allocations: 143 MB / 1.219 GB, free: 13.55 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9683/1.271, allocations: 152 MB / 1.367 GB, free: 2.152 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003375/1.271, allocations: 82.81 kB / 1.367 GB, free: 2.105 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.009417/1.281, allocations: 3.015 MB / 1.37 GB, free: 15.52 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.703e-06/1.281, allocations: 0 / 1.37 GB, free: 15.52 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 8.426e-06/1.281, allocations: 0 / 1.37 GB, free: 15.52 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.0006082/1.281, allocations: 408 kB / 1.371 GB, free: 15.07 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 5.894e-05/1.282, allocations: 8.031 kB / 1.371 GB, free: 15.07 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.141e-05/1.282, allocations: 7.953 kB / 1.371 GB, free: 15.06 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001671/1.282, allocations: 175.2 kB / 1.371 GB, free: 14.85 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.803e-05/1.282, allocations: 7.984 kB / 1.371 GB, free: 14.84 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.066e-05/1.282, allocations: 7.188 kB / 1.371 GB, free: 14.84 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001696/1.282, allocations: 62.7 kB / 1.371 GB, free: 14.78 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.025e-06/1.282, allocations: 0 / 1.371 GB, free: 14.78 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.44e-05/1.282, allocations: 0.875 kB / 1.371 GB, free: 14.78 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.531e-06/1.282, allocations: 4 kB / 1.371 GB, free: 14.78 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.893e-05/1.282, allocations: 26 kB / 1.371 GB, free: 14.76 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007557/1.283, allocations: 314.2 kB / 1.371 GB, free: 14.43 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 9.916e-05/1.283, allocations: 43.44 kB / 1.371 GB, free: 14.38 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.389e-05/1.283, allocations: 27.55 kB / 1.371 GB, free: 14.36 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.532e-05/1.283, allocations: 0 / 1.371 GB, free: 14.36 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001524/1.283, allocations: 77.88 kB / 1.371 GB, free: 14.29 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=7): time 1.282e-06/1.283, allocations: 4 kB / 1.371 GB, free: 14.28 MB / 0.8386 GB Notification: Performance of matching and sorting (n=7): time 0.0003039/1.284, allocations: 102.3 kB / 1.371 GB, free: 14.19 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.114e-05/1.284, allocations: 51.41 kB / 1.371 GB, free: 14.13 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001097/1.284, allocations: 111.5 kB / 1.372 GB, free: 14.02 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 3.46e-05/1.284, allocations: 28.7 kB / 1.372 GB, free: 13.99 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 6.837e-05/1.284, allocations: 95.17 kB / 1.372 GB, free: 13.89 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.345e-05/1.284, allocations: 14.86 kB / 1.372 GB, free: 13.88 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.217e-06/1.284, allocations: 7.062 kB / 1.372 GB, free: 13.88 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001536/1.284, allocations: 318.1 kB / 1.372 GB, free: 13.56 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.786e-05/1.284, allocations: 22.11 kB / 1.372 GB, free: 13.54 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.457e-05/1.284, allocations: 48.28 kB / 1.372 GB, free: 13.5 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.52e-05/1.284, allocations: 25.73 kB / 1.372 GB, free: 13.48 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/1.284, allocations: 0 / 1.372 GB, free: 13.48 MB / 0.8386 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001601/1.284, allocations: 96.78 kB / 1.372 GB, free: 13.39 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.516e-05/1.284, allocations: 8.062 kB / 1.372 GB, free: 13.38 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.486e-06/1.284, allocations: 8 kB / 1.372 GB, free: 13.38 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.331e-05/1.284, allocations: 3.938 kB / 1.372 GB, free: 13.37 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.451e-05/1.285, allocations: 11.19 kB / 1.372 GB, free: 13.36 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.518e-05/1.285, allocations: 11.94 kB / 1.372 GB, free: 13.35 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.199e-05/1.285, allocations: 7.906 kB / 1.372 GB, free: 13.34 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.445e-05/1.285, allocations: 4 kB / 1.372 GB, free: 13.34 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 0.0001004/1.285, allocations: 116 kB / 1.372 GB, free: 13.22 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.156e-05/1.285, allocations: 0 / 1.372 GB, free: 13.22 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.383e-05/1.285, allocations: 15.61 kB / 1.372 GB, free: 13.21 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.483e-06/1.285, allocations: 0 / 1.372 GB, free: 13.21 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.039e-06/1.285, allocations: 0 / 1.372 GB, free: 13.21 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.861e-06/1.285, allocations: 3.953 kB / 1.372 GB, free: 13.2 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003898/1.285, allocations: 359.2 kB / 1.373 GB, free: 12.83 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.338e-06/1.285, allocations: 4 kB / 1.373 GB, free: 12.82 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.184e-05/1.285, allocations: 7.938 kB / 1.373 GB, free: 12.82 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.964e-06/1.285, allocations: 4 kB / 1.373 GB, free: 12.81 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.064e-05/1.285, allocations: 0 / 1.373 GB, free: 12.81 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.849e-06/1.285, allocations: 7.938 kB / 1.373 GB, free: 12.8 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/1.285, allocations: 0 / 1.373 GB, free: 12.8 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002106/1.286, allocations: 198.9 kB / 1.373 GB, free: 12.62 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 5.383e-05/1.286, allocations: 81.11 kB / 1.373 GB, free: 12.52 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.71e-05/1.286, allocations: 0 / 1.373 GB, free: 12.52 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.691e-05/1.286, allocations: 11.98 kB / 1.373 GB, free: 12.51 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.205e-05/1.286, allocations: 7.953 kB / 1.373 GB, free: 12.5 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.023e-05/1.286, allocations: 3.984 kB / 1.373 GB, free: 12.5 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 5.603e-05/1.286, allocations: 94.27 kB / 1.373 GB, free: 12.41 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.61e-07/1.286, allocations: 0 / 1.373 GB, free: 12.41 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0003164/1.286, allocations: 54.98 kB / 1.373 GB, free: 12.36 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.0004327/1.287, allocations: 182.9 kB / 1.373 GB, free: 12.19 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0001605/1.287, allocations: 53.94 kB / 1.373 GB, free: 12.15 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/1.287, allocations: 0 / 1.373 GB, free: 12.15 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 6.215e-05/1.287, allocations: 27.11 kB / 1.373 GB, free: 12.13 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001942/1.287, allocations: 8 kB / 1.373 GB, free: 12.12 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003111/1.287, allocations: 106 kB / 1.374 GB, free: 12.01 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003457/1.288, allocations: 0.6938 MB / 1.374 GB, free: 11.29 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 4.276e-05/1.288, allocations: 12.16 kB / 1.374 GB, free: 11.28 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.738e-05/1.288, allocations: 11.44 kB / 1.374 GB, free: 11.27 MB / 0.8386 GB Notification: Performance of SimCode: time 4.21e-07/1.288, allocations: 0 / 1.374 GB, free: 11.27 MB / 0.8386 GB Notification: Performance of Templates: time 0.004252/1.292, allocations: 1.527 MB / 1.376 GB, free: 9.754 MB / 0.8386 GB make -j1 -f Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll.makefile (rm -f Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll.pipe ; mkfifo Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll.pipe ; head -c 1048576 < Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll.pipe >> ../files/Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll.sim & ./Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsAll.csv","../files/Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll.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