Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_Buildings_Occupants_Office_Windows_Validation_Herkel2008WindowsSmall",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall,fileNamePrefix="Buildings_9_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.005422/0.005422, allocations: 101.5 kB / 15.73 MB, free: 6.031 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.001155/0.001155, allocations: 188.6 kB / 16.67 MB, free: 5.969 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.394/1.394, allocations: 222.9 MB / 240.4 MB, free: 4.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.648/2.648, allocations: 390.3 MB / 0.6648 GB, free: 188 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001297/0.001297, allocations: 62.02 kB / 0.9504 GB, free: 5.883 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.293/0.2943, allocations: 140.4 MB / 1.087 GB, free: 2.016 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall): time 0.003003/0.2973, allocations: 1.486 MB / 1.089 GB, free: 0.5156 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001408/0.2988, allocations: 0.7375 MB / 1.09 GB, free: 15.77 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.152e-05/0.2989, allocations: 0 / 1.09 GB, free: 15.77 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.422e-05/0.299, allocations: 3.938 kB / 1.09 GB, free: 15.77 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 7.173e-05/0.299, allocations: 15.86 kB / 1.09 GB, free: 15.75 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006857/0.2997, allocations: 119.6 kB / 1.09 GB, free: 15.64 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001611/0.2999, allocations: 75.83 kB / 1.09 GB, free: 15.56 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001088/0.3, allocations: 7.984 kB / 1.09 GB, free: 15.55 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001155/0.3001, allocations: 43.91 kB / 1.09 GB, free: 15.51 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 8.504e-05/0.3002, allocations: 43.83 kB / 1.09 GB, free: 15.47 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.038e-05/0.3003, allocations: 7.938 kB / 1.09 GB, free: 15.46 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002389/0.3005, allocations: 87.91 kB / 1.09 GB, free: 15.38 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 3.261e-05/0.3005, allocations: 23.91 kB / 1.09 GB, free: 15.35 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 5.061e-05/0.3006, allocations: 27.86 kB / 1.09 GB, free: 15.32 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002567/0.3009, allocations: 146.4 kB / 1.09 GB, free: 15.18 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.509e-06/0.3009, allocations: 0 / 1.09 GB, free: 15.18 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.573e-06/0.3009, allocations: 0 / 1.09 GB, free: 15.18 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.62e-06/0.3009, allocations: 0 / 1.09 GB, free: 15.18 MB / 0.8575 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.0006616/0.3016, allocations: 421.8 kB / 1.091 GB, free: 14.72 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.227e-05/0.3016, allocations: 8.031 kB / 1.091 GB, free: 14.71 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.738e-05/0.3017, allocations: 42.73 kB / 1.091 GB, free: 14.66 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.17e-05/0.3017, allocations: 8.844 kB / 1.091 GB, free: 14.65 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001294/0.3019, allocations: 180.2 kB / 1.091 GB, free: 14.44 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.48e-05/0.3019, allocations: 384 / 1.091 GB, free: 14.44 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.954e-05/0.3019, allocations: 8.375 kB / 1.091 GB, free: 14.43 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001896/0.3021, allocations: 69.78 kB / 1.091 GB, free: 14.36 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.687e-06/0.3021, allocations: 7.938 kB / 1.091 GB, free: 14.35 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.197e-05/0.3022, allocations: 0 / 1.091 GB, free: 14.35 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.679e-06/0.3022, allocations: 0 / 1.091 GB, free: 14.35 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001335/0.3023, allocations: 39.95 kB / 1.091 GB, free: 14.31 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006311/0.3029, allocations: 316.8 kB / 1.091 GB, free: 13.95 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000133/0.3031, allocations: 50.56 kB / 1.091 GB, free: 13.89 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.743e-05/0.3032, allocations: 36.91 kB / 1.091 GB, free: 13.85 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.25e-05/0.3032, allocations: 0 / 1.091 GB, free: 13.85 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002244/0.3035, allocations: 79.38 kB / 1.091 GB, free: 13.76 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=7): time 1.533e-06/0.3035, allocations: 0 / 1.091 GB, free: 13.76 MB / 0.8575 GB Notification: Performance of matching and sorting (n=7): time 0.0004083/0.3039, allocations: 141.6 kB / 1.092 GB, free: 13.62 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.221e-05/0.3039, allocations: 59.41 kB / 1.092 GB, free: 13.55 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001038/0.304, allocations: 125.7 kB / 1.092 GB, free: 13.41 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.81e-05/0.3041, allocations: 29.64 kB / 1.092 GB, free: 13.38 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 5.321e-05/0.3041, allocations: 100 kB / 1.092 GB, free: 13.28 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 1.782e-05/0.3041, allocations: 11.75 kB / 1.092 GB, free: 13.27 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.852e-05/0.3042, allocations: 29.7 kB / 1.092 GB, free: 13.23 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001137/0.3043, allocations: 330.8 kB / 1.092 GB, free: 12.9 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.924e-05/0.3044, allocations: 23.98 kB / 1.092 GB, free: 12.88 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.887e-05/0.3045, allocations: 42.56 kB / 1.092 GB, free: 12.82 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001569/0.3047, allocations: 82.42 kB / 1.092 GB, free: 12.73 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.394e-06/0.3047, allocations: 4 kB / 1.092 GB, free: 12.73 MB / 0.8575 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002267/0.3049, allocations: 109.9 kB / 1.092 GB, free: 12.62 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.474e-05/0.3049, allocations: 4 kB / 1.092 GB, free: 12.61 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.518e-06/0.3049, allocations: 0 / 1.092 GB, free: 12.61 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.58e-05/0.305, allocations: 4 kB / 1.092 GB, free: 12.61 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.848e-05/0.3051, allocations: 11.98 kB / 1.092 GB, free: 12.6 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.934e-06/0.3051, allocations: 4.062 kB / 1.092 GB, free: 12.59 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.42e-05/0.3052, allocations: 11.91 kB / 1.093 GB, free: 12.58 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.232e-05/0.3052, allocations: 8.062 kB / 1.093 GB, free: 12.57 MB / 0.8575 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.101e-05/0.3053, allocations: 125.7 kB / 1.093 GB, free: 12.44 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.756e-05/0.3053, allocations: 11.84 kB / 1.093 GB, free: 12.43 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.463e-05/0.3053, allocations: 8.375 kB / 1.093 GB, free: 12.42 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.466e-06/0.3053, allocations: 4 kB / 1.093 GB, free: 12.42 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.687e-06/0.3053, allocations: 0 / 1.093 GB, free: 12.42 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.256e-06/0.3054, allocations: 0 / 1.093 GB, free: 12.42 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004371/0.3058, allocations: 374.5 kB / 1.093 GB, free: 12 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.3058, allocations: 0 / 1.093 GB, free: 12 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.219e-05/0.3059, allocations: 11.98 kB / 1.093 GB, free: 11.98 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.893e-06/0.3059, allocations: 0 / 1.093 GB, free: 11.98 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.046e-05/0.3059, allocations: 0 / 1.093 GB, free: 11.98 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.608e-06/0.3059, allocations: 7.875 kB / 1.093 GB, free: 11.98 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.61e-07/0.3059, allocations: 0 / 1.093 GB, free: 11.98 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002803/0.3062, allocations: 215.4 kB / 1.093 GB, free: 11.75 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 4e-05/0.3062, allocations: 85.02 kB / 1.093 GB, free: 11.65 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.007e-05/0.3063, allocations: 4 kB / 1.093 GB, free: 11.64 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.544e-05/0.3063, allocations: 3.938 kB / 1.093 GB, free: 11.64 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.146e-05/0.3064, allocations: 7.984 kB / 1.093 GB, free: 11.63 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.127e-05/0.3064, allocations: 8 kB / 1.093 GB, free: 11.62 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 5.05e-05/0.3065, allocations: 95.2 kB / 1.093 GB, free: 11.53 MB / 0.8575 GB Notification: Performance of sort global known variables: time 3.21e-07/0.3065, allocations: 0 / 1.093 GB, free: 11.53 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.000324/0.3068, allocations: 39.98 kB / 1.093 GB, free: 11.49 MB / 0.8575 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.0007419/0.3076, allocations: 0.7993 MB / 1.094 GB, free: 10.68 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0002332/0.3078, allocations: 79.89 kB / 1.094 GB, free: 10.61 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.814e-06/0.3078, allocations: 0 / 1.094 GB, free: 10.61 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 9.479e-05/0.3079, allocations: 31.98 kB / 1.094 GB, free: 10.57 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002571/0.3082, allocations: 20.45 kB / 1.094 GB, free: 10.55 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001541/0.3097, allocations: 1.483 MB / 1.096 GB, free: 8.973 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002394/0.31, allocations: 0.6846 MB / 1.096 GB, free: 8.262 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 3.984e-05/0.31, allocations: 11.73 kB / 1.097 GB, free: 8.25 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.849e-05/0.3101, allocations: 19.44 kB / 1.097 GB, free: 8.23 MB / 0.8575 GB Notification: Performance of SimCode: time 2.7e-07/0.3101, allocations: 4 kB / 1.097 GB, free: 8.227 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0205/0.3306, allocations: 2.675 MB / 1.099 GB, free: 5.691 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.055/8.385, allocations: 15.69 kB / 1.099 GB, free: 5.676 MB / 0.8575 GB (rm -f Buildings_9_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall.pipe ; mkfifo Buildings_9_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall.pipe ; head -c 1048576 < Buildings_9_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall.pipe >> ../files/Buildings_9_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall_res.mat --tempDir=temp_Buildings_9_Buildings_Occupants_Office_Windows_Validation_Herkel2008WindowsSmall_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Occupants_Office_Windows_Validation_Herkel2008WindowsSmall.fmu > Buildings_9_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Occupants_Office_Windows_Validation_Herkel2008WindowsSmall.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_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