Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_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_10_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.001798/0.001799, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.002069/0.00207, allocations: 191 kB / 16.25 MB, free: 6.637 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.523/1.523, allocations: 222.9 MB / 239.9 MB, free: 4.523 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.81/2.81, allocations: 437 MB / 0.7101 GB, free: 5.23 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001908/0.001908, allocations: 67.89 kB / 0.8687 GB, free: 5.07 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8634/0.8653, allocations: 151.6 MB / 1.017 GB, free: 2.715 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest): time 0.004489/0.8698, allocations: 1.558 MB / 1.018 GB, free: 1.148 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001997/0.8719, allocations: 0.7207 MB / 1.019 GB, free: 432 kB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.782e-05/0.8719, allocations: 4 kB / 1.019 GB, free: 428 kB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 5.573e-05/0.872, allocations: 7.922 kB / 1.019 GB, free: 420 kB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 7.055e-05/0.8721, allocations: 3.938 kB / 1.019 GB, free: 416 kB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007876/0.8729, allocations: 111.8 kB / 1.019 GB, free: 304 kB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0001712/0.8731, allocations: 75.77 kB / 1.019 GB, free: 228 kB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001276/0.8732, allocations: 15.98 kB / 1.019 GB, free: 212 kB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001346/0.8734, allocations: 35.86 kB / 1.019 GB, free: 176 kB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 9.656e-05/0.8735, allocations: 43.81 kB / 1.019 GB, free: 132 kB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 2.932e-05/0.8736, allocations: 8 kB / 1.019 GB, free: 124 kB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003015/0.8739, allocations: 91.91 kB / 1.019 GB, free: 32 kB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 3.925e-05/0.8739, allocations: 15.92 kB / 1.019 GB, free: 16 kB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 8.764e-05/0.874, allocations: 31.94 kB / 1.019 GB, free: 15.98 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0003325/0.8744, allocations: 145.5 kB / 1.02 GB, free: 15.84 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 7.063e-06/0.8744, allocations: 8 kB / 1.02 GB, free: 15.84 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.553e-06/0.8744, allocations: 0 / 1.02 GB, free: 15.84 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 7.223e-06/0.8744, allocations: 0 / 1.02 GB, free: 15.84 MB / 0.7794 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.000959/0.8754, allocations: 420.8 kB / 1.02 GB, free: 15.37 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.984e-05/0.8755, allocations: 8.031 kB / 1.02 GB, free: 15.36 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.281e-05/0.8755, allocations: 12.83 kB / 1.02 GB, free: 15.35 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001857/0.8757, allocations: 164.4 kB / 1.02 GB, free: 15.15 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.684e-05/0.8758, allocations: 4.375 kB / 1.02 GB, free: 15.15 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.864e-05/0.8758, allocations: 8.375 kB / 1.02 GB, free: 15.14 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002853/0.8761, allocations: 73.95 kB / 1.02 GB, free: 15.06 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.201e-05/0.8761, allocations: 0 / 1.02 GB, free: 15.06 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.654e-05/0.8762, allocations: 0 / 1.02 GB, free: 15.06 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.277e-06/0.8762, allocations: 4 kB / 1.02 GB, free: 15.06 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002276/0.8764, allocations: 39.91 kB / 1.02 GB, free: 15.02 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009994/0.8774, allocations: 324.6 kB / 1.021 GB, free: 14.65 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00021/0.8777, allocations: 50.55 kB / 1.021 GB, free: 14.59 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001515/0.8778, allocations: 28.97 kB / 1.021 GB, free: 14.56 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 5.379e-05/0.8779, allocations: 8 kB / 1.021 GB, free: 14.55 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004108/0.8783, allocations: 83.3 kB / 1.021 GB, free: 14.46 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=7): time 2.305e-06/0.8784, allocations: 3.938 kB / 1.021 GB, free: 14.46 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7): time 0.0007422/0.8791, allocations: 137.5 kB / 1.021 GB, free: 14.32 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.4e-05/0.8792, allocations: 51.41 kB / 1.021 GB, free: 14.25 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00018/0.8794, allocations: 121.8 kB / 1.021 GB, free: 14.12 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 3.552e-05/0.8794, allocations: 25.7 kB / 1.021 GB, free: 14.09 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.000108/0.8796, allocations: 92.14 kB / 1.021 GB, free: 14 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 3.444e-05/0.8796, allocations: 27.8 kB / 1.021 GB, free: 13.97 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.408e-05/0.8797, allocations: 25.72 kB / 1.021 GB, free: 13.94 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.000235/0.88, allocations: 322.8 kB / 1.022 GB, free: 13.62 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001516/0.8801, allocations: 27.92 kB / 1.022 GB, free: 13.59 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001722/0.8803, allocations: 50.55 kB / 1.022 GB, free: 13.53 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002942/0.8806, allocations: 70.56 kB / 1.022 GB, free: 13.45 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.946e-06/0.8806, allocations: 0 / 1.022 GB, free: 13.45 MB / 0.7794 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0004362/0.8811, allocations: 109.5 kB / 1.022 GB, free: 13.34 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 2.594e-05/0.8811, allocations: 8 kB / 1.022 GB, free: 13.33 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.073e-05/0.8811, allocations: 0 / 1.022 GB, free: 13.33 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.989e-05/0.8812, allocations: 3.938 kB / 1.022 GB, free: 13.33 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001703/0.8814, allocations: 20.05 kB / 1.022 GB, free: 13.31 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.017e-05/0.8814, allocations: 0 / 1.022 GB, free: 13.31 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001265/0.8815, allocations: 15.83 kB / 1.022 GB, free: 13.29 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.97e-05/0.8816, allocations: 8 kB / 1.022 GB, free: 13.29 MB / 0.7794 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.0001723/0.8818, allocations: 121.8 kB / 1.022 GB, free: 13.16 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.678e-05/0.8818, allocations: 0 / 1.022 GB, free: 13.16 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.346e-05/0.8819, allocations: 12.38 kB / 1.022 GB, free: 13.14 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.058e-05/0.8819, allocations: 0 / 1.022 GB, free: 13.14 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.438e-06/0.8819, allocations: 11.92 kB / 1.022 GB, free: 13.13 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.406e-06/0.8819, allocations: 0 / 1.022 GB, free: 13.13 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008091/0.8828, allocations: 386.3 kB / 1.022 GB, free: 12.7 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.516e-06/0.8828, allocations: 0 / 1.022 GB, free: 12.7 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.781e-05/0.8828, allocations: 4 kB / 1.022 GB, free: 12.69 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.097e-06/0.8829, allocations: 0 / 1.022 GB, free: 12.69 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.957e-05/0.8829, allocations: 4 kB / 1.022 GB, free: 12.69 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.154e-06/0.8829, allocations: 0 / 1.022 GB, free: 12.69 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.28e-06/0.8829, allocations: 3.938 kB / 1.022 GB, free: 12.68 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005005/0.8834, allocations: 207.4 kB / 1.023 GB, free: 12.46 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001219/0.8836, allocations: 85.02 kB / 1.023 GB, free: 12.36 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.006e-05/0.8836, allocations: 4 kB / 1.023 GB, free: 12.36 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001495/0.8838, allocations: 7.984 kB / 1.023 GB, free: 12.35 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.863e-05/0.8838, allocations: 7.938 kB / 1.023 GB, free: 12.34 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.821e-05/0.8839, allocations: 3.984 kB / 1.023 GB, free: 12.34 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 9.664e-05/0.884, allocations: 95.88 kB / 1.023 GB, free: 12.25 MB / 0.7794 GB Notification: Performance of sort global known variables: time 2.8e-07/0.884, allocations: 0 / 1.023 GB, free: 12.25 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0005549/0.8846, allocations: 43.98 kB / 1.023 GB, free: 12.2 MB / 0.7794 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.0006044/0.8852, allocations: 166.6 kB / 1.023 GB, free: 12.05 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0004994/0.8857, allocations: 79.88 kB / 1.023 GB, free: 11.97 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 3.336e-06/0.8857, allocations: 0 / 1.023 GB, free: 11.97 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001761/0.8859, allocations: 35.92 kB / 1.023 GB, free: 11.93 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004101/0.8863, allocations: 4 kB / 1.023 GB, free: 11.93 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007382/0.8871, allocations: 196.5 kB / 1.023 GB, free: 11.71 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004746/0.8876, allocations: 0.6885 MB / 1.024 GB, free: 10.99 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 5.342e-05/0.8877, allocations: 3.938 kB / 1.024 GB, free: 10.99 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.594e-05/0.8877, allocations: 11.44 kB / 1.024 GB, free: 10.98 MB / 0.7794 GB Notification: Performance of SimCode: time 4.01e-07/0.8877, allocations: 0 / 1.024 GB, free: 10.98 MB / 0.7794 GB Notification: Performance of Templates: time 0.007613/0.8953, allocations: 1.414 MB / 1.025 GB, free: 9.566 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.makefile (rm -f Buildings_10_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.pipe ; mkfifo Buildings_10_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.pipe ; head -c 1048576 < Buildings_10_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.pipe >> ../files/Buildings_10_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.sim & ./Buildings_10_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsWest.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_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