Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 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: "" <> buildModelFMU(Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall,fileNamePrefix="Buildings_10_Buildings_Occupants_Office_Windows_Validation_Herkel2008WindowsSmall",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall,fileNamePrefix="Buildings_10_Buildings_Occupants_Office_Windows_Validation_Herkel2008WindowsSmall",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.01463/0.01463, allocations: 100.6 kB / 15.73 MB, free: 6.004 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.001842/0.001842, allocations: 196.8 kB / 16.68 MB, free: 5.926 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.379/1.379, allocations: 222.9 MB / 240.4 MB, free: 15.06 MB / 206.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.502/2.502, allocations: 437 MB / 0.7105 GB, free: 4.355 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001452/0.001452, allocations: 64.12 kB / 1.018 GB, free: 9.906 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8779/0.8794, allocations: 151.6 MB / 1.166 GB, free: 3.746 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall): time 0.002729/0.8821, allocations: 1.512 MB / 1.168 GB, free: 2.227 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.00149/0.8837, allocations: 0.7284 MB / 1.168 GB, free: 1.492 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.931e-05/0.8837, allocations: 0 / 1.168 GB, free: 1.492 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 3.444e-05/0.8838, allocations: 3.938 kB / 1.168 GB, free: 1.488 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 6.666e-05/0.8839, allocations: 15.84 kB / 1.168 GB, free: 1.473 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006605/0.8845, allocations: 119.6 kB / 1.168 GB, free: 1.355 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0001489/0.8847, allocations: 79.75 kB / 1.169 GB, free: 1.277 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001198/0.8848, allocations: 8 kB / 1.169 GB, free: 1.27 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000104/0.8849, allocations: 39.84 kB / 1.169 GB, free: 1.23 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 7.831e-05/0.885, allocations: 43.83 kB / 1.169 GB, free: 1.188 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 2.528e-05/0.8851, allocations: 8 kB / 1.169 GB, free: 1.18 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002097/0.8853, allocations: 83.91 kB / 1.169 GB, free: 1.098 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 2.71e-05/0.8853, allocations: 19.98 kB / 1.169 GB, free: 1.078 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 6.264e-05/0.8854, allocations: 39.78 kB / 1.169 GB, free: 1.039 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0002542/0.8856, allocations: 145.9 kB / 1.169 GB, free: 0.8984 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 4.449e-06/0.8857, allocations: 0 / 1.169 GB, free: 0.8984 MB / 0.8887 GB Notification: Performance of FrontEnd: time 2.004e-06/0.8857, allocations: 0 / 1.169 GB, free: 0.8984 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 1.273e-05/0.8857, allocations: 3.984 kB / 1.169 GB, free: 0.8945 MB / 0.8887 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.0007067/0.8864, allocations: 412.9 kB / 1.169 GB, free: 448 kB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 4.609e-05/0.8864, allocations: 8.922 kB / 1.169 GB, free: 440 kB / 0.8887 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.382e-05/0.8865, allocations: 38.75 kB / 1.169 GB, free: 392 kB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.651e-05/0.8865, allocations: 12.83 kB / 1.169 GB, free: 380 kB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001125/0.8867, allocations: 168.3 kB / 1.17 GB, free: 172 kB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.653e-05/0.8867, allocations: 4.375 kB / 1.17 GB, free: 168 kB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.727e-05/0.8867, allocations: 8.375 kB / 1.17 GB, free: 160 kB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001958/0.8869, allocations: 69.72 kB / 1.17 GB, free: 84 kB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.584e-06/0.8869, allocations: 4 kB / 1.17 GB, free: 80 kB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.041e-05/0.8869, allocations: 0 / 1.17 GB, free: 80 kB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.028e-06/0.887, allocations: 0 / 1.17 GB, free: 80 kB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001219/0.8871, allocations: 39.97 kB / 1.17 GB, free: 40 kB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000578/0.8877, allocations: 316.7 kB / 1.17 GB, free: 15.68 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001262/0.8878, allocations: 54.48 kB / 1.17 GB, free: 15.62 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.77e-05/0.8879, allocations: 32.97 kB / 1.17 GB, free: 15.58 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 2.387e-05/0.8879, allocations: 4 kB / 1.17 GB, free: 15.58 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001939/0.8881, allocations: 83.22 kB / 1.17 GB, free: 15.48 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=7): time 1.453e-06/0.8881, allocations: 0 / 1.17 GB, free: 15.48 MB / 0.9044 GB Notification: Performance of matching and sorting (n=7): time 0.00037/0.8885, allocations: 133.6 kB / 1.17 GB, free: 15.35 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.359e-05/0.8886, allocations: 63.34 kB / 1.17 GB, free: 15.27 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.26e-05/0.8887, allocations: 125.7 kB / 1.17 GB, free: 15.14 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 1.745e-05/0.8887, allocations: 29.7 kB / 1.17 GB, free: 15.11 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 4.466e-05/0.8887, allocations: 88.2 kB / 1.171 GB, free: 15.02 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 2.04e-05/0.8888, allocations: 23.73 kB / 1.171 GB, free: 14.99 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.475e-05/0.8888, allocations: 25.72 kB / 1.171 GB, free: 14.96 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001065/0.8889, allocations: 326.8 kB / 1.171 GB, free: 14.63 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.609e-05/0.889, allocations: 19.98 kB / 1.171 GB, free: 14.61 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.071e-05/0.8891, allocations: 54.55 kB / 1.171 GB, free: 14.55 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001509/0.8893, allocations: 66.5 kB / 1.171 GB, free: 14.48 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.867e-06/0.8893, allocations: 4 kB / 1.171 GB, free: 14.47 MB / 0.9044 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.000221/0.8895, allocations: 109.6 kB / 1.171 GB, free: 14.36 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.578e-05/0.8895, allocations: 12 kB / 1.171 GB, free: 14.35 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.169e-06/0.8895, allocations: 0 / 1.171 GB, free: 14.35 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.456e-05/0.8896, allocations: 3.984 kB / 1.171 GB, free: 14.34 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.772e-05/0.8897, allocations: 11.98 kB / 1.171 GB, free: 14.33 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.141e-06/0.8897, allocations: 4 kB / 1.171 GB, free: 14.33 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.757e-05/0.8897, allocations: 15.92 kB / 1.171 GB, free: 14.31 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.422e-05/0.8898, allocations: 4 kB / 1.171 GB, free: 14.31 MB / 0.9044 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 9.699e-05/0.8899, allocations: 125.7 kB / 1.171 GB, free: 14.18 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.763e-05/0.8899, allocations: 7.906 kB / 1.171 GB, free: 14.17 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.87e-05/0.8899, allocations: 8.375 kB / 1.171 GB, free: 14.16 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.884e-06/0.8899, allocations: 3.938 kB / 1.171 GB, free: 14.16 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.484e-06/0.8899, allocations: 7.984 kB / 1.171 GB, free: 14.15 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.056e-06/0.89, allocations: 0 / 1.171 GB, free: 14.15 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004394/0.8904, allocations: 378.5 kB / 1.172 GB, free: 13.72 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.473e-06/0.8904, allocations: 0 / 1.172 GB, free: 13.72 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.054e-05/0.8905, allocations: 3.938 kB / 1.172 GB, free: 13.72 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.923e-06/0.8905, allocations: 8 kB / 1.172 GB, free: 13.71 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.242e-05/0.8905, allocations: 4 kB / 1.172 GB, free: 13.71 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.465e-06/0.8905, allocations: 3.938 kB / 1.172 GB, free: 13.7 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.71e-07/0.8905, allocations: 0 / 1.172 GB, free: 13.7 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002685/0.8908, allocations: 207.4 kB / 1.172 GB, free: 13.48 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 3.741e-05/0.8908, allocations: 81.02 kB / 1.172 GB, free: 13.39 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.994e-05/0.8909, allocations: 0 / 1.172 GB, free: 13.39 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.19e-05/0.891, allocations: 19.92 kB / 1.172 GB, free: 13.37 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.46e-05/0.891, allocations: 4 kB / 1.172 GB, free: 13.36 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.759e-06/0.891, allocations: 3.984 kB / 1.172 GB, free: 13.36 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 5.003e-05/0.8911, allocations: 91.28 kB / 1.172 GB, free: 13.27 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.21e-07/0.8911, allocations: 0 / 1.172 GB, free: 13.27 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.000288/0.8914, allocations: 43.92 kB / 1.172 GB, free: 13.23 MB / 0.9044 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.0007463/0.8921, allocations: 0.8115 MB / 1.173 GB, free: 12.4 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0002354/0.8924, allocations: 71.91 kB / 1.173 GB, free: 12.33 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 4.488e-06/0.8924, allocations: 128 / 1.173 GB, free: 12.33 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 9.547e-05/0.8925, allocations: 43.91 kB / 1.173 GB, free: 12.29 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002519/0.8927, allocations: 12.5 kB / 1.173 GB, free: 12.28 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001632/0.8944, allocations: 1.481 MB / 1.174 GB, free: 10.7 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002988/0.8947, allocations: 0.6885 MB / 1.175 GB, free: 9.988 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 3.827e-05/0.8947, allocations: 7.984 kB / 1.175 GB, free: 9.98 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.809e-05/0.8948, allocations: 23.42 kB / 1.175 GB, free: 9.957 MB / 0.9044 GB Notification: Performance of SimCode: time 3.6e-07/0.8948, allocations: 3.938 kB / 1.175 GB, free: 9.953 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02125/0.9161, allocations: 2.646 MB / 1.178 GB, free: 7.445 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.845/8.761, allocations: 21.25 kB / 1.178 GB, free: 7.43 MB / 0.9044 GB (rm -f Buildings_10_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall.pipe ; mkfifo Buildings_10_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall.pipe ; head -c 1048576 < Buildings_10_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall.pipe >> ../files/Buildings_10_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall_res.mat --tempDir=temp_Buildings_10_Buildings_Occupants_Office_Windows_Validation_Herkel2008WindowsSmall_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Occupants_Office_Windows_Validation_Herkel2008WindowsSmall.fmu > Buildings_10_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Occupants_Office_Windows_Validation_Herkel2008WindowsSmall.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_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,TOut.y,occ.startTime,occ.startValue,occ.y,time,win.A,win.B,win.TOut,win.occ,win.on,win.p,win.samplePeriod,win.seed