Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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.Zhang2012WindowsWest,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.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_latest_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.001346/0.001346, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.0015/0.0015, allocations: 193.4 kB / 16.13 MB, free: 6.703 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.498/1.498, allocations: 222.9 MB / 239.8 MB, free: 4.543 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.12/3.12, allocations: 472.6 MB / 0.7447 GB, free: 4.938 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001293/0.001293, allocations: 66.42 kB / 0.9114 GB, free: 33.63 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3775/0.3789, allocations: 159.9 MB / 1.068 GB, free: 10.85 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest): time 0.002878/0.3818, allocations: 1.557 MB / 1.069 GB, free: 9.285 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001308/0.3831, allocations: 0.7402 MB / 1.07 GB, free: 8.539 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.791e-05/0.3832, allocations: 0 / 1.07 GB, free: 8.539 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 2.876e-05/0.3832, allocations: 0 / 1.07 GB, free: 8.539 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 5.347e-05/0.3833, allocations: 7.875 kB / 1.07 GB, free: 8.531 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004731/0.3837, allocations: 107.8 kB / 1.07 GB, free: 8.426 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 9.078e-05/0.3838, allocations: 67.83 kB / 1.07 GB, free: 8.359 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 9.075e-05/0.3839, allocations: 19.98 kB / 1.07 GB, free: 8.34 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 8.395e-05/0.384, allocations: 27.91 kB / 1.07 GB, free: 8.312 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 6.267e-05/0.3841, allocations: 39.83 kB / 1.07 GB, free: 8.273 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.914e-05/0.3841, allocations: 4 kB / 1.07 GB, free: 8.27 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001785/0.3843, allocations: 91.84 kB / 1.07 GB, free: 8.18 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 2.719e-05/0.3843, allocations: 15.92 kB / 1.07 GB, free: 8.164 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 5.014e-05/0.3844, allocations: 27.86 kB / 1.07 GB, free: 8.137 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002242/0.3846, allocations: 139.9 kB / 1.07 GB, free: 8 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.888e-06/0.3846, allocations: 0 / 1.07 GB, free: 8 MB / 0.8262 GB Notification: Performance of FrontEnd: time 8.22e-07/0.3846, allocations: 4 kB / 1.07 GB, free: 7.996 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 4.299e-06/0.3847, allocations: 0 / 1.07 GB, free: 7.996 MB / 0.8262 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.0006698/0.3853, allocations: 422 kB / 1.071 GB, free: 7.531 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.953e-05/0.3854, allocations: 11.97 kB / 1.071 GB, free: 7.52 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.79e-05/0.3854, allocations: 8.844 kB / 1.071 GB, free: 7.512 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001354/0.3856, allocations: 176.2 kB / 1.071 GB, free: 7.301 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.064e-05/0.3856, allocations: 384 / 1.071 GB, free: 7.301 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.146e-05/0.3856, allocations: 8.359 kB / 1.071 GB, free: 7.293 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001992/0.3858, allocations: 81.97 kB / 1.071 GB, free: 7.207 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.914e-06/0.3858, allocations: 0 / 1.071 GB, free: 7.207 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.38e-05/0.3859, allocations: 0 / 1.071 GB, free: 7.207 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.742e-06/0.3859, allocations: 0 / 1.071 GB, free: 7.207 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001413/0.386, allocations: 47.89 kB / 1.071 GB, free: 7.16 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006434/0.3867, allocations: 316.7 kB / 1.071 GB, free: 6.801 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001267/0.3868, allocations: 42.56 kB / 1.071 GB, free: 6.75 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.882e-05/0.3869, allocations: 32.97 kB / 1.071 GB, free: 6.715 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.282e-05/0.3869, allocations: 4.062 kB / 1.071 GB, free: 6.711 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001936/0.3871, allocations: 79.38 kB / 1.072 GB, free: 6.621 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=7): time 1.423e-06/0.3871, allocations: 4 kB / 1.072 GB, free: 6.617 MB / 0.8262 GB Notification: Performance of matching and sorting (n=7): time 0.0003843/0.3875, allocations: 141.5 kB / 1.072 GB, free: 6.473 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.267e-05/0.3876, allocations: 51.41 kB / 1.072 GB, free: 6.41 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001041/0.3877, allocations: 129.7 kB / 1.072 GB, free: 6.273 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.773e-05/0.3877, allocations: 25.7 kB / 1.072 GB, free: 6.242 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 5.535e-05/0.3878, allocations: 92.12 kB / 1.072 GB, free: 6.148 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.053e-05/0.3878, allocations: 19.73 kB / 1.072 GB, free: 6.129 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.006e-05/0.3879, allocations: 37.7 kB / 1.072 GB, free: 6.086 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.000112/0.388, allocations: 318.8 kB / 1.072 GB, free: 5.766 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.464e-05/0.3881, allocations: 27.97 kB / 1.072 GB, free: 5.738 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.829e-05/0.3882, allocations: 42.56 kB / 1.072 GB, free: 5.688 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001617/0.3883, allocations: 82.78 kB / 1.072 GB, free: 5.598 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.773e-06/0.3884, allocations: 0 / 1.072 GB, free: 5.598 MB / 0.8262 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.000248/0.3886, allocations: 113.5 kB / 1.073 GB, free: 5.48 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.401e-05/0.3886, allocations: 5.875 kB / 1.073 GB, free: 5.477 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.539e-06/0.3886, allocations: 0 / 1.073 GB, free: 5.477 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.009e-05/0.3887, allocations: 4 kB / 1.073 GB, free: 5.473 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.88e-05/0.3888, allocations: 15.92 kB / 1.073 GB, free: 5.457 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.783e-06/0.3888, allocations: 64 / 1.073 GB, free: 5.457 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.935e-05/0.3888, allocations: 15.94 kB / 1.073 GB, free: 5.441 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.285e-05/0.3889, allocations: 4 kB / 1.073 GB, free: 5.438 MB / 0.8262 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 8.357e-05/0.389, allocations: 119.3 kB / 1.073 GB, free: 5.312 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.195e-05/0.389, allocations: 11.89 kB / 1.073 GB, free: 5.301 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.569e-05/0.389, allocations: 8.375 kB / 1.073 GB, free: 5.293 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.806e-06/0.389, allocations: 4 kB / 1.073 GB, free: 5.289 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.336e-06/0.389, allocations: 0 / 1.073 GB, free: 5.289 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.335e-06/0.389, allocations: 0 / 1.073 GB, free: 5.289 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004511/0.3895, allocations: 390.3 kB / 1.073 GB, free: 4.852 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.362e-06/0.3895, allocations: 0 / 1.073 GB, free: 4.852 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.149e-05/0.3896, allocations: 4 kB / 1.073 GB, free: 4.848 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.803e-06/0.3896, allocations: 0 / 1.073 GB, free: 4.848 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.333e-05/0.3896, allocations: 3.984 kB / 1.073 GB, free: 4.844 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.946e-06/0.3896, allocations: 4 kB / 1.073 GB, free: 4.84 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.364e-06/0.3896, allocations: 3.938 kB / 1.073 GB, free: 4.836 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000293/0.3899, allocations: 211.4 kB / 1.073 GB, free: 4.613 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.935e-05/0.3899, allocations: 89 kB / 1.073 GB, free: 4.508 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.06e-05/0.39, allocations: 4 kB / 1.073 GB, free: 4.504 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.169e-05/0.3901, allocations: 4 kB / 1.073 GB, free: 4.5 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.291e-05/0.3901, allocations: 11.92 kB / 1.073 GB, free: 4.488 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.138e-05/0.3901, allocations: 4 kB / 1.073 GB, free: 4.484 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 5.034e-05/0.3902, allocations: 91.27 kB / 1.074 GB, free: 4.395 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3902, allocations: 4 kB / 1.074 GB, free: 4.391 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002851/0.3905, allocations: 36 kB / 1.074 GB, free: 4.355 MB / 0.8262 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.0003812/0.3909, allocations: 152.5 kB / 1.074 GB, free: 4.211 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002357/0.3911, allocations: 88.11 kB / 1.074 GB, free: 4.125 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.883e-06/0.3911, allocations: 3.938 kB / 1.074 GB, free: 4.121 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001052/0.3912, allocations: 32.14 kB / 1.074 GB, free: 4.09 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002553/0.3915, allocations: 11.98 kB / 1.074 GB, free: 4.078 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004301/0.3919, allocations: 190.3 kB / 1.074 GB, free: 3.859 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003122/0.3923, allocations: 0.6887 MB / 1.075 GB, free: 3.145 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 4.419e-05/0.3923, allocations: 7.984 kB / 1.075 GB, free: 3.137 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.354e-05/0.3924, allocations: 15.42 kB / 1.075 GB, free: 3.121 MB / 0.8262 GB Notification: Performance of SimCode: time 6.31e-07/0.3924, allocations: 0 / 1.075 GB, free: 3.121 MB / 0.8262 GB Notification: Performance of Templates: time 0.004476/0.3968, allocations: 1.358 MB / 1.076 GB, free: 1.766 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.makefile (rm -f Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.pipe ; mkfifo Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.pipe ; head -c 1048576 < Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.pipe >> ../files/Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.sim & ./Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsWest.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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