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: "" <> buildModelFMU(Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall,fileNamePrefix="Buildings_latest_Buildings_Occupants_Office_Windows_Validation_Herkel2008WindowsSmall",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall,fileNamePrefix="Buildings_latest_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.007322/0.007322, allocations: 96.7 kB / 15.73 MB, free: 6.047 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.002068/0.002068, allocations: 197.4 kB / 16.67 MB, free: 5.973 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.433/1.433, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.936/2.936, allocations: 482.4 MB / 0.7548 GB, free: 10.84 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001993/0.001993, allocations: 67.89 kB / 1.083 GB, free: 12.55 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2787/0.2807, allocations: 162.2 MB / 1.241 GB, free: 10.21 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall): time 0.002684/0.2834, allocations: 1.493 MB / 1.243 GB, free: 8.699 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.001329/0.2848, allocations: 0.7323 MB / 1.244 GB, free: 7.961 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.689e-05/0.2848, allocations: 0 / 1.244 GB, free: 7.961 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 3.044e-05/0.2849, allocations: 3.938 kB / 1.244 GB, free: 7.957 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 4.846e-05/0.2849, allocations: 7.875 kB / 1.244 GB, free: 7.949 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005189/0.2854, allocations: 131.5 kB / 1.244 GB, free: 7.82 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0001286/0.2856, allocations: 71.83 kB / 1.244 GB, free: 7.75 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 8.164e-05/0.2857, allocations: 19.97 kB / 1.244 GB, free: 7.73 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 8.118e-05/0.2858, allocations: 31.86 kB / 1.244 GB, free: 7.699 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 6.964e-05/0.2858, allocations: 43.81 kB / 1.244 GB, free: 7.656 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 1.932e-05/0.2859, allocations: 8 kB / 1.244 GB, free: 7.648 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002062/0.2861, allocations: 99.84 kB / 1.244 GB, free: 7.551 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 2.614e-05/0.2861, allocations: 15.92 kB / 1.244 GB, free: 7.535 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 4.831e-05/0.2862, allocations: 27.86 kB / 1.244 GB, free: 7.508 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0002325/0.2864, allocations: 139.5 kB / 1.244 GB, free: 7.371 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 4.919e-06/0.2864, allocations: 4 kB / 1.244 GB, free: 7.367 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.142e-06/0.2864, allocations: 0 / 1.244 GB, free: 7.367 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 4.448e-06/0.2864, allocations: 4 kB / 1.244 GB, free: 7.363 MB / 0.9981 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.0006387/0.2871, allocations: 424.7 kB / 1.245 GB, free: 6.895 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.378e-05/0.2871, allocations: 8.031 kB / 1.245 GB, free: 6.887 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.801e-05/0.2872, allocations: 34.75 kB / 1.245 GB, free: 6.844 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.108e-05/0.2872, allocations: 4.891 kB / 1.245 GB, free: 6.84 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001288/0.2873, allocations: 172.3 kB / 1.245 GB, free: 6.633 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.736e-05/0.2874, allocations: 16.3 kB / 1.245 GB, free: 6.617 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.45e-05/0.2874, allocations: 4.375 kB / 1.245 GB, free: 6.613 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001953/0.2876, allocations: 77.78 kB / 1.245 GB, free: 6.531 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.185e-06/0.2876, allocations: 3.938 kB / 1.245 GB, free: 6.527 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.367e-06/0.2876, allocations: 0 / 1.245 GB, free: 6.527 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.817e-06/0.2876, allocations: 0 / 1.245 GB, free: 6.527 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001391/0.2878, allocations: 35.97 kB / 1.245 GB, free: 6.492 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006081/0.2884, allocations: 316.7 kB / 1.245 GB, free: 6.133 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001388/0.2885, allocations: 50.5 kB / 1.245 GB, free: 6.074 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.881e-05/0.2886, allocations: 32.97 kB / 1.245 GB, free: 6.039 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.793e-05/0.2887, allocations: 0 / 1.245 GB, free: 6.039 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001896/0.2889, allocations: 75.44 kB / 1.245 GB, free: 5.953 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=7): time 3.516e-06/0.2889, allocations: 4 kB / 1.245 GB, free: 5.949 MB / 0.9981 GB Notification: Performance of matching and sorting (n=7): time 0.0004271/0.2893, allocations: 153.4 kB / 1.246 GB, free: 5.793 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.123e-05/0.2894, allocations: 55.41 kB / 1.246 GB, free: 5.727 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001112/0.2895, allocations: 117.8 kB / 1.246 GB, free: 5.602 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 2.619e-05/0.2895, allocations: 33.7 kB / 1.246 GB, free: 5.562 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 5.621e-05/0.2896, allocations: 92.08 kB / 1.246 GB, free: 5.469 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 2.126e-05/0.2896, allocations: 15.91 kB / 1.246 GB, free: 5.453 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.123e-05/0.2897, allocations: 29.7 kB / 1.246 GB, free: 5.418 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001453/0.2898, allocations: 326.8 kB / 1.246 GB, free: 5.09 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.605e-05/0.2899, allocations: 23.98 kB / 1.246 GB, free: 5.066 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001024/0.29, allocations: 46.56 kB / 1.246 GB, free: 5.012 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001857/0.2902, allocations: 78.48 kB / 1.246 GB, free: 4.926 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.2902, allocations: 4 kB / 1.246 GB, free: 4.922 MB / 0.9981 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002749/0.2905, allocations: 117.5 kB / 1.246 GB, free: 4.801 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.345e-05/0.2905, allocations: 9.25 kB / 1.246 GB, free: 4.793 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.191e-06/0.2905, allocations: 0 / 1.246 GB, free: 4.793 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.107e-05/0.2906, allocations: 3.938 kB / 1.246 GB, free: 4.789 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.563e-05/0.2907, allocations: 15.98 kB / 1.246 GB, free: 4.773 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.568e-06/0.2907, allocations: 0 / 1.246 GB, free: 4.773 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.665e-05/0.2907, allocations: 12 kB / 1.246 GB, free: 4.762 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.515e-05/0.2908, allocations: 8 kB / 1.246 GB, free: 4.754 MB / 0.9981 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.0001071/0.2909, allocations: 125.7 kB / 1.247 GB, free: 4.621 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.838e-05/0.2909, allocations: 7.953 kB / 1.247 GB, free: 4.613 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.17e-05/0.2909, allocations: 4.375 kB / 1.247 GB, free: 4.605 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.683e-06/0.2909, allocations: 0 / 1.247 GB, free: 4.605 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.487e-06/0.2909, allocations: 0 / 1.247 GB, free: 4.605 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.635e-06/0.291, allocations: 0 / 1.247 GB, free: 4.605 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005129/0.2915, allocations: 394.4 kB / 1.247 GB, free: 4.164 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.2915, allocations: 0 / 1.247 GB, free: 4.164 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.426e-05/0.2915, allocations: 7.984 kB / 1.247 GB, free: 4.156 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.984e-06/0.2915, allocations: 0 / 1.247 GB, free: 4.156 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.868e-06/0.2916, allocations: 0 / 1.247 GB, free: 4.156 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.937e-06/0.2916, allocations: 3.938 kB / 1.247 GB, free: 4.152 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.31e-07/0.2916, allocations: 0 / 1.247 GB, free: 4.152 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003177/0.2919, allocations: 211.5 kB / 1.247 GB, free: 3.93 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.692e-05/0.2919, allocations: 81.06 kB / 1.247 GB, free: 3.832 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.899e-05/0.292, allocations: 4 kB / 1.247 GB, free: 3.828 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.245e-05/0.2921, allocations: 3.938 kB / 1.247 GB, free: 3.824 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.586e-05/0.2921, allocations: 11.98 kB / 1.247 GB, free: 3.812 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.019e-05/0.2921, allocations: 0 / 1.247 GB, free: 3.812 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 6.681e-05/0.2922, allocations: 99.2 kB / 1.247 GB, free: 3.715 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2922, allocations: 0 / 1.247 GB, free: 3.715 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0003024/0.2925, allocations: 43.88 kB / 1.247 GB, free: 3.672 MB / 0.9981 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.0008899/0.2934, allocations: 0.8203 MB / 1.248 GB, free: 2.844 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0002488/0.2937, allocations: 75.88 kB / 1.248 GB, free: 2.77 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.433e-06/0.2937, allocations: 0 / 1.248 GB, free: 2.77 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001013/0.2938, allocations: 31.98 kB / 1.248 GB, free: 2.738 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002525/0.2941, allocations: 7.938 kB / 1.248 GB, free: 2.73 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001738/0.2958, allocations: 1.492 MB / 1.25 GB, free: 1.141 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003262/0.2961, allocations: 0.6846 MB / 1.25 GB, free: 440 kB / 0.9981 GB Notification: Performance of simCode: alias equations: time 3.91e-05/0.2962, allocations: 11.97 kB / 1.251 GB, free: 428 kB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.481e-05/0.2962, allocations: 23.44 kB / 1.251 GB, free: 404 kB / 0.9981 GB Notification: Performance of SimCode: time 2.31e-07/0.2962, allocations: 0 / 1.251 GB, free: 404 kB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4864/0.7826, allocations: 2.639 MB / 1.253 GB, free: 14.44 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.551/8.334, allocations: 6.75 kB / 1.253 GB, free: 14.44 MB / 0.9981 GB (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 & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall_res.csv --start-time 0 --stop-time 3600 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1.44 Buildings_latest_Buildings_Occupants_Office_Windows_Validation_Herkel2008WindowsSmall.fmu > Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Occupants_Office_Windows_Validation_Herkel2008WindowsSmall.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "Warning: Resultfile and Reference have different end time points! Reffile[551]=3600.000000 File[1236]=2249.280000 Error: Could not read variable win.occ in file Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall_res.csv. Warning: Get data of variable win.occ from file Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall_res.csv failed! Error: Could not read variable win.on in file Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall_res.csv. Warning: Get data of variable win.on from file Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall_res.csv failed! " Variables in the reference:time,win.TOut,win.occ,win.p,win.on Variables in the result:time,win.TOut,win.p,TOut.amplitude,TOut.f,TOut.offset