Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Occupants.Office.Windows.Validation.Haldi2009WindowsTInTout.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.Haldi2009WindowsTInTout,fileNamePrefix="Buildings_9_Buildings_Occupants_Office_Windows_Validation_Haldi2009WindowsTInTout",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Windows.Validation.Haldi2009WindowsTInTout,fileNamePrefix="Buildings_9_Buildings_Occupants_Office_Windows_Validation_Haldi2009WindowsTInTout",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.006656/0.006656, allocations: 96.7 kB / 15.73 MB, free: 6.055 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.001486/0.001486, allocations: 194.4 kB / 16.67 MB, free: 5.977 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.374/1.374, allocations: 222.9 MB / 240.4 MB, free: 4.316 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.438/2.438, allocations: 390.2 MB / 0.6648 GB, free: 216 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001261/0.001261, allocations: 66.73 kB / 0.9504 GB, free: 5.891 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2304/0.2317, allocations: 140.4 MB / 1.087 GB, free: 2 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Windows.Validation.Haldi2009WindowsTInTout): time 0.002908/0.2346, allocations: 1.591 MB / 1.089 GB, free: 404 kB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.002106/0.2368, allocations: 0.7804 MB / 1.09 GB, free: 15.61 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.338e-05/0.2368, allocations: 0 / 1.09 GB, free: 15.61 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 4.152e-05/0.2369, allocations: 7.938 kB / 1.09 GB, free: 15.6 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 8.943e-05/0.237, allocations: 23.72 kB / 1.09 GB, free: 15.58 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006023/0.2376, allocations: 139.6 kB / 1.09 GB, free: 15.44 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0002116/0.2379, allocations: 135.6 kB / 1.09 GB, free: 15.31 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001148/0.238, allocations: 27.97 kB / 1.09 GB, free: 15.28 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001481/0.2381, allocations: 59.83 kB / 1.09 GB, free: 15.22 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001453/0.2383, allocations: 67.78 kB / 1.09 GB, free: 15.16 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 3.48e-05/0.2383, allocations: 15.94 kB / 1.09 GB, free: 15.14 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002575/0.2386, allocations: 103.8 kB / 1.09 GB, free: 15.04 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 5.007e-05/0.2387, allocations: 27.95 kB / 1.09 GB, free: 15.01 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 8.827e-05/0.2388, allocations: 59.7 kB / 1.09 GB, free: 14.95 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.000376/0.2392, allocations: 195.6 kB / 1.091 GB, free: 14.76 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.367e-06/0.2392, allocations: 3.938 kB / 1.091 GB, free: 14.76 MB / 0.8575 GB Notification: Performance of FrontEnd: time 3.607e-06/0.2392, allocations: 0 / 1.091 GB, free: 14.76 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.28e-06/0.2392, allocations: 3.938 kB / 1.091 GB, free: 14.75 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: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0007646/0.24, allocations: 482.2 kB / 1.091 GB, free: 14.22 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.511e-05/0.24, allocations: 15.97 kB / 1.091 GB, free: 14.21 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.944e-05/0.2401, allocations: 38.73 kB / 1.091 GB, free: 14.16 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.351e-05/0.2401, allocations: 8.891 kB / 1.091 GB, free: 14.15 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001141/0.2402, allocations: 189.9 kB / 1.091 GB, free: 13.93 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.441e-05/0.2403, allocations: 8.359 kB / 1.091 GB, free: 13.92 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.542e-05/0.2403, allocations: 11.94 kB / 1.091 GB, free: 13.91 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002447/0.2406, allocations: 93.61 kB / 1.091 GB, free: 13.81 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.693e-06/0.2406, allocations: 0 / 1.091 GB, free: 13.81 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.589e-05/0.2406, allocations: 4 kB / 1.091 GB, free: 13.81 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.27e-06/0.2406, allocations: 0 / 1.091 GB, free: 13.81 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001976/0.2408, allocations: 67.89 kB / 1.091 GB, free: 13.74 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008198/0.2416, allocations: 376.6 kB / 1.092 GB, free: 13.32 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001682/0.2418, allocations: 66.55 kB / 1.092 GB, free: 13.25 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002003/0.242, allocations: 56.83 kB / 1.092 GB, free: 13.19 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.796e-05/0.2421, allocations: 3.938 kB / 1.092 GB, free: 13.19 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003321/0.2424, allocations: 99.34 kB / 1.092 GB, free: 13.08 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=9): time 1.994e-06/0.2424, allocations: 0 / 1.092 GB, free: 13.08 MB / 0.8575 GB Notification: Performance of matching and sorting (n=9): time 0.0008568/0.2433, allocations: 209.5 kB / 1.092 GB, free: 12.87 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.855e-05/0.2433, allocations: 59.56 kB / 1.092 GB, free: 12.8 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001755/0.2435, allocations: 148.6 kB / 1.092 GB, free: 12.64 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 3.248e-05/0.2436, allocations: 33.64 kB / 1.092 GB, free: 12.61 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 8.096e-05/0.2437, allocations: 104.3 kB / 1.093 GB, free: 12.5 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 3.525e-05/0.2437, allocations: 19.86 kB / 1.093 GB, free: 12.48 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.359e-05/0.2438, allocations: 29.7 kB / 1.093 GB, free: 12.44 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001295/0.244, allocations: 323.2 kB / 1.093 GB, free: 12.12 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001907/0.2442, allocations: 47.97 kB / 1.093 GB, free: 12.07 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002198/0.2444, allocations: 76.2 kB / 1.093 GB, free: 11.98 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003386/0.2448, allocations: 112.2 kB / 1.093 GB, free: 11.86 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.986e-06/0.2448, allocations: 3.938 kB / 1.093 GB, free: 11.85 MB / 0.8575 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0005163/0.2453, allocations: 157.5 kB / 1.093 GB, free: 11.69 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.727e-05/0.2453, allocations: 4 kB / 1.093 GB, free: 11.69 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.332e-06/0.2453, allocations: 0 / 1.093 GB, free: 11.69 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.879e-05/0.2454, allocations: 4.062 kB / 1.093 GB, free: 11.68 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002471/0.2456, allocations: 31.95 kB / 1.093 GB, free: 11.65 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.041e-05/0.2457, allocations: 4 kB / 1.093 GB, free: 11.65 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001823/0.2459, allocations: 15.88 kB / 1.093 GB, free: 11.63 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.125e-05/0.2459, allocations: 4 kB / 1.093 GB, free: 11.63 MB / 0.8575 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 11 (win.curSeed,$PRE.win.curSeed,win.on,$PRE.win.on,win.occ,win.pClose,$PRE.win.pClose,win.pOpen,$PRE.win.pOpen,win.sampleTrigger,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (14): * Single equations (assignments): 14 * 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.934e-05/0.246, allocations: 127.8 kB / 1.094 GB, free: 11.5 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.488e-05/0.246, allocations: 7.953 kB / 1.094 GB, free: 11.49 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.976e-05/0.2461, allocations: 16.7 kB / 1.094 GB, free: 11.47 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.186e-06/0.2461, allocations: 7.938 kB / 1.094 GB, free: 11.46 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.817e-06/0.2461, allocations: 0 / 1.094 GB, free: 11.46 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.555e-06/0.2461, allocations: 0 / 1.094 GB, free: 11.46 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008475/0.2469, allocations: 458.4 kB / 1.094 GB, free: 10.96 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.565e-06/0.247, allocations: 0 / 1.094 GB, free: 10.96 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.541e-05/0.2471, allocations: 7.938 kB / 1.094 GB, free: 10.95 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.939e-06/0.2471, allocations: 3.984 kB / 1.094 GB, free: 10.95 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.025e-05/0.2471, allocations: 4 kB / 1.094 GB, free: 10.95 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.054e-06/0.2471, allocations: 4 kB / 1.094 GB, free: 10.94 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.2471, allocations: 0 / 1.094 GB, free: 10.94 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006311/0.2478, allocations: 267.4 kB / 1.094 GB, free: 10.66 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 6.364e-05/0.2478, allocations: 88.94 kB / 1.094 GB, free: 10.56 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.195e-05/0.2479, allocations: 8 kB / 1.094 GB, free: 10.55 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002164/0.2481, allocations: 7.984 kB / 1.094 GB, free: 10.54 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.902e-05/0.2482, allocations: 12.03 kB / 1.094 GB, free: 10.53 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.369e-05/0.2482, allocations: 7.984 kB / 1.094 GB, free: 10.52 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 9.756e-05/0.2483, allocations: 107.4 kB / 1.094 GB, free: 10.42 MB / 0.8575 GB Notification: Performance of sort global known variables: time 2.61e-07/0.2483, allocations: 0 / 1.094 GB, free: 10.42 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0005425/0.2489, allocations: 55.81 kB / 1.095 GB, free: 10.36 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: 7 (win.sampleTrigger,$whenCondition1,win.occ,win.on,win.pOpen,win.pClose,win.curSeed) * Number of discrete states: 1 (win.on) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.001245/0.2502, allocations: 0.8642 MB / 1.095 GB, free: 9.492 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0004664/0.2506, allocations: 112 kB / 1.095 GB, free: 9.383 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.275e-06/0.2507, allocations: 4 kB / 1.095 GB, free: 9.379 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0002283/0.2509, allocations: 59.91 kB / 1.096 GB, free: 9.32 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004486/0.2514, allocations: 15.22 kB / 1.096 GB, free: 9.309 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002948/0.2543, allocations: 1.711 MB / 1.097 GB, free: 7.488 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003484/0.2547, allocations: 0.7041 MB / 1.098 GB, free: 6.758 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 7.497e-05/0.2548, allocations: 4 kB / 1.098 GB, free: 6.754 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.793e-05/0.2549, allocations: 31.42 kB / 1.098 GB, free: 6.723 MB / 0.8575 GB Notification: Performance of SimCode: time 4e-07/0.2549, allocations: 0 / 1.098 GB, free: 6.723 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0242/0.2791, allocations: 3.381 MB / 1.101 GB, free: 3.484 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.261/7.54, allocations: 12.55 kB / 1.101 GB, free: 3.477 MB / 0.8575 GB (rm -f Buildings_9_Buildings.Occupants.Office.Windows.Validation.Haldi2009WindowsTInTout.pipe ; mkfifo Buildings_9_Buildings.Occupants.Office.Windows.Validation.Haldi2009WindowsTInTout.pipe ; head -c 1048576 < Buildings_9_Buildings.Occupants.Office.Windows.Validation.Haldi2009WindowsTInTout.pipe >> ../files/Buildings_9_Buildings.Occupants.Office.Windows.Validation.Haldi2009WindowsTInTout.sim & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Occupants.Office.Windows.Validation.Haldi2009WindowsTInTout_res.csv --start-time 0 --stop-time 3600 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1.44 Buildings_9_Buildings_Occupants_Office_Windows_Validation_Haldi2009WindowsTInTout.fmu > Buildings_9_Buildings.Occupants.Office.Windows.Validation.Haldi2009WindowsTInTout.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Occupants.Office.Windows.Validation.Haldi2009WindowsTInTout_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Occupants_Office_Windows_Validation_Haldi2009WindowsTInTout.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Occupants.Office.Windows.Validation.Haldi2009WindowsTInTout.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "Warning: Resultfile and Reference have different end time points! Reffile[552]=3600.000000 File[1236]=2249.280000 Error: Could not read variable win.occ in file Buildings_9_Buildings.Occupants.Office.Windows.Validation.Haldi2009WindowsTInTout_res.csv. Warning: Get data of variable win.occ from file Buildings_9_Buildings.Occupants.Office.Windows.Validation.Haldi2009WindowsTInTout_res.csv failed! Error: Could not read variable win.on in file Buildings_9_Buildings.Occupants.Office.Windows.Validation.Haldi2009WindowsTInTout_res.csv. Warning: Get data of variable win.on from file Buildings_9_Buildings.Occupants.Office.Windows.Validation.Haldi2009WindowsTInTout_res.csv failed! " Variables in the reference:time,win.TOut,win.occ,win.pOpen,win.on Variables in the result:time,win.TIn,win.TOut,win.pClose,win.pOpen,TIn.amplitude