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.001246/0.001247, allocations: 86.72 kB / 15.06 MB, free: 1.09 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.001368/0.001368, allocations: 168.7 kB / 15.95 MB, free: 204 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.516/1.516, allocations: 223.3 MB / 240 MB, free: 5.426 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.461/2.461, allocations: 390.9 MB / 0.666 GB, free: 2.422 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0004985/0.0004986, allocations: 12 kB / 0.8154 GB, free: 13.57 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.747/0.7475, allocations: 142.4 MB / 0.9544 GB, free: 7.797 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest): time 0.001388/0.7489, allocations: 1.198 MB / 0.9556 GB, free: 6.848 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0009682/0.7499, allocations: 0.682 MB / 0.9563 GB, free: 6.32 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.23e-05/0.75, allocations: 5.531 kB / 0.9563 GB, free: 6.316 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.702e-05/0.75, allocations: 3.938 kB / 0.9563 GB, free: 6.312 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 5.142e-05/0.75, allocations: 4.906 kB / 0.9563 GB, free: 6.309 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004311/0.7505, allocations: 97.52 kB / 0.9564 GB, free: 6.242 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 9.044e-05/0.7506, allocations: 64.77 kB / 0.9564 GB, free: 6.203 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001091/0.7507, allocations: 16.67 kB / 0.9565 GB, free: 6.191 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 8.014e-05/0.7508, allocations: 34.08 kB / 0.9565 GB, free: 6.172 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 6.155e-05/0.7509, allocations: 30.56 kB / 0.9565 GB, free: 6.152 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.852e-05/0.7509, allocations: 4.219 kB / 0.9565 GB, free: 6.152 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001639/0.7511, allocations: 87.91 kB / 0.9566 GB, free: 6.105 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.397e-05/0.7511, allocations: 18.94 kB / 0.9566 GB, free: 6.09 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.411e-05/0.7511, allocations: 35.33 kB / 0.9567 GB, free: 6.055 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001508/0.7513, allocations: 94.39 kB / 0.9567 GB, free: 5.996 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.681e-06/0.7513, allocations: 1.031 kB / 0.9567 GB, free: 5.996 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.583e-06/0.7513, allocations: 0 / 0.9567 GB, free: 5.996 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.318e-06/0.7513, allocations: 0 / 0.9567 GB, free: 5.996 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.0004957/0.7518, allocations: 418.3 kB / 0.9571 GB, free: 5.562 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.632e-05/0.7519, allocations: 8.844 kB / 0.9572 GB, free: 5.562 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.831e-05/0.7519, allocations: 12.11 kB / 0.9572 GB, free: 5.555 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.799e-05/0.752, allocations: 170.3 kB / 0.9573 GB, free: 5.352 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.801e-05/0.752, allocations: 2.781 kB / 0.9573 GB, free: 5.352 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.699e-05/0.752, allocations: 3.156 kB / 0.9573 GB, free: 5.352 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001718/0.7522, allocations: 74.69 kB / 0.9574 GB, free: 5.293 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.825e-06/0.7522, allocations: 3.984 kB / 0.9574 GB, free: 5.289 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.183e-05/0.7523, allocations: 1.75 kB / 0.9574 GB, free: 5.289 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.74e-06/0.7523, allocations: 3.984 kB / 0.9574 GB, free: 5.285 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001189/0.7524, allocations: 43.12 kB / 0.9575 GB, free: 5.27 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005106/0.7529, allocations: 325.4 kB / 0.9578 GB, free: 4.938 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001128/0.753, allocations: 51.41 kB / 0.9578 GB, free: 4.898 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.817e-05/0.7531, allocations: 33.97 kB / 0.9578 GB, free: 4.879 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.452e-05/0.7532, allocations: 5.156 kB / 0.9578 GB, free: 4.875 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001787/0.7533, allocations: 82.91 kB / 0.9579 GB, free: 4.801 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.433e-06/0.7533, allocations: 1.688 kB / 0.9579 GB, free: 4.801 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0003704/0.7537, allocations: 152 kB / 0.9581 GB, free: 4.715 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.511e-05/0.7538, allocations: 52.88 kB / 0.9581 GB, free: 4.652 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.06e-05/0.7538, allocations: 132.2 kB / 0.9583 GB, free: 4.527 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.212e-05/0.7539, allocations: 26.95 kB / 0.9583 GB, free: 4.496 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.328e-05/0.7539, allocations: 86.52 kB / 0.9584 GB, free: 4.41 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.776e-05/0.7539, allocations: 18.39 kB / 0.9584 GB, free: 4.395 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.412e-06/0.7539, allocations: 1.375 kB / 0.9584 GB, free: 4.395 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.686e-05/0.754, allocations: 319.9 kB / 0.9587 GB, free: 4.074 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.051e-05/0.7541, allocations: 33.81 kB / 0.9587 GB, free: 4.059 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.487e-05/0.7542, allocations: 46.81 kB / 0.9588 GB, free: 4.023 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.799e-05/0.7542, allocations: 36.05 kB / 0.9588 GB, free: 4.008 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.864e-06/0.7543, allocations: 0 / 0.9588 GB, free: 4.008 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002172/0.7545, allocations: 125.7 kB / 0.9589 GB, free: 3.93 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.701e-05/0.7545, allocations: 5.875 kB / 0.9589 GB, free: 3.93 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.333e-06/0.7545, allocations: 9.078 kB / 0.9589 GB, free: 3.922 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.309e-05/0.7545, allocations: 1.562 kB / 0.9589 GB, free: 3.922 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001108/0.7547, allocations: 20.86 kB / 0.959 GB, free: 3.91 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.324e-06/0.7547, allocations: 1.781 kB / 0.959 GB, free: 3.91 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.324e-05/0.7547, allocations: 12.41 kB / 0.959 GB, free: 3.902 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.469e-05/0.7548, allocations: 6.562 kB / 0.959 GB, free: 3.898 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 7.172e-05/0.7548, allocations: 122.9 kB / 0.9591 GB, free: 3.777 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.298e-05/0.7549, allocations: 3.188 kB / 0.9591 GB, free: 3.777 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.516e-05/0.7549, allocations: 9.875 kB / 0.9591 GB, free: 3.77 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.998e-06/0.7549, allocations: 5.734 kB / 0.9591 GB, free: 3.766 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.741e-06/0.7549, allocations: 4 kB / 0.9591 GB, free: 3.762 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.046e-06/0.7549, allocations: 0 / 0.9591 GB, free: 3.762 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003638/0.7553, allocations: 388.9 kB / 0.9595 GB, free: 3.391 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-06/0.7553, allocations: 0 / 0.9595 GB, free: 3.391 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.716e-05/0.7553, allocations: 4.562 kB / 0.9595 GB, free: 3.391 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.797e-06/0.7553, allocations: 7.938 kB / 0.9595 GB, free: 3.383 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.126e-05/0.7554, allocations: 5.469 kB / 0.9595 GB, free: 3.379 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.394e-06/0.7554, allocations: 0 / 0.9595 GB, free: 3.379 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.492e-06/0.7554, allocations: 5.531 kB / 0.9595 GB, free: 3.375 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002316/0.7556, allocations: 209.4 kB / 0.9597 GB, free: 3.207 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.016e-05/0.7556, allocations: 87.75 kB / 0.9598 GB, free: 3.105 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.98e-05/0.7557, allocations: 9.328 kB / 0.9598 GB, free: 3.098 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.347e-05/0.7558, allocations: 4.125 kB / 0.9598 GB, free: 3.098 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.255e-05/0.7558, allocations: 10.73 kB / 0.9598 GB, free: 3.09 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.167e-06/0.7558, allocations: 1.375 kB / 0.9598 GB, free: 3.09 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.381e-05/0.7559, allocations: 92.89 kB / 0.9599 GB, free: 3.008 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.31e-07/0.7559, allocations: 0 / 0.9599 GB, free: 3.008 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003055/0.7562, allocations: 35.5 kB / 0.9599 GB, free: 3 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.0003402/0.7565, allocations: 170.3 kB / 0.9601 GB, free: 2.875 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002358/0.7568, allocations: 78.64 kB / 0.9602 GB, free: 2.844 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.7568, allocations: 0 / 0.9602 GB, free: 2.844 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 9.58e-05/0.7569, allocations: 43.42 kB / 0.9602 GB, free: 2.824 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002641/0.7572, allocations: 12.28 kB / 0.9602 GB, free: 2.816 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003683/0.7575, allocations: 205.7 kB / 0.9604 GB, free: 2.633 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001149/0.7577, allocations: 0.693 MB / 0.9611 GB, free: 1.926 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.653e-05/0.7577, allocations: 2.938 kB / 0.9611 GB, free: 1.926 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.366e-05/0.7577, allocations: 10.19 kB / 0.9611 GB, free: 1.918 MB / 0.7169 GB Notification: Performance of SimCode: time 3.91e-07/0.7577, allocations: 1.375 kB / 0.9611 GB, free: 1.918 MB / 0.7169 GB Notification: Performance of Templates: time 0.003984/0.7617, allocations: 1.337 MB / 0.9624 GB, free: 1.223 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/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