Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTOut.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.Haldi2008WindowsTOut,fileNamePrefix="Buildings_9_Buildings_Occupants_Office_Windows_Validation_Haldi2008WindowsTOut",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTOut,fileNamePrefix="Buildings_9_Buildings_Occupants_Office_Windows_Validation_Haldi2008WindowsTOut",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.007664/0.007665, allocations: 99.83 kB / 15.73 MB, free: 6.02 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.001752/0.001752, allocations: 193.6 kB / 16.67 MB, free: 5.934 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.4 MB, free: 15.06 MB / 206.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.383/2.383, allocations: 390.3 MB / 0.6648 GB, free: 0.6172 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001318/0.001318, allocations: 63.91 kB / 0.9504 GB, free: 8.141 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6903/0.6916, allocations: 140.4 MB / 1.087 GB, free: 5.258 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTOut): time 0.002279/0.694, allocations: 1.508 MB / 1.089 GB, free: 4.211 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001096/0.6951, allocations: 0.7271 MB / 1.09 GB, free: 3.715 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.832e-05/0.6951, allocations: 1.344 kB / 1.09 GB, free: 3.715 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 2.961e-05/0.6952, allocations: 5.016 kB / 1.09 GB, free: 3.711 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 4.85e-05/0.6952, allocations: 14.52 kB / 1.09 GB, free: 3.699 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.000487/0.6957, allocations: 120.9 kB / 1.09 GB, free: 3.641 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001001/0.6958, allocations: 85.44 kB / 1.09 GB, free: 3.598 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 8.236e-05/0.6959, allocations: 7.656 kB / 1.09 GB, free: 3.598 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 7.844e-05/0.696, allocations: 35.61 kB / 1.09 GB, free: 3.582 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 6.152e-05/0.6961, allocations: 40.58 kB / 1.09 GB, free: 3.562 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.881e-05/0.6961, allocations: 7.219 kB / 1.09 GB, free: 3.562 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001794/0.6963, allocations: 93.98 kB / 1.09 GB, free: 3.535 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.62e-05/0.6963, allocations: 18.53 kB / 1.09 GB, free: 3.523 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 4.52e-05/0.6964, allocations: 32.97 kB / 1.09 GB, free: 3.504 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002263/0.6966, allocations: 136.9 kB / 1.09 GB, free: 3.465 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.058e-06/0.6966, allocations: 0.7969 kB / 1.09 GB, free: 3.465 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.212e-06/0.6966, allocations: 0 / 1.09 GB, free: 3.465 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 4.258e-06/0.6966, allocations: 1.219 kB / 1.09 GB, free: 3.465 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0004949/0.6971, allocations: 429 kB / 1.091 GB, free: 3.035 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.303e-05/0.6972, allocations: 10.09 kB / 1.091 GB, free: 3.035 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.953e-05/0.6972, allocations: 37.02 kB / 1.091 GB, free: 2.992 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.502e-05/0.6972, allocations: 9.016 kB / 1.091 GB, free: 2.988 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.778e-05/0.6973, allocations: 178 kB / 1.091 GB, free: 2.781 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.163e-05/0.6973, allocations: 3.344 kB / 1.091 GB, free: 2.781 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.857e-05/0.6974, allocations: 8.188 kB / 1.091 GB, free: 2.777 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001721/0.6975, allocations: 76.11 kB / 1.091 GB, free: 2.727 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.604e-06/0.6976, allocations: 0.5625 kB / 1.091 GB, free: 2.727 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.165e-05/0.6976, allocations: 0.7188 kB / 1.091 GB, free: 2.727 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.648e-06/0.6976, allocations: 1.344 kB / 1.091 GB, free: 2.727 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001351/0.6977, allocations: 35.84 kB / 1.091 GB, free: 2.719 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005061/0.6982, allocations: 322.3 kB / 1.091 GB, free: 2.418 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001166/0.6984, allocations: 50.36 kB / 1.091 GB, free: 2.383 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.09e-05/0.6985, allocations: 31.73 kB / 1.091 GB, free: 2.367 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.922e-05/0.6985, allocations: 6.266 kB / 1.091 GB, free: 2.363 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001677/0.6987, allocations: 76.42 kB / 1.091 GB, free: 2.305 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=7): time 1.473e-06/0.6987, allocations: 0 / 1.091 GB, free: 2.305 MB / 0.8575 GB Notification: Performance of matching and sorting (n=7): time 0.0003839/0.6991, allocations: 141.4 kB / 1.092 GB, free: 2.238 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.741e-05/0.6991, allocations: 58.83 kB / 1.092 GB, free: 2.172 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.166e-05/0.6992, allocations: 118.7 kB / 1.092 GB, free: 2.066 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.161e-05/0.6992, allocations: 26.58 kB / 1.092 GB, free: 2.035 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 3.001e-05/0.6992, allocations: 88.52 kB / 1.092 GB, free: 1.949 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 1.828e-05/0.6993, allocations: 19.66 kB / 1.092 GB, free: 1.934 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.635e-05/0.6993, allocations: 33.22 kB / 1.092 GB, free: 1.906 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 3.772e-05/0.6993, allocations: 328 kB / 1.092 GB, free: 1.582 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.434e-05/0.6994, allocations: 22.94 kB / 1.092 GB, free: 1.578 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.158e-05/0.6995, allocations: 50.72 kB / 1.092 GB, free: 1.543 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001534/0.6997, allocations: 76.7 kB / 1.092 GB, free: 1.496 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.414e-06/0.6997, allocations: 4 kB / 1.092 GB, free: 1.492 MB / 0.8575 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002319/0.6999, allocations: 112.1 kB / 1.092 GB, free: 1.434 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.207e-05/0.7, allocations: 5.375 kB / 1.092 GB, free: 1.434 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.24e-06/0.7, allocations: 2.672 kB / 1.092 GB, free: 1.434 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.284e-05/0.7, allocations: 0.9062 kB / 1.092 GB, free: 1.434 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.841e-05/0.7001, allocations: 15.47 kB / 1.092 GB, free: 1.43 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.951e-06/0.7001, allocations: 1.891 kB / 1.092 GB, free: 1.43 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.975e-05/0.7002, allocations: 21.5 kB / 1.092 GB, free: 1.414 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.288e-05/0.7002, allocations: 3.344 kB / 1.092 GB, free: 1.414 MB / 0.8575 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 6.165e-05/0.7003, allocations: 121.6 kB / 1.093 GB, free: 1.293 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.802e-05/0.7003, allocations: 8.062 kB / 1.093 GB, free: 1.289 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.52e-05/0.7003, allocations: 14.36 kB / 1.093 GB, free: 1.273 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.605e-06/0.7003, allocations: 1.344 kB / 1.093 GB, free: 1.273 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.867e-06/0.7003, allocations: 0.9062 kB / 1.093 GB, free: 1.273 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.226e-06/0.7003, allocations: 0.7031 kB / 1.093 GB, free: 1.273 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003893/0.7007, allocations: 382.7 kB / 1.093 GB, free: 0.9336 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.452e-06/0.7007, allocations: 0 / 1.093 GB, free: 0.9336 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.231e-05/0.7008, allocations: 5.266 kB / 1.093 GB, free: 0.9336 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.743e-06/0.7008, allocations: 0.8125 kB / 1.093 GB, free: 0.9336 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.066e-05/0.7008, allocations: 5.703 kB / 1.093 GB, free: 0.9297 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.856e-06/0.7008, allocations: 5.75 kB / 1.093 GB, free: 0.9258 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.7008, allocations: 0 / 1.093 GB, free: 0.9258 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002518/0.7011, allocations: 216.1 kB / 1.093 GB, free: 0.7617 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 1.893e-05/0.7011, allocations: 83.95 kB / 1.093 GB, free: 0.6641 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.948e-05/0.7011, allocations: 1 kB / 1.093 GB, free: 0.6641 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.562e-05/0.7012, allocations: 12.95 kB / 1.093 GB, free: 0.6562 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.229e-05/0.7013, allocations: 5.281 kB / 1.093 GB, free: 0.6562 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.638e-06/0.7013, allocations: 2.797 kB / 1.093 GB, free: 0.6562 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 3.527e-05/0.7013, allocations: 91.78 kB / 1.093 GB, free: 0.5781 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.2e-07/0.7013, allocations: 0 / 1.093 GB, free: 0.5781 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0003108/0.7017, allocations: 46.3 kB / 1.093 GB, free: 0.5625 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: 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.0006716/0.7023, allocations: 0.8138 MB / 1.094 GB, free: 15.85 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0002397/0.7026, allocations: 72.59 kB / 1.094 GB, free: 15.83 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.7026, allocations: 0 / 1.094 GB, free: 15.83 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0001024/0.7027, allocations: 37.55 kB / 1.094 GB, free: 15.82 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002645/0.703, allocations: 13.44 kB / 1.094 GB, free: 15.81 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001587/0.7046, allocations: 1.488 MB / 1.096 GB, free: 14.49 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002271/0.7048, allocations: 0.6874 MB / 1.096 GB, free: 13.79 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 4.351e-05/0.7049, allocations: 9.078 kB / 1.097 GB, free: 13.79 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.6e-05/0.7049, allocations: 29.27 kB / 1.097 GB, free: 13.77 MB / 0.8731 GB Notification: Performance of SimCode: time 2.61e-07/0.7049, allocations: 0 / 1.097 GB, free: 13.77 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02053/0.7255, allocations: 2.623 MB / 1.099 GB, free: 13.29 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.118/7.843, allocations: 15.03 kB / 1.099 GB, free: 13.29 MB / 0.8731 GB (rm -f Buildings_9_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTOut.pipe ; mkfifo Buildings_9_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTOut.pipe ; head -c 1048576 < Buildings_9_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTOut.pipe >> ../files/Buildings_9_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTOut.sim & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTOut_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_Haldi2008WindowsTOut.fmu > Buildings_9_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTOut.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTOut_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Occupants_Office_Windows_Validation_Haldi2008WindowsTOut.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTOut.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_9_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTOut_res.csv. Warning: Get data of variable win.occ from file Buildings_9_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTOut_res.csv failed! Error: Could not read variable win.on in file Buildings_9_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTOut_res.csv. Warning: Get data of variable win.on from file Buildings_9_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTOut_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