Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast.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.Zhang2012WindowsEast,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.Zhang2012WindowsEast") translateModel(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast,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.Zhang2012WindowsEast") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001232/0.001232, allocations: 100.2 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.00145/0.00145, 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.412/1.412, allocations: 223.2 MB / 239.9 MB, free: 5.465 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.465/2.465, allocations: 390.3 MB / 0.6653 GB, free: 2.965 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003645/0.0003645, allocations: 8 kB / 0.8145 GB, free: 14.3 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7452/0.7455, allocations: 142.3 MB / 0.9535 GB, free: 8.102 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast): time 0.001428/0.747, allocations: 1.194 MB / 0.9547 GB, free: 7.156 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0009901/0.748, allocations: 0.6754 MB / 0.9553 GB, free: 6.641 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.921e-05/0.7481, allocations: 0 / 0.9553 GB, free: 6.641 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.264e-05/0.7481, allocations: 5.344 kB / 0.9553 GB, free: 6.637 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 6.135e-05/0.7482, allocations: 9.219 kB / 0.9553 GB, free: 6.629 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.000481/0.7487, allocations: 98.61 kB / 0.9554 GB, free: 6.559 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 8.199e-05/0.7488, allocations: 47.48 kB / 0.9555 GB, free: 6.527 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 9.368e-05/0.7489, allocations: 8.875 kB / 0.9555 GB, free: 6.523 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 8.265e-05/0.749, allocations: 24.73 kB / 0.9555 GB, free: 6.512 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 6.434e-05/0.749, allocations: 43 kB / 0.9556 GB, free: 6.48 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.369e-05/0.7491, allocations: 4.094 kB / 0.9556 GB, free: 6.48 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001469/0.7492, allocations: 62.88 kB / 0.9556 GB, free: 6.453 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.115e-05/0.7492, allocations: 18.33 kB / 0.9556 GB, free: 6.438 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.176e-05/0.7493, allocations: 39.09 kB / 0.9557 GB, free: 6.398 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001468/0.7494, allocations: 95.36 kB / 0.9558 GB, free: 6.34 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.014e-06/0.7494, allocations: 0 / 0.9558 GB, free: 6.34 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.583e-06/0.7494, allocations: 0 / 0.9558 GB, free: 6.34 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.491e-06/0.7495, allocations: 1.125 kB / 0.9558 GB, free: 6.34 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.0004751/0.7499, allocations: 413.2 kB / 0.9562 GB, free: 5.91 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.037e-05/0.75, allocations: 12.59 kB / 0.9562 GB, free: 5.906 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.248e-05/0.75, allocations: 16.39 kB / 0.9562 GB, free: 5.895 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.339e-05/0.7501, allocations: 170 kB / 0.9564 GB, free: 5.691 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.751e-05/0.7501, allocations: 2.219 kB / 0.9564 GB, free: 5.691 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.646e-05/0.7502, allocations: 4.219 kB / 0.9564 GB, free: 5.691 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001686/0.7503, allocations: 70.53 kB / 0.9564 GB, free: 5.637 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.253e-06/0.7504, allocations: 0 / 0.9564 GB, free: 5.637 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.233e-05/0.7504, allocations: 1 kB / 0.9564 GB, free: 5.637 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.568e-06/0.7504, allocations: 1.062 kB / 0.9564 GB, free: 5.637 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001326/0.7505, allocations: 48.95 kB / 0.9565 GB, free: 5.613 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005288/0.7511, allocations: 330.5 kB / 0.9568 GB, free: 5.277 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001433/0.7512, allocations: 51.11 kB / 0.9568 GB, free: 5.238 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.948e-05/0.7512, allocations: 1.031 kB / 0.9568 GB, free: 5.238 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001723/0.7514, allocations: 79.97 kB / 0.9569 GB, free: 5.168 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.392e-06/0.7514, allocations: 4 kB / 0.9569 GB, free: 5.164 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0003882/0.7518, allocations: 151.6 kB / 0.9571 GB, free: 5.078 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.691e-05/0.7519, allocations: 53.94 kB / 0.9571 GB, free: 5.016 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.896e-05/0.7519, allocations: 127.7 kB / 0.9572 GB, free: 4.895 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.167e-05/0.752, allocations: 27.02 kB / 0.9573 GB, free: 4.863 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.522e-05/0.752, allocations: 95.67 kB / 0.9574 GB, free: 4.77 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.684e-05/0.752, allocations: 18.5 kB / 0.9574 GB, free: 4.754 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.831e-06/0.752, allocations: 0 / 0.9574 GB, free: 4.754 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.997e-05/0.7521, allocations: 321.8 kB / 0.9577 GB, free: 4.434 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.042e-05/0.7522, allocations: 32.73 kB / 0.9577 GB, free: 4.418 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.453e-05/0.7522, allocations: 54.73 kB / 0.9578 GB, free: 4.375 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.94e-05/0.7523, allocations: 34.89 kB / 0.9578 GB, free: 4.359 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.7524, allocations: 0 / 0.9578 GB, free: 4.359 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002179/0.7526, allocations: 118.1 kB / 0.9579 GB, free: 4.289 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.29e-05/0.7526, allocations: 5.969 kB / 0.9579 GB, free: 4.289 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.301e-06/0.7526, allocations: 5.422 kB / 0.9579 GB, free: 4.285 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.27e-05/0.7526, allocations: 5.172 kB / 0.9579 GB, free: 4.281 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.259e-05/0.7527, allocations: 8.625 kB / 0.9579 GB, free: 4.281 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.663e-06/0.7527, allocations: 1.672 kB / 0.9579 GB, free: 4.281 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.8e-05/0.7528, allocations: 13.33 kB / 0.9579 GB, free: 4.273 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.431e-05/0.7528, allocations: 7.062 kB / 0.958 GB, free: 4.27 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 6.612e-05/0.7529, allocations: 118.8 kB / 0.9581 GB, free: 4.148 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.399e-05/0.7529, allocations: 11.81 kB / 0.9581 GB, free: 4.141 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.515e-05/0.753, allocations: 16.02 kB / 0.9581 GB, free: 4.125 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.375e-06/0.753, allocations: 3.953 kB / 0.9581 GB, free: 4.121 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.747e-06/0.753, allocations: 0 / 0.9581 GB, free: 4.121 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.885e-06/0.753, allocations: 0 / 0.9581 GB, free: 4.121 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003529/0.7533, allocations: 391 kB / 0.9585 GB, free: 3.746 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.352e-06/0.7533, allocations: 0 / 0.9585 GB, free: 3.746 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.883e-05/0.7534, allocations: 4.812 kB / 0.9585 GB, free: 3.746 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.427e-06/0.7534, allocations: 5.828 kB / 0.9585 GB, free: 3.742 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.507e-06/0.7534, allocations: 0 / 0.9585 GB, free: 3.742 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.996e-06/0.7534, allocations: 9.922 kB / 0.9585 GB, free: 3.734 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.62e-07/0.7534, allocations: 0 / 0.9585 GB, free: 3.734 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00023/0.7537, allocations: 210.2 kB / 0.9587 GB, free: 3.566 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.157e-05/0.7537, allocations: 82.64 kB / 0.9588 GB, free: 3.469 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.251e-05/0.7537, allocations: 5.422 kB / 0.9588 GB, free: 3.465 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.087e-05/0.7538, allocations: 12.39 kB / 0.9588 GB, free: 3.457 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.731e-05/0.7539, allocations: 7.062 kB / 0.9588 GB, free: 3.453 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.106e-05/0.7539, allocations: 5.391 kB / 0.9588 GB, free: 3.449 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.571e-05/0.7539, allocations: 100.5 kB / 0.9589 GB, free: 3.359 MB / 0.7169 GB Notification: Performance of sort global known variables: time 9e-08/0.7539, allocations: 0 / 0.9589 GB, free: 3.359 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003052/0.7542, allocations: 35.44 kB / 0.9589 GB, free: 3.352 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.0003182/0.7546, allocations: 161.5 kB / 0.9591 GB, free: 3.238 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002162/0.7548, allocations: 85.94 kB / 0.9592 GB, free: 3.199 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.553e-06/0.7548, allocations: 1.781 kB / 0.9592 GB, free: 3.199 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 8.777e-05/0.7549, allocations: 37.61 kB / 0.9592 GB, free: 3.184 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001631/0.7551, allocations: 7.516 kB / 0.9592 GB, free: 3.18 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003286/0.7554, allocations: 201.3 kB / 0.9594 GB, free: 3 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.734e-05/0.7555, allocations: 0.6904 MB / 0.9601 GB, free: 2.297 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.431e-05/0.7555, allocations: 2.938 kB / 0.9601 GB, free: 2.297 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.332e-05/0.7556, allocations: 11.56 kB / 0.9601 GB, free: 2.289 MB / 0.7169 GB Notification: Performance of SimCode: time 2.2e-07/0.7556, allocations: 4 kB / 0.9601 GB, free: 2.285 MB / 0.7169 GB Notification: Performance of Templates: time 0.003806/0.7594, allocations: 1.33 MB / 0.9614 GB, free: 1.594 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast.makefile (rm -f Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast.pipe ; mkfifo Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast.pipe ; head -c 1048576 < Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast.pipe >> ../files/Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast.sim & ./Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsEast.csv","../files/Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast.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