Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTIn.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.Haldi2008WindowsTIn,fileNamePrefix="Buildings_10_Buildings_Occupants_Office_Windows_Validation_Haldi2008WindowsTIn",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTIn,fileNamePrefix="Buildings_10_Buildings_Occupants_Office_Windows_Validation_Haldi2008WindowsTIn",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.001524/0.001524, allocations: 108 kB / 15.61 MB, free: 152 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.001568/0.001568, allocations: 194.4 kB / 16.53 MB, free: 6.664 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.389/1.389, allocations: 222.9 MB / 240.2 MB, free: 4.406 MB / 190.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.61/2.61, allocations: 437 MB / 0.7104 GB, free: 5.141 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001559/0.001559, allocations: 64.05 kB / 0.8693 GB, free: 4.605 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6697/0.6713, allocations: 151.6 MB / 1.017 GB, free: 2.637 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTIn): time 0.00292/0.6743, allocations: 1.495 MB / 1.019 GB, free: 1.133 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001374/0.6757, allocations: 0.7401 MB / 1.02 GB, free: 396 kB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.584e-05/0.6758, allocations: 0 / 1.02 GB, free: 396 kB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 3.455e-05/0.6758, allocations: 3.938 kB / 1.02 GB, free: 392 kB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 6.012e-05/0.6759, allocations: 7.875 kB / 1.02 GB, free: 384 kB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005934/0.6765, allocations: 127.5 kB / 1.02 GB, free: 256 kB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0001128/0.6766, allocations: 71.84 kB / 1.02 GB, free: 184 kB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 9.993e-05/0.6767, allocations: 11.98 kB / 1.02 GB, free: 172 kB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 9.205e-05/0.6768, allocations: 39.84 kB / 1.02 GB, free: 132 kB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 7.958e-05/0.6769, allocations: 43.83 kB / 1.02 GB, free: 88 kB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 2.672e-05/0.6769, allocations: 4 kB / 1.02 GB, free: 84 kB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002456/0.6772, allocations: 95.95 kB / 1.02 GB, free: 15.98 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 2.848e-05/0.6772, allocations: 19.86 kB / 1.02 GB, free: 15.97 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 4.71e-05/0.6773, allocations: 31.86 kB / 1.02 GB, free: 15.94 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0002451/0.6775, allocations: 141.9 kB / 1.02 GB, free: 15.8 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.148e-06/0.6776, allocations: 4 kB / 1.02 GB, free: 15.8 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.913e-06/0.6776, allocations: 0 / 1.02 GB, free: 15.8 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 5.029e-06/0.6776, allocations: 0 / 1.02 GB, free: 15.8 MB / 0.7794 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.0006606/0.6782, allocations: 420.8 kB / 1.021 GB, free: 15.33 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.472e-05/0.6783, allocations: 8.031 kB / 1.021 GB, free: 15.32 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.074e-05/0.6783, allocations: 38.75 kB / 1.021 GB, free: 15.28 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.125e-05/0.6784, allocations: 8.844 kB / 1.021 GB, free: 15.27 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001113/0.6785, allocations: 168.4 kB / 1.021 GB, free: 15.07 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.605e-05/0.6785, allocations: 384 / 1.021 GB, free: 15.07 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.126e-05/0.6786, allocations: 12.38 kB / 1.021 GB, free: 15.05 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002028/0.6788, allocations: 81.69 kB / 1.021 GB, free: 14.97 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.706e-06/0.6788, allocations: 0 / 1.021 GB, free: 14.97 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.339e-05/0.6788, allocations: 0 / 1.021 GB, free: 14.97 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.15e-06/0.6788, allocations: 0 / 1.021 GB, free: 14.97 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001322/0.679, allocations: 35.97 kB / 1.021 GB, free: 14.93 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006437/0.6796, allocations: 320.6 kB / 1.021 GB, free: 14.57 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001349/0.6798, allocations: 50.56 kB / 1.021 GB, free: 14.51 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.559e-05/0.6799, allocations: 40.84 kB / 1.021 GB, free: 14.47 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.412e-05/0.6799, allocations: 7.922 kB / 1.021 GB, free: 14.46 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000213/0.6801, allocations: 71.39 kB / 1.021 GB, free: 14.38 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=7): time 2.104e-06/0.6801, allocations: 4 kB / 1.021 GB, free: 14.38 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7): time 0.0004067/0.6805, allocations: 145.6 kB / 1.022 GB, free: 14.23 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.222e-05/0.6806, allocations: 55.41 kB / 1.022 GB, free: 14.16 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001035/0.6807, allocations: 117.8 kB / 1.022 GB, free: 14.04 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.867e-05/0.6807, allocations: 29.7 kB / 1.022 GB, free: 14 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 5.658e-05/0.6808, allocations: 92.12 kB / 1.022 GB, free: 13.91 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.496e-05/0.6808, allocations: 15.81 kB / 1.022 GB, free: 13.89 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.274e-05/0.6809, allocations: 29.7 kB / 1.022 GB, free: 13.86 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001045/0.681, allocations: 326.8 kB / 1.022 GB, free: 13.53 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.36e-05/0.6811, allocations: 23.98 kB / 1.022 GB, free: 13.5 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.833e-05/0.6812, allocations: 51.42 kB / 1.022 GB, free: 13.44 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001746/0.6814, allocations: 83.34 kB / 1.022 GB, free: 13.35 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.6814, allocations: 0 / 1.022 GB, free: 13.35 MB / 0.7794 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002521/0.6816, allocations: 113.5 kB / 1.022 GB, free: 13.23 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.784e-05/0.6817, allocations: 7.984 kB / 1.022 GB, free: 13.22 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.63e-06/0.6817, allocations: 0 / 1.022 GB, free: 13.22 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.686e-05/0.6817, allocations: 8.125 kB / 1.022 GB, free: 13.21 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001006/0.6818, allocations: 15.94 kB / 1.022 GB, free: 13.2 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.001e-05/0.6818, allocations: 3.984 kB / 1.022 GB, free: 13.2 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.626e-05/0.6819, allocations: 11.84 kB / 1.022 GB, free: 13.18 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.522e-05/0.6819, allocations: 4 kB / 1.022 GB, free: 13.18 MB / 0.7794 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 9 (win.curSeed,$PRE.win.curSeed,occ.y,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.0001057/0.682, allocations: 125.8 kB / 1.023 GB, free: 13.05 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.907e-05/0.6821, allocations: 0 / 1.023 GB, free: 13.05 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.682e-05/0.6821, allocations: 16.3 kB / 1.023 GB, free: 13.03 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.355e-06/0.6821, allocations: 4 kB / 1.023 GB, free: 13.02 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.001e-06/0.6821, allocations: 0 / 1.023 GB, free: 13.02 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.416e-06/0.6822, allocations: 0 / 1.023 GB, free: 13.02 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004533/0.6826, allocations: 386.3 kB / 1.023 GB, free: 12.59 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.894e-06/0.6826, allocations: 0 / 1.023 GB, free: 12.59 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.052e-05/0.6827, allocations: 4 kB / 1.023 GB, free: 12.59 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.655e-06/0.6827, allocations: 0 / 1.023 GB, free: 12.59 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.53e-05/0.6827, allocations: 7.984 kB / 1.023 GB, free: 12.58 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.206e-06/0.6827, allocations: 7.938 kB / 1.023 GB, free: 12.57 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.41e-07/0.6827, allocations: 0 / 1.023 GB, free: 12.57 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002646/0.683, allocations: 203.5 kB / 1.023 GB, free: 12.36 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.482e-05/0.683, allocations: 85.02 kB / 1.023 GB, free: 12.25 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.082e-05/0.6831, allocations: 3.984 kB / 1.023 GB, free: 12.25 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.833e-05/0.6831, allocations: 7.938 kB / 1.023 GB, free: 12.24 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.967e-05/0.6832, allocations: 7.984 kB / 1.023 GB, free: 12.23 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.699e-06/0.6832, allocations: 8 kB / 1.023 GB, free: 12.23 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 4.814e-05/0.6833, allocations: 95.86 kB / 1.023 GB, free: 12.13 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.1e-07/0.6833, allocations: 0 / 1.023 GB, free: 12.13 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.000305/0.6836, allocations: 43.94 kB / 1.023 GB, free: 12.09 MB / 0.7794 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,occ.y,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.0007636/0.6844, allocations: 0.8112 MB / 1.024 GB, free: 11.27 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002426/0.6846, allocations: 71.89 kB / 1.024 GB, free: 11.2 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.6846, allocations: 0 / 1.024 GB, free: 11.2 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001024/0.6847, allocations: 31.98 kB / 1.024 GB, free: 11.17 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00026/0.685, allocations: 17.59 kB / 1.024 GB, free: 11.15 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001765/0.6868, allocations: 1.491 MB / 1.026 GB, free: 9.555 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002951/0.6871, allocations: 0.6905 MB / 1.026 GB, free: 8.84 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 4.018e-05/0.6871, allocations: 4 kB / 1.026 GB, free: 8.836 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.757e-05/0.6872, allocations: 23.42 kB / 1.026 GB, free: 8.812 MB / 0.7794 GB Notification: Performance of SimCode: time 2.51e-07/0.6872, allocations: 11.88 kB / 1.027 GB, free: 8.801 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02189/0.7091, allocations: 2.592 MB / 1.029 GB, free: 6.312 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.131/7.84, allocations: 19.31 kB / 1.029 GB, free: 6.297 MB / 0.7794 GB (rm -f Buildings_10_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTIn.pipe ; mkfifo Buildings_10_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTIn.pipe ; head -c 1048576 < Buildings_10_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTIn.pipe >> ../files/Buildings_10_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTIn.sim & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTIn_res.csv --start-time 0 --stop-time 3600 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1.44 Buildings_10_Buildings_Occupants_Office_Windows_Validation_Haldi2008WindowsTIn.fmu > Buildings_10_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTIn.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTIn_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Occupants_Office_Windows_Validation_Haldi2008WindowsTIn.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTIn.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "Warning: Resultfile and Reference have different end time points! Reffile[553]=3600.000000 File[1236]=2249.280000 Error: Could not read variable win.occ in file Buildings_10_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTIn_res.csv. Warning: Get data of variable win.occ from file Buildings_10_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTIn_res.csv failed! Error: Could not read variable win.on in file Buildings_10_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTIn_res.csv. Warning: Get data of variable win.on from file Buildings_10_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTIn_res.csv failed! " Variables in the reference:time,win.TIn,win.occ,win.p,win.on Variables in the result:time,win.TIn,win.p,TIn.amplitude,TIn.f,TIn.offset