Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/Buildings 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_9_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_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001512/0.001512, allocations: 99.78 kB / 15.05 MB, free: 1.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001847/0.001847, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.453/1.453, allocations: 223.2 MB / 239.9 MB, free: 5.453 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.491/2.491, allocations: 390.2 MB / 0.6653 GB, free: 2.949 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0004267/0.0004269, allocations: 15.94 kB / 0.8145 GB, free: 14.29 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8705/0.8709, allocations: 142.3 MB / 0.9535 GB, free: 8.117 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest): time 0.001603/0.8726, allocations: 1.195 MB / 0.9547 GB, free: 7.172 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001063/0.8737, allocations: 0.6697 MB / 0.9553 GB, free: 6.66 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.788e-05/0.8737, allocations: 9.094 kB / 0.9553 GB, free: 6.652 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.113e-05/0.8737, allocations: 0 / 0.9553 GB, free: 6.652 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 6.039e-05/0.8738, allocations: 10.39 kB / 0.9553 GB, free: 6.645 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005407/0.8744, allocations: 98.06 kB / 0.9554 GB, free: 6.574 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001024/0.8745, allocations: 39.48 kB / 0.9555 GB, free: 6.551 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001134/0.8746, allocations: 8.359 kB / 0.9555 GB, free: 6.547 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 9.64e-05/0.8747, allocations: 41.5 kB / 0.9555 GB, free: 6.52 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 7.341e-05/0.8748, allocations: 27.06 kB / 0.9556 GB, free: 6.504 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.843e-05/0.8748, allocations: 7.609 kB / 0.9556 GB, free: 6.5 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001846/0.875, allocations: 66.56 kB / 0.9556 GB, free: 6.469 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.775e-05/0.875, allocations: 23.44 kB / 0.9556 GB, free: 6.449 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.146e-05/0.8751, allocations: 31.08 kB / 0.9557 GB, free: 6.418 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002241/0.8753, allocations: 98.7 kB / 0.9558 GB, free: 6.355 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.551e-06/0.8753, allocations: 0 / 0.9558 GB, free: 6.355 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.996e-06/0.8753, allocations: 3.938 kB / 0.9558 GB, free: 6.352 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 8.256e-06/0.8753, allocations: 0 / 0.9558 GB, free: 6.352 MB / 0.7169 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.0006213/0.876, allocations: 409.8 kB / 0.9562 GB, free: 5.926 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.419e-05/0.876, allocations: 13.72 kB / 0.9562 GB, free: 5.922 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.252e-05/0.8761, allocations: 11.2 kB / 0.9562 GB, free: 5.914 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.539e-05/0.8762, allocations: 171.2 kB / 0.9564 GB, free: 5.711 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.533e-05/0.8762, allocations: 2.125 kB / 0.9564 GB, free: 5.711 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.938e-05/0.8762, allocations: 7.969 kB / 0.9564 GB, free: 5.707 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001985/0.8764, allocations: 69.7 kB / 0.9564 GB, free: 5.652 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.744e-06/0.8765, allocations: 1.188 kB / 0.9564 GB, free: 5.652 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.284e-05/0.8765, allocations: 0 / 0.9564 GB, free: 5.652 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.877e-06/0.8765, allocations: 0.9688 kB / 0.9564 GB, free: 5.652 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001404/0.8766, allocations: 54.11 kB / 0.9565 GB, free: 5.625 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005644/0.8772, allocations: 321.9 kB / 0.9568 GB, free: 5.297 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001327/0.8773, allocations: 51.38 kB / 0.9568 GB, free: 5.258 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.059e-05/0.8774, allocations: 1.219 kB / 0.9568 GB, free: 5.258 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001924/0.8776, allocations: 78.75 kB / 0.9569 GB, free: 5.188 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.472e-06/0.8776, allocations: 5.156 kB / 0.9569 GB, free: 5.184 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0004154/0.878, allocations: 160.1 kB / 0.9571 GB, free: 5.09 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.737e-05/0.8781, allocations: 52.56 kB / 0.9571 GB, free: 5.027 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.325e-05/0.8782, allocations: 117.1 kB / 0.9572 GB, free: 4.918 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.766e-05/0.8782, allocations: 27.14 kB / 0.9573 GB, free: 4.887 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 6.232e-05/0.8782, allocations: 102.6 kB / 0.9574 GB, free: 4.785 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.125e-05/0.8783, allocations: 10.25 kB / 0.9574 GB, free: 4.777 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.125e-06/0.8783, allocations: 5.062 kB / 0.9574 GB, free: 4.773 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 9.094e-05/0.8784, allocations: 320.1 kB / 0.9577 GB, free: 4.453 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.426e-05/0.8785, allocations: 25.05 kB / 0.9577 GB, free: 4.445 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.909e-05/0.8786, allocations: 59.31 kB / 0.9578 GB, free: 4.398 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.524e-05/0.8787, allocations: 38.86 kB / 0.9578 GB, free: 4.379 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.515e-06/0.8787, allocations: 1.375 kB / 0.9578 GB, free: 4.379 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002231/0.8789, allocations: 121 kB / 0.9579 GB, free: 4.305 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.958e-05/0.8789, allocations: 7.281 kB / 0.9579 GB, free: 4.305 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.879e-06/0.8789, allocations: 0 / 0.9579 GB, free: 4.305 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.544e-05/0.879, allocations: 5.359 kB / 0.9579 GB, free: 4.301 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.751e-05/0.8791, allocations: 13.92 kB / 0.9579 GB, free: 4.297 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.223e-06/0.8791, allocations: 3.25 kB / 0.9579 GB, free: 4.297 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.359e-05/0.8792, allocations: 11.38 kB / 0.9579 GB, free: 4.289 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.136e-05/0.8792, allocations: 6.641 kB / 0.958 GB, free: 4.285 MB / 0.7169 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 (win.occ,$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 8.75e-05/0.8793, allocations: 125.5 kB / 0.9581 GB, free: 4.16 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.394e-05/0.8793, allocations: 7.656 kB / 0.9581 GB, free: 4.156 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.919e-05/0.8793, allocations: 8.375 kB / 0.9581 GB, free: 4.145 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.436e-06/0.8794, allocations: 3.953 kB / 0.9581 GB, free: 4.141 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.46e-06/0.8794, allocations: 0 / 0.9581 GB, free: 4.141 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.47e-06/0.8794, allocations: 3.984 kB / 0.9581 GB, free: 4.137 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003997/0.8798, allocations: 380.5 kB / 0.9585 GB, free: 3.773 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.8798, allocations: 0 / 0.9585 GB, free: 3.773 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.389e-05/0.8798, allocations: 17.7 kB / 0.9585 GB, free: 3.762 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.127e-06/0.8799, allocations: 3.953 kB / 0.9585 GB, free: 3.758 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.404e-05/0.8799, allocations: 1.844 kB / 0.9585 GB, free: 3.758 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.716e-06/0.8799, allocations: 4 kB / 0.9585 GB, free: 3.754 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.322e-06/0.8799, allocations: 0 / 0.9585 GB, free: 3.754 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000281/0.8802, allocations: 214.6 kB / 0.9587 GB, free: 3.582 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.076e-05/0.8802, allocations: 82.7 kB / 0.9588 GB, free: 3.484 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.055e-05/0.8802, allocations: 9.516 kB / 0.9588 GB, free: 3.477 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.417e-05/0.8803, allocations: 8.391 kB / 0.9588 GB, free: 3.473 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.116e-05/0.8804, allocations: 2.719 kB / 0.9588 GB, free: 3.473 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.739e-06/0.8804, allocations: 1.438 kB / 0.9588 GB, free: 3.473 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.877e-05/0.8804, allocations: 100.3 kB / 0.9589 GB, free: 3.383 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1e-07/0.8804, allocations: 0 / 0.9589 GB, free: 3.383 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003031/0.8807, allocations: 41.14 kB / 0.9589 GB, free: 3.371 MB / 0.7169 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,win.occ,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.0003594/0.8811, allocations: 169.9 kB / 0.9591 GB, free: 3.25 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002255/0.8813, allocations: 74.73 kB / 0.9592 GB, free: 3.223 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.923e-06/0.8814, allocations: 0 / 0.9592 GB, free: 3.223 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 9.242e-05/0.8814, allocations: 42.69 kB / 0.9592 GB, free: 3.203 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001755/0.8816, allocations: 7.312 kB / 0.9592 GB, free: 3.199 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003583/0.882, allocations: 197.5 kB / 0.9594 GB, free: 3.023 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001244/0.8821, allocations: 0.6891 MB / 0.9601 GB, free: 2.32 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.552e-05/0.8822, allocations: 8.297 kB / 0.9601 GB, free: 2.316 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.433e-05/0.8822, allocations: 10.19 kB / 0.9601 GB, free: 2.309 MB / 0.7169 GB Notification: Performance of SimCode: time 2.21e-07/0.8822, allocations: 4 kB / 0.9601 GB, free: 2.305 MB / 0.7169 GB Notification: Performance of Templates: time 0.004239/0.8865, allocations: 1.325 MB / 0.9614 GB, free: 1.617 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.makefile (rm -f Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.pipe ; mkfifo Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.pipe ; head -c 1048576 < Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.pipe >> ../files/Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.sim & ./Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsWest.csv","../files/Buildings_9_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,time,win.A,win.B,win.TOut,win.occ,win.on,win.p,win.samplePeriod,win.seed,win.t0