Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll.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.Zhang2012WindowsAll,fileNamePrefix="Buildings_10_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsAll",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll,fileNamePrefix="Buildings_10_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsAll",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.001111/0.001111, 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.001105/0.001105, allocations: 192.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.313/1.313, allocations: 222.9 MB / 240.2 MB, free: 4.414 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.535/2.535, allocations: 437 MB / 0.7104 GB, free: 5.113 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001332/0.001332, allocations: 63.89 kB / 0.8694 GB, free: 4.543 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5423/0.5437, allocations: 151.6 MB / 1.017 GB, free: 2.59 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll): time 0.002619/0.5463, allocations: 1.506 MB / 1.019 GB, free: 1.074 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001198/0.5475, allocations: 0.7284 MB / 1.02 GB, free: 348 kB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.253e-05/0.5476, allocations: 4 kB / 1.02 GB, free: 344 kB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 3.069e-05/0.5476, allocations: 3.938 kB / 1.02 GB, free: 340 kB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 5.191e-05/0.5477, allocations: 19.84 kB / 1.02 GB, free: 320 kB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005346/0.5482, allocations: 119.6 kB / 1.02 GB, free: 200 kB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0001027/0.5484, allocations: 75.83 kB / 1.02 GB, free: 124 kB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 8.731e-05/0.5485, allocations: 8 kB / 1.02 GB, free: 116 kB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 8.23e-05/0.5485, allocations: 39.83 kB / 1.02 GB, free: 76 kB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 5.937e-05/0.5486, allocations: 35.84 kB / 1.02 GB, free: 40 kB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 2.042e-05/0.5486, allocations: 12 kB / 1.02 GB, free: 28 kB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002037/0.5488, allocations: 95.91 kB / 1.02 GB, free: 15.93 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 2.671e-05/0.5489, allocations: 15.91 kB / 1.02 GB, free: 15.92 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 4.504e-05/0.5489, allocations: 31.86 kB / 1.02 GB, free: 15.89 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0002228/0.5492, allocations: 145.9 kB / 1.02 GB, free: 15.75 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.647e-06/0.5492, allocations: 0 / 1.02 GB, free: 15.75 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.182e-06/0.5492, allocations: 0 / 1.02 GB, free: 15.75 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 5.019e-06/0.5492, allocations: 0 / 1.02 GB, free: 15.75 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.0005866/0.5498, allocations: 424.8 kB / 1.021 GB, free: 15.28 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.674e-05/0.5498, allocations: 8.031 kB / 1.021 GB, free: 15.27 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.805e-05/0.5499, allocations: 38.75 kB / 1.021 GB, free: 15.22 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.716e-05/0.5499, allocations: 8.844 kB / 1.021 GB, free: 15.21 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001007/0.55, allocations: 168.4 kB / 1.021 GB, free: 15.01 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.404e-05/0.5501, allocations: 4.375 kB / 1.021 GB, free: 15.01 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.732e-05/0.5501, allocations: 8.375 kB / 1.021 GB, free: 15 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001792/0.5503, allocations: 73.7 kB / 1.021 GB, free: 14.92 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.015e-06/0.5503, allocations: 0 / 1.021 GB, free: 14.92 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.644e-05/0.5503, allocations: 4 kB / 1.021 GB, free: 14.92 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.308e-06/0.5503, allocations: 11.88 kB / 1.021 GB, free: 14.91 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001333/0.5505, allocations: 39.95 kB / 1.021 GB, free: 14.87 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005766/0.551, allocations: 316.6 kB / 1.021 GB, free: 14.51 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001236/0.5512, allocations: 58.5 kB / 1.021 GB, free: 14.44 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.136e-05/0.5513, allocations: 32.95 kB / 1.021 GB, free: 14.41 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.908e-05/0.5513, allocations: 4 kB / 1.021 GB, free: 14.4 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001795/0.5515, allocations: 71.38 kB / 1.021 GB, free: 14.32 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=7): time 1.563e-06/0.5515, allocations: 0 / 1.021 GB, free: 14.32 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7): time 0.0003802/0.5519, allocations: 145.6 kB / 1.022 GB, free: 14.17 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.278e-05/0.5519, allocations: 55.34 kB / 1.022 GB, free: 14.11 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.755e-05/0.552, allocations: 121.8 kB / 1.022 GB, free: 13.98 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.837e-05/0.5521, allocations: 29.7 kB / 1.022 GB, free: 13.94 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 4.777e-05/0.5521, allocations: 88.14 kB / 1.022 GB, free: 13.85 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 1.907e-05/0.5521, allocations: 11.81 kB / 1.022 GB, free: 13.84 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.036e-05/0.5522, allocations: 29.7 kB / 1.022 GB, free: 13.8 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001005/0.5523, allocations: 322.8 kB / 1.022 GB, free: 13.48 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.082e-05/0.5524, allocations: 31.98 kB / 1.022 GB, free: 13.45 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.238e-05/0.5525, allocations: 46.56 kB / 1.022 GB, free: 13.39 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001545/0.5526, allocations: 70.48 kB / 1.022 GB, free: 13.32 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.5527, allocations: 0 / 1.022 GB, free: 13.32 MB / 0.7794 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002334/0.5529, allocations: 117.5 kB / 1.022 GB, free: 13.2 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 2.235e-05/0.5529, allocations: 10.19 kB / 1.022 GB, free: 13.19 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.299e-06/0.5529, allocations: 0 / 1.022 GB, free: 13.19 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.28e-05/0.553, allocations: 0 / 1.022 GB, free: 13.19 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.874e-05/0.5531, allocations: 15.98 kB / 1.022 GB, free: 13.17 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.963e-06/0.5531, allocations: 7.938 kB / 1.022 GB, free: 13.16 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.867e-05/0.5531, allocations: 11.84 kB / 1.022 GB, free: 13.15 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.296e-05/0.5532, allocations: 3.984 kB / 1.022 GB, free: 13.15 MB / 0.7794 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 8.632e-05/0.5533, allocations: 129.8 kB / 1.023 GB, free: 13.01 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.548e-05/0.5533, allocations: 0 / 1.023 GB, free: 13.01 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.513e-05/0.5533, allocations: 12.38 kB / 1.023 GB, free: 13 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.833e-06/0.5533, allocations: 0 / 1.023 GB, free: 13 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.707e-06/0.5533, allocations: 0 / 1.023 GB, free: 13 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.886e-06/0.5533, allocations: 0 / 1.023 GB, free: 13 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004148/0.5538, allocations: 382.4 kB / 1.023 GB, free: 12.57 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.416e-06/0.5538, allocations: 4 kB / 1.023 GB, free: 12.56 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.247e-05/0.5538, allocations: 7.922 kB / 1.023 GB, free: 12.55 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.067e-06/0.5538, allocations: 4 kB / 1.023 GB, free: 12.55 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.232e-05/0.5539, allocations: 4 kB / 1.023 GB, free: 12.55 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.956e-06/0.5539, allocations: 3.938 kB / 1.023 GB, free: 12.54 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.42e-07/0.5539, allocations: 0 / 1.023 GB, free: 12.54 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002701/0.5541, allocations: 215.9 kB / 1.023 GB, free: 12.32 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.616e-05/0.5542, allocations: 88.95 kB / 1.023 GB, free: 12.21 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.824e-05/0.5542, allocations: 0 / 1.023 GB, free: 12.21 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.939e-05/0.5543, allocations: 7.938 kB / 1.023 GB, free: 12.2 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.407e-05/0.5543, allocations: 7.984 kB / 1.023 GB, free: 12.2 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.306e-06/0.5544, allocations: 0 / 1.023 GB, free: 12.2 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 4.61e-05/0.5544, allocations: 95.27 kB / 1.023 GB, free: 12.1 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1e-07/0.5544, allocations: 0 / 1.023 GB, free: 12.1 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002967/0.5547, allocations: 39.98 kB / 1.023 GB, free: 12.06 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,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.0007315/0.5555, allocations: 0.8098 MB / 1.024 GB, free: 11.24 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002307/0.5557, allocations: 75.89 kB / 1.024 GB, free: 11.17 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.5557, allocations: 0 / 1.024 GB, free: 11.17 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 9.484e-05/0.5558, allocations: 35.97 kB / 1.024 GB, free: 11.13 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002552/0.5561, allocations: 11.92 kB / 1.024 GB, free: 11.12 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00154/0.5576, allocations: 1.477 MB / 1.026 GB, free: 9.547 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002458/0.5579, allocations: 0.6885 MB / 1.026 GB, free: 8.832 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 4.004e-05/0.5579, allocations: 8 kB / 1.026 GB, free: 8.824 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.858e-05/0.558, allocations: 23.42 kB / 1.026 GB, free: 8.801 MB / 0.7794 GB Notification: Performance of SimCode: time 2.4e-07/0.558, allocations: 0 / 1.026 GB, free: 8.801 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01884/0.5768, allocations: 2.602 MB / 1.029 GB, free: 6.301 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.403/7.98, allocations: 8.641 kB / 1.029 GB, free: 6.297 MB / 0.7794 GB (rm -f Buildings_10_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll.pipe ; mkfifo Buildings_10_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll.pipe ; head -c 1048576 < Buildings_10_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll.pipe >> ../files/Buildings_10_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll.sim & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll_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_Zhang2012WindowsAll.fmu > Buildings_10_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsAll.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll.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_10_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll_res.csv. Warning: Get data of variable win.occ from file Buildings_10_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll_res.csv failed! Error: Could not read variable win.on in file Buildings_10_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll_res.csv. Warning: Get data of variable win.on from file Buildings_10_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll_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