Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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_latest_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_latest_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.008483/0.008483, allocations: 101.5 kB / 15.73 MB, free: 6.035 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.001729/0.00173, allocations: 192.8 kB / 16.67 MB, free: 5.973 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.43/1.43, allocations: 222.9 MB / 240.4 MB, free: 4.301 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.77/2.77, allocations: 461.9 MB / 0.7348 GB, free: 14.64 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001423/0.001423, allocations: 67.91 kB / 1.054 GB, free: 7.168 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3602/0.3617, allocations: 157.4 MB / 1.208 GB, free: 9.664 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast): time 0.003522/0.3652, allocations: 1.499 MB / 1.209 GB, free: 8.152 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001553/0.3668, allocations: 0.7288 MB / 1.21 GB, free: 7.418 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.772e-05/0.3669, allocations: 3.938 kB / 1.21 GB, free: 7.414 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 3.747e-05/0.3669, allocations: 3.938 kB / 1.21 GB, free: 7.41 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 5.853e-05/0.367, allocations: 11.88 kB / 1.21 GB, free: 7.398 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007047/0.3677, allocations: 127.6 kB / 1.21 GB, free: 7.273 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0001459/0.3679, allocations: 75.77 kB / 1.21 GB, free: 7.199 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001153/0.368, allocations: 15.94 kB / 1.21 GB, free: 7.184 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001004/0.3681, allocations: 31.92 kB / 1.21 GB, free: 7.152 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 8.149e-05/0.3682, allocations: 39.81 kB / 1.21 GB, free: 7.113 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 2.064e-05/0.3683, allocations: 12 kB / 1.21 GB, free: 7.102 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002459/0.3685, allocations: 99.84 kB / 1.21 GB, free: 7.004 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 3.357e-05/0.3686, allocations: 15.92 kB / 1.21 GB, free: 6.988 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 6.122e-05/0.3686, allocations: 27.86 kB / 1.21 GB, free: 6.961 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0003054/0.3689, allocations: 151.5 kB / 1.21 GB, free: 6.812 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.369, allocations: 0 / 1.21 GB, free: 6.812 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.633e-06/0.369, allocations: 0 / 1.21 GB, free: 6.812 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 6.141e-06/0.369, allocations: 0 / 1.21 GB, free: 6.812 MB / 0.9669 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.0008138/0.3698, allocations: 419 kB / 1.211 GB, free: 6.352 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.434e-05/0.3699, allocations: 12.03 kB / 1.211 GB, free: 6.34 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.97e-05/0.3699, allocations: 8.844 kB / 1.211 GB, free: 6.332 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001516/0.3701, allocations: 172.2 kB / 1.211 GB, free: 6.125 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.957e-05/0.3701, allocations: 4.375 kB / 1.211 GB, free: 6.121 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.607e-05/0.3702, allocations: 8.375 kB / 1.211 GB, free: 6.113 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002331/0.3704, allocations: 69.91 kB / 1.211 GB, free: 6.039 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.646e-06/0.3704, allocations: 0 / 1.211 GB, free: 6.039 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.874e-05/0.3704, allocations: 7.984 kB / 1.211 GB, free: 6.031 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.885e-06/0.3705, allocations: 0 / 1.211 GB, free: 6.031 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001851/0.3707, allocations: 47.84 kB / 1.211 GB, free: 5.984 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007921/0.3715, allocations: 320.7 kB / 1.212 GB, free: 5.621 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001783/0.3717, allocations: 46.56 kB / 1.212 GB, free: 5.566 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001197/0.3718, allocations: 32.97 kB / 1.212 GB, free: 5.531 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 2.801e-05/0.3718, allocations: 4 kB / 1.212 GB, free: 5.527 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002674/0.3721, allocations: 79.31 kB / 1.212 GB, free: 5.438 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=7): time 1.894e-06/0.3721, allocations: 0 / 1.212 GB, free: 5.438 MB / 0.9669 GB Notification: Performance of matching and sorting (n=7): time 0.0005331/0.3727, allocations: 133.6 kB / 1.212 GB, free: 5.301 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.069e-05/0.3727, allocations: 51.41 kB / 1.212 GB, free: 5.238 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001346/0.3729, allocations: 129.7 kB / 1.212 GB, free: 5.102 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.494e-05/0.3729, allocations: 25.7 kB / 1.212 GB, free: 5.07 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 7.575e-05/0.373, allocations: 92.14 kB / 1.212 GB, free: 4.977 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 3.112e-05/0.373, allocations: 23.8 kB / 1.212 GB, free: 4.953 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.283e-05/0.3731, allocations: 29.7 kB / 1.212 GB, free: 4.918 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001479/0.3733, allocations: 318.8 kB / 1.212 GB, free: 4.598 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001224/0.3734, allocations: 27.92 kB / 1.212 GB, free: 4.57 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001525/0.3736, allocations: 58.92 kB / 1.213 GB, free: 4.504 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002293/0.3738, allocations: 70.55 kB / 1.213 GB, free: 4.426 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.3738, allocations: 0 / 1.213 GB, free: 4.426 MB / 0.9669 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003496/0.3742, allocations: 109.5 kB / 1.213 GB, free: 4.312 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 2.838e-05/0.3742, allocations: 11.98 kB / 1.213 GB, free: 4.301 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.212e-06/0.3742, allocations: 0 / 1.213 GB, free: 4.301 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.546e-05/0.3743, allocations: 0 / 1.213 GB, free: 4.301 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001252/0.3744, allocations: 11.94 kB / 1.213 GB, free: 4.289 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.251e-05/0.3744, allocations: 4 kB / 1.213 GB, free: 4.285 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.907e-05/0.3745, allocations: 15.92 kB / 1.213 GB, free: 4.27 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.435e-05/0.3746, allocations: 0 / 1.213 GB, free: 4.27 MB / 0.9669 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,win.curSeed,$PRE.win.curSeed,win.p,$PRE.win.p,win.on,$PRE.win.on,win.sampleTrigger,$whenCondition1) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000122/0.3747, allocations: 125.8 kB / 1.213 GB, free: 4.137 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.524e-05/0.3747, allocations: 7.906 kB / 1.213 GB, free: 4.129 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.918e-05/0.3748, allocations: 16.36 kB / 1.213 GB, free: 4.109 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.034e-06/0.3748, allocations: 0 / 1.213 GB, free: 4.109 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.22e-06/0.3748, allocations: 0 / 1.213 GB, free: 4.109 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.067e-06/0.3748, allocations: 0 / 1.213 GB, free: 4.109 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006207/0.3754, allocations: 386.3 kB / 1.213 GB, free: 3.676 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/0.3754, allocations: 0 / 1.213 GB, free: 3.676 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.42e-05/0.3755, allocations: 4 kB / 1.213 GB, free: 3.672 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.795e-06/0.3755, allocations: 4 kB / 1.213 GB, free: 3.668 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.541e-05/0.3755, allocations: 7.984 kB / 1.213 GB, free: 3.66 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.064e-06/0.3756, allocations: 4.406 kB / 1.213 GB, free: 3.656 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.647e-06/0.3756, allocations: 3.938 kB / 1.213 GB, free: 3.652 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004056/0.376, allocations: 211.3 kB / 1.213 GB, free: 3.43 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 6.088e-05/0.3761, allocations: 81.02 kB / 1.214 GB, free: 3.332 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.876e-05/0.3761, allocations: 4 kB / 1.214 GB, free: 3.328 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001434/0.3763, allocations: 11.98 kB / 1.214 GB, free: 3.316 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.747e-05/0.3763, allocations: 7.938 kB / 1.214 GB, free: 3.309 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.422e-05/0.3763, allocations: 3.984 kB / 1.214 GB, free: 3.305 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 6.819e-05/0.3764, allocations: 95.27 kB / 1.214 GB, free: 3.211 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.9e-07/0.3764, allocations: 0 / 1.214 GB, free: 3.211 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0004399/0.3769, allocations: 36 kB / 1.214 GB, free: 3.176 MB / 0.9669 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004372/0.3773, allocations: 161.3 kB / 1.214 GB, free: 3.023 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0003454/0.3777, allocations: 71.88 kB / 1.214 GB, free: 2.953 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.3777, allocations: 0 / 1.214 GB, free: 2.953 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0001466/0.3778, allocations: 39.92 kB / 1.214 GB, free: 2.914 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003913/0.3782, allocations: 4 kB / 1.214 GB, free: 2.91 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005443/0.3788, allocations: 200.4 kB / 1.214 GB, free: 2.684 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003285/0.3792, allocations: 0.6885 MB / 1.215 GB, free: 1.969 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 4.741e-05/0.3792, allocations: 4 kB / 1.215 GB, free: 1.965 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.939e-05/0.3793, allocations: 11.44 kB / 1.215 GB, free: 1.953 MB / 0.9669 GB Notification: Performance of SimCode: time 3.31e-07/0.3793, allocations: 0 / 1.215 GB, free: 1.953 MB / 0.9669 GB Notification: Performance of Templates: time 0.005308/0.3846, allocations: 1.456 MB / 1.216 GB, free: 0.5039 MB / 0.9669 GB make -j1 -f Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast.makefile (rm -f Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast.pipe ; mkfifo Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast.pipe ; head -c 1048576 < Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast.pipe >> ../files/Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast.sim & ./Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsEast.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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