Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall.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.Herkel2008WindowsSmall,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.Herkel2008WindowsSmall") translateModel(Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall,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.Herkel2008WindowsSmall") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001389/0.001389, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001746/0.001745, allocations: 193.9 kB / 16.14 MB, free: 6.711 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.401/1.401, allocations: 222.9 MB / 239.8 MB, free: 4.523 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.848/2.848, allocations: 472.6 MB / 0.7447 GB, free: 4.914 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001621/0.001621, allocations: 65.39 kB / 0.9114 GB, free: 33.61 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3523/0.3539, allocations: 159.9 MB / 1.068 GB, free: 10.88 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall): time 0.002744/0.3567, allocations: 1.56 MB / 1.069 GB, free: 9.312 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001331/0.3581, allocations: 0.74 MB / 1.07 GB, free: 8.566 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.857e-05/0.3581, allocations: 3.938 kB / 1.07 GB, free: 8.562 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 3.463e-05/0.3582, allocations: 0 / 1.07 GB, free: 8.562 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 6.061e-05/0.3582, allocations: 15.91 kB / 1.07 GB, free: 8.547 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004721/0.3587, allocations: 99.78 kB / 1.07 GB, free: 8.449 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001023/0.3588, allocations: 71.77 kB / 1.07 GB, free: 8.379 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 8.479e-05/0.3589, allocations: 11.98 kB / 1.07 GB, free: 8.367 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 8.893e-05/0.359, allocations: 35.84 kB / 1.07 GB, free: 8.332 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 6.217e-05/0.3591, allocations: 35.89 kB / 1.07 GB, free: 8.297 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.757e-05/0.3591, allocations: 4 kB / 1.07 GB, free: 8.293 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001755/0.3593, allocations: 95.84 kB / 1.07 GB, free: 8.199 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 2.551e-05/0.3593, allocations: 15.92 kB / 1.07 GB, free: 8.184 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 5.427e-05/0.3594, allocations: 27.86 kB / 1.07 GB, free: 8.156 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002062/0.3596, allocations: 139.9 kB / 1.07 GB, free: 8.02 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 5.039e-06/0.3596, allocations: 4 kB / 1.07 GB, free: 8.016 MB / 0.8262 GB Notification: Performance of FrontEnd: time 7.82e-07/0.3596, allocations: 0 / 1.07 GB, free: 8.016 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 3.667e-06/0.3596, allocations: 0 / 1.07 GB, free: 8.016 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.0006246/0.3602, allocations: 413 kB / 1.071 GB, free: 7.559 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.522e-05/0.3603, allocations: 16.03 kB / 1.071 GB, free: 7.543 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.536e-05/0.3603, allocations: 8.844 kB / 1.071 GB, free: 7.535 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001334/0.3605, allocations: 180.1 kB / 1.071 GB, free: 7.32 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.377e-05/0.3605, allocations: 4.359 kB / 1.071 GB, free: 7.316 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.849e-05/0.3605, allocations: 8.375 kB / 1.071 GB, free: 7.309 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001838/0.3607, allocations: 69.97 kB / 1.071 GB, free: 7.234 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.68e-05/0.3607, allocations: 3.984 kB / 1.071 GB, free: 7.23 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.271e-05/0.3608, allocations: 0 / 1.071 GB, free: 7.23 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.228e-06/0.3608, allocations: 0 / 1.071 GB, free: 7.23 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001395/0.3609, allocations: 39.97 kB / 1.071 GB, free: 7.191 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005925/0.3615, allocations: 316.8 kB / 1.071 GB, free: 6.832 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001303/0.3617, allocations: 46.5 kB / 1.071 GB, free: 6.777 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.398e-05/0.3618, allocations: 36.97 kB / 1.071 GB, free: 6.738 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.037e-05/0.3618, allocations: 0 / 1.071 GB, free: 6.738 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001982/0.362, allocations: 83.31 kB / 1.071 GB, free: 6.645 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=7): time 1.793e-06/0.362, allocations: 0 / 1.071 GB, free: 6.645 MB / 0.8262 GB Notification: Performance of matching and sorting (n=7): time 0.0004121/0.3624, allocations: 141.7 kB / 1.072 GB, free: 6.5 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.925e-05/0.3625, allocations: 63.41 kB / 1.072 GB, free: 6.426 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.987e-05/0.3626, allocations: 121.8 kB / 1.072 GB, free: 6.297 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.742e-05/0.3626, allocations: 25.7 kB / 1.072 GB, free: 6.266 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 4.735e-05/0.3627, allocations: 92.12 kB / 1.072 GB, free: 6.172 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.201e-05/0.3627, allocations: 19.81 kB / 1.072 GB, free: 6.152 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.941e-05/0.3627, allocations: 29.7 kB / 1.072 GB, free: 6.117 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001191/0.3629, allocations: 326.8 kB / 1.072 GB, free: 5.789 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.736e-05/0.363, allocations: 23.98 kB / 1.072 GB, free: 5.766 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001051/0.3631, allocations: 46.56 kB / 1.072 GB, free: 5.711 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001619/0.3632, allocations: 78.42 kB / 1.072 GB, free: 5.625 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.814e-06/0.3632, allocations: 0 / 1.072 GB, free: 5.625 MB / 0.8262 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002543/0.3635, allocations: 117.5 kB / 1.073 GB, free: 5.504 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.485e-05/0.3635, allocations: 5.406 kB / 1.073 GB, free: 5.5 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.469e-06/0.3635, allocations: 0 / 1.073 GB, free: 5.5 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.331e-05/0.3636, allocations: 4 kB / 1.073 GB, free: 5.496 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.767e-05/0.3637, allocations: 11.98 kB / 1.073 GB, free: 5.484 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.37e-06/0.3637, allocations: 0 / 1.073 GB, free: 5.484 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.05e-05/0.3638, allocations: 8 kB / 1.073 GB, free: 5.477 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.883e-05/0.3638, allocations: 4 kB / 1.073 GB, free: 5.473 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 0.0001011/0.3639, allocations: 129.8 kB / 1.073 GB, free: 5.336 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.818e-05/0.3639, allocations: 7.906 kB / 1.073 GB, free: 5.328 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.646e-05/0.3639, allocations: 8.375 kB / 1.073 GB, free: 5.32 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.523e-06/0.3639, allocations: 0 / 1.073 GB, free: 5.32 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.587e-06/0.364, allocations: 4 kB / 1.073 GB, free: 5.316 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.435e-06/0.364, allocations: 0 / 1.073 GB, free: 5.316 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000449/0.3644, allocations: 382.3 kB / 1.073 GB, free: 4.887 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.3644, allocations: 0 / 1.073 GB, free: 4.887 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.572e-05/0.3645, allocations: 15.98 kB / 1.073 GB, free: 4.871 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.794e-06/0.3645, allocations: 0 / 1.073 GB, free: 4.871 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.311e-05/0.3645, allocations: 4 kB / 1.073 GB, free: 4.867 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.333e-06/0.3645, allocations: 0 / 1.073 GB, free: 4.867 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.335e-06/0.3645, allocations: 3.938 kB / 1.073 GB, free: 4.863 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00028/0.3648, allocations: 203.4 kB / 1.073 GB, free: 4.648 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 3.718e-05/0.3649, allocations: 85 kB / 1.073 GB, free: 4.547 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.874e-05/0.3649, allocations: 8 kB / 1.073 GB, free: 4.539 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.366e-05/0.365, allocations: 4 kB / 1.073 GB, free: 4.535 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.266e-05/0.365, allocations: 11.92 kB / 1.073 GB, free: 4.523 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.093e-05/0.365, allocations: 7.938 kB / 1.073 GB, free: 4.516 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 4.89e-05/0.3651, allocations: 91.27 kB / 1.073 GB, free: 4.426 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.61e-07/0.3651, allocations: 3.938 kB / 1.073 GB, free: 4.422 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003105/0.3654, allocations: 39.94 kB / 1.074 GB, free: 4.383 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.0003377/0.3658, allocations: 166.9 kB / 1.074 GB, free: 4.227 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002454/0.366, allocations: 75.88 kB / 1.074 GB, free: 4.152 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.366, allocations: 0 / 1.074 GB, free: 4.152 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 9.956e-05/0.3661, allocations: 31.98 kB / 1.074 GB, free: 4.121 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002587/0.3664, allocations: 14.98 kB / 1.074 GB, free: 4.109 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003855/0.3668, allocations: 186.3 kB / 1.074 GB, free: 3.895 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002787/0.3671, allocations: 0.6926 MB / 1.075 GB, free: 3.176 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 4.172e-05/0.3671, allocations: 8 kB / 1.075 GB, free: 3.168 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.166e-05/0.3672, allocations: 15.42 kB / 1.075 GB, free: 3.152 MB / 0.8262 GB Notification: Performance of SimCode: time 3.4e-07/0.3672, allocations: 0 / 1.075 GB, free: 3.152 MB / 0.8262 GB Notification: Performance of Templates: time 0.003856/0.371, allocations: 1.361 MB / 1.076 GB, free: 1.793 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall.makefile (rm -f Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall.pipe ; mkfifo Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall.pipe ; head -c 1048576 < Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall.pipe >> ../files/Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall.sim & ./Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Occupants_Office_Windows_Validation_Herkel2008WindowsSmall.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall.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