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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.001677/0.001677, allocations: 108 kB / 15.6 MB, free: 124 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00192/0.00192, allocations: 195.6 kB / 16.54 MB, free: 6.668 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.328/1.328, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.695/2.695, allocations: 469.4 MB / 0.742 GB, free: 7.691 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001343/0.001344, allocations: 65.38 kB / 0.9083 GB, free: 34.48 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2339/0.2353, allocations: 159.1 MB / 1.064 GB, free: 14.5 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall): time 0.002496/0.2378, allocations: 1.491 MB / 1.065 GB, free: 12.99 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001195/0.239, allocations: 0.7341 MB / 1.066 GB, free: 12.25 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.075e-05/0.2391, allocations: 3.938 kB / 1.066 GB, free: 12.25 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 2.851e-05/0.2391, allocations: 7.922 kB / 1.066 GB, free: 12.24 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 5.128e-05/0.2392, allocations: 11.88 kB / 1.066 GB, free: 12.23 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005036/0.2397, allocations: 123.6 kB / 1.066 GB, free: 12.11 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 9.779e-05/0.2398, allocations: 71.78 kB / 1.066 GB, free: 12.04 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 8.346e-05/0.2399, allocations: 16 kB / 1.066 GB, free: 12.02 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 8.19e-05/0.24, allocations: 35.89 kB / 1.066 GB, free: 11.98 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 6.566e-05/0.2401, allocations: 35.84 kB / 1.066 GB, free: 11.95 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.989e-05/0.2401, allocations: 11.94 kB / 1.066 GB, free: 11.94 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001864/0.2403, allocations: 95.84 kB / 1.066 GB, free: 11.84 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 2.875e-05/0.2403, allocations: 23.91 kB / 1.066 GB, free: 11.82 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 4.384e-05/0.2404, allocations: 27.86 kB / 1.066 GB, free: 11.79 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002115/0.2406, allocations: 135.9 kB / 1.066 GB, free: 11.66 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 2.865e-06/0.2406, allocations: 0 / 1.066 GB, free: 11.66 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.152e-06/0.2406, allocations: 0 / 1.066 GB, free: 11.66 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 5.28e-06/0.2406, allocations: 8 kB / 1.066 GB, free: 11.65 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.0005629/0.2412, allocations: 417 kB / 1.067 GB, free: 11.19 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.5e-05/0.2412, allocations: 12.03 kB / 1.067 GB, free: 11.18 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.191e-05/0.2413, allocations: 30.75 kB / 1.067 GB, free: 11.14 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.579e-05/0.2413, allocations: 8.844 kB / 1.067 GB, free: 11.13 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.716e-05/0.2414, allocations: 184.1 kB / 1.067 GB, free: 10.91 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.371e-05/0.2415, allocations: 8.375 kB / 1.067 GB, free: 10.91 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.555e-05/0.2415, allocations: 384 / 1.067 GB, free: 10.91 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001773/0.2417, allocations: 77.77 kB / 1.067 GB, free: 10.82 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.263e-06/0.2417, allocations: 0 / 1.067 GB, free: 10.82 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.214e-05/0.2417, allocations: 4 kB / 1.067 GB, free: 10.82 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.636e-06/0.2417, allocations: 4 kB / 1.067 GB, free: 10.82 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001359/0.2418, allocations: 39.91 kB / 1.067 GB, free: 10.78 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005743/0.2424, allocations: 316.7 kB / 1.067 GB, free: 10.42 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001278/0.2426, allocations: 46.55 kB / 1.068 GB, free: 10.36 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.762e-05/0.2427, allocations: 40.95 kB / 1.068 GB, free: 10.32 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.817e-05/0.2427, allocations: 0 / 1.068 GB, free: 10.32 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001806/0.2429, allocations: 75.38 kB / 1.068 GB, free: 10.23 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=7): time 1.463e-06/0.2429, allocations: 4 kB / 1.068 GB, free: 10.23 MB / 0.8262 GB Notification: Performance of matching and sorting (n=7): time 0.0003916/0.2433, allocations: 145.5 kB / 1.068 GB, free: 10.08 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.413e-05/0.2433, allocations: 51.41 kB / 1.068 GB, free: 10.02 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.207e-05/0.2434, allocations: 121.8 kB / 1.068 GB, free: 9.891 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.711e-05/0.2434, allocations: 29.7 kB / 1.068 GB, free: 9.855 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 4.746e-05/0.2435, allocations: 92.05 kB / 1.068 GB, free: 9.762 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.096e-05/0.2435, allocations: 23.73 kB / 1.068 GB, free: 9.738 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.636e-05/0.2436, allocations: 25.72 kB / 1.068 GB, free: 9.707 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 9.017e-05/0.2437, allocations: 322.8 kB / 1.068 GB, free: 9.383 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.657e-05/0.2438, allocations: 27.98 kB / 1.068 GB, free: 9.355 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.463e-05/0.2439, allocations: 46.55 kB / 1.068 GB, free: 9.301 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000163/0.244, allocations: 78.8 kB / 1.069 GB, free: 9.215 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.244, allocations: 0 / 1.069 GB, free: 9.215 MB / 0.8262 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002413/0.2443, allocations: 113.6 kB / 1.069 GB, free: 9.098 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.261e-05/0.2443, allocations: 4 kB / 1.069 GB, free: 9.094 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.905e-06/0.2443, allocations: 4 kB / 1.069 GB, free: 9.09 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.136e-05/0.2443, allocations: 0 / 1.069 GB, free: 9.09 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.555e-05/0.2444, allocations: 15.92 kB / 1.069 GB, free: 9.074 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.546e-06/0.2445, allocations: 4 kB / 1.069 GB, free: 9.07 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.263e-05/0.2445, allocations: 19.83 kB / 1.069 GB, free: 9.051 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.273e-05/0.2446, allocations: 4 kB / 1.069 GB, free: 9.047 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 7.855e-05/0.2446, allocations: 122.3 kB / 1.069 GB, free: 8.918 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.793e-05/0.2447, allocations: 7.906 kB / 1.069 GB, free: 8.91 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.386e-05/0.2447, allocations: 8.375 kB / 1.069 GB, free: 8.902 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.864e-06/0.2447, allocations: 0 / 1.069 GB, free: 8.902 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.027e-06/0.2447, allocations: 0 / 1.069 GB, free: 8.902 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.288e-06/0.2447, allocations: 7.984 kB / 1.069 GB, free: 8.895 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004203/0.2451, allocations: 382.4 kB / 1.069 GB, free: 8.465 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.176e-06/0.2452, allocations: 3.984 kB / 1.069 GB, free: 8.461 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.195e-05/0.2452, allocations: 4 kB / 1.069 GB, free: 8.457 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.114e-06/0.2452, allocations: 0 / 1.069 GB, free: 8.457 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.237e-05/0.2452, allocations: 4 kB / 1.069 GB, free: 8.453 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.487e-06/0.2452, allocations: 3.938 kB / 1.069 GB, free: 8.449 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.2453, allocations: 0 / 1.069 GB, free: 8.449 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002726/0.2455, allocations: 215.4 kB / 1.069 GB, free: 8.223 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 3.589e-05/0.2456, allocations: 85.02 kB / 1.07 GB, free: 8.121 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.838e-05/0.2456, allocations: 3.938 kB / 1.07 GB, free: 8.117 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.886e-05/0.2457, allocations: 11.92 kB / 1.07 GB, free: 8.105 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.154e-05/0.2457, allocations: 0 / 1.07 GB, free: 8.105 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.458e-06/0.2458, allocations: 8 kB / 1.07 GB, free: 8.098 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 4.428e-05/0.2458, allocations: 91.27 kB / 1.07 GB, free: 8.008 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.4e-07/0.2458, allocations: 4 kB / 1.07 GB, free: 8.004 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002997/0.2461, allocations: 39.98 kB / 1.07 GB, free: 7.965 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.0006935/0.2468, allocations: 0.7988 MB / 1.07 GB, free: 7.156 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.000242/0.2471, allocations: 83.81 kB / 1.071 GB, free: 7.074 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.824e-06/0.2471, allocations: 0 / 1.071 GB, free: 7.074 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.000102/0.2472, allocations: 39.91 kB / 1.071 GB, free: 7.035 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000255/0.2475, allocations: 15.36 kB / 1.071 GB, free: 7.023 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001463/0.2489, allocations: 1.474 MB / 1.072 GB, free: 5.453 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001999/0.2491, allocations: 0.7 MB / 1.073 GB, free: 4.727 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.598e-05/0.2492, allocations: 7.984 kB / 1.073 GB, free: 4.719 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.22e-05/0.2492, allocations: 18.81 kB / 1.073 GB, free: 4.703 MB / 0.8262 GB Notification: Performance of SimCode: time 3.41e-07/0.2492, allocations: 4 kB / 1.073 GB, free: 4.699 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01746/0.2667, allocations: 2.606 MB / 1.075 GB, free: 2.215 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.23/7.496, allocations: 3.812 kB / 1.075 GB, free: 2.215 MB / 0.8262 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 50 --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