Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.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.Zhang2012WindowsWest,fileNamePrefix="Buildings_latest_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsWest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest,fileNamePrefix="Buildings_latest_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsWest",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.001582/0.001582, 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.001716/0.001716, allocations: 197 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.409/1.409, 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 11.0.1-master/package.mo): time 2.904/2.904, allocations: 469.4 MB / 0.742 GB, free: 7.703 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001391/0.001391, allocations: 67.72 kB / 0.9083 GB, free: 34.45 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.439/0.4404, allocations: 159.1 MB / 1.064 GB, free: 14.52 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest): time 0.00358/0.4441, allocations: 1.507 MB / 1.065 GB, free: 13 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001646/0.4458, allocations: 0.7339 MB / 1.066 GB, free: 12.26 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.307e-05/0.4459, allocations: 4 kB / 1.066 GB, free: 12.25 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 3.874e-05/0.4459, allocations: 3.938 kB / 1.066 GB, free: 12.25 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0001013/0.4461, allocations: 15.84 kB / 1.066 GB, free: 12.23 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.000733/0.4468, allocations: 119.6 kB / 1.066 GB, free: 12.12 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001335/0.447, allocations: 79.77 kB / 1.066 GB, free: 12.04 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001084/0.4471, allocations: 8 kB / 1.066 GB, free: 12.03 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001176/0.4472, allocations: 39.89 kB / 1.066 GB, free: 11.99 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 8.513e-05/0.4473, allocations: 39.84 kB / 1.066 GB, free: 11.95 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.273e-05/0.4474, allocations: 4 kB / 1.066 GB, free: 11.95 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002675/0.4476, allocations: 99.84 kB / 1.066 GB, free: 11.85 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 3.846e-05/0.4477, allocations: 19.91 kB / 1.066 GB, free: 11.83 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 5.916e-05/0.4477, allocations: 27.86 kB / 1.066 GB, free: 11.8 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0003019/0.4481, allocations: 139.9 kB / 1.066 GB, free: 11.67 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.078e-06/0.4481, allocations: 0 / 1.066 GB, free: 11.67 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.613e-06/0.4481, allocations: 0 / 1.066 GB, free: 11.67 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 6.472e-06/0.4481, allocations: 0 / 1.066 GB, free: 11.67 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.0007147/0.4488, allocations: 425 kB / 1.067 GB, free: 11.2 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.913e-05/0.4489, allocations: 8.031 kB / 1.067 GB, free: 11.19 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.61e-05/0.4489, allocations: 34.75 kB / 1.067 GB, free: 11.15 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.304e-05/0.449, allocations: 4.844 kB / 1.067 GB, free: 11.14 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001454/0.4491, allocations: 176.2 kB / 1.067 GB, free: 10.93 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.901e-05/0.4492, allocations: 12.31 kB / 1.067 GB, free: 10.92 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.307e-05/0.4492, allocations: 4.375 kB / 1.067 GB, free: 10.92 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002068/0.4494, allocations: 69.78 kB / 1.067 GB, free: 10.84 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.206e-05/0.4494, allocations: 0 / 1.067 GB, free: 10.84 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.611e-05/0.4495, allocations: 7.938 kB / 1.067 GB, free: 10.84 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.241e-06/0.4495, allocations: 0 / 1.067 GB, free: 10.84 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001471/0.4496, allocations: 43.95 kB / 1.067 GB, free: 10.79 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000681/0.4503, allocations: 304.8 kB / 1.067 GB, free: 10.45 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001472/0.4505, allocations: 58.5 kB / 1.068 GB, free: 10.38 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.033e-05/0.4506, allocations: 40.95 kB / 1.068 GB, free: 10.34 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.782e-05/0.4506, allocations: 0 / 1.068 GB, free: 10.34 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002524/0.4509, allocations: 75.31 kB / 1.068 GB, free: 10.25 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=7): time 1.593e-06/0.4509, allocations: 4 kB / 1.068 GB, free: 10.25 MB / 0.8262 GB Notification: Performance of matching and sorting (n=7): time 0.0004402/0.4513, allocations: 145.5 kB / 1.068 GB, free: 10.1 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.086e-05/0.4514, allocations: 55.41 kB / 1.068 GB, free: 10.03 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001195/0.4515, allocations: 117.8 kB / 1.068 GB, free: 9.906 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.153e-05/0.4516, allocations: 33.7 kB / 1.068 GB, free: 9.867 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 5.83e-05/0.4516, allocations: 88.05 kB / 1.068 GB, free: 9.777 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.62e-05/0.4517, allocations: 19.75 kB / 1.068 GB, free: 9.758 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.809e-05/0.4517, allocations: 25.7 kB / 1.068 GB, free: 9.727 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001204/0.4518, allocations: 330.8 kB / 1.068 GB, free: 9.395 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.757e-05/0.4519, allocations: 23.98 kB / 1.068 GB, free: 9.371 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001091/0.4521, allocations: 50.98 kB / 1.068 GB, free: 9.312 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002204/0.4523, allocations: 74.8 kB / 1.069 GB, free: 9.23 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.4523, allocations: 4 kB / 1.069 GB, free: 9.227 MB / 0.8262 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002536/0.4526, allocations: 105.6 kB / 1.069 GB, free: 9.117 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.741e-05/0.4526, allocations: 4 kB / 1.069 GB, free: 9.113 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.172e-06/0.4526, allocations: 0 / 1.069 GB, free: 9.113 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.8e-05/0.4526, allocations: 0 / 1.069 GB, free: 9.113 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001056/0.4527, allocations: 23.92 kB / 1.069 GB, free: 9.09 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.014e-06/0.4527, allocations: 0 / 1.069 GB, free: 9.09 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.033e-05/0.4528, allocations: 7.906 kB / 1.069 GB, free: 9.082 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.721e-05/0.4528, allocations: 12.05 kB / 1.069 GB, free: 9.07 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 0.0001158/0.453, allocations: 125.7 kB / 1.069 GB, free: 8.938 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.024e-05/0.453, allocations: 7.906 kB / 1.069 GB, free: 8.93 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.131e-05/0.453, allocations: 8.375 kB / 1.069 GB, free: 8.922 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.395e-06/0.453, allocations: 0 / 1.069 GB, free: 8.922 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.991e-06/0.453, allocations: 0 / 1.069 GB, free: 8.922 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.454e-06/0.4531, allocations: 8 kB / 1.069 GB, free: 8.914 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004897/0.4536, allocations: 390.3 kB / 1.069 GB, free: 8.477 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.514e-06/0.4536, allocations: 0 / 1.069 GB, free: 8.477 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.228e-05/0.4536, allocations: 7.984 kB / 1.069 GB, free: 8.469 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.617e-06/0.4536, allocations: 0 / 1.069 GB, free: 8.469 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.323e-05/0.4536, allocations: 0 / 1.069 GB, free: 8.469 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.138e-06/0.4537, allocations: 3.938 kB / 1.069 GB, free: 8.465 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.412e-06/0.4537, allocations: 0 / 1.069 GB, free: 8.465 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000299/0.454, allocations: 219.4 kB / 1.069 GB, free: 8.234 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.007e-05/0.454, allocations: 81.02 kB / 1.07 GB, free: 8.137 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.247e-05/0.454, allocations: 4 kB / 1.07 GB, free: 8.133 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.641e-05/0.4541, allocations: 3.938 kB / 1.07 GB, free: 8.129 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.959e-05/0.4542, allocations: 7.984 kB / 1.07 GB, free: 8.121 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.12e-05/0.4542, allocations: 4 kB / 1.07 GB, free: 8.117 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 7.434e-05/0.4543, allocations: 103.4 kB / 1.07 GB, free: 8.016 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.3e-07/0.4543, allocations: 3.938 kB / 1.07 GB, free: 8.012 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003374/0.4547, allocations: 35.98 kB / 1.07 GB, free: 7.977 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.0009683/0.4556, allocations: 0.7898 MB / 1.07 GB, free: 7.176 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.000277/0.4559, allocations: 79.88 kB / 1.071 GB, free: 7.098 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.016e-06/0.4559, allocations: 0 / 1.071 GB, free: 7.098 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.000118/0.4561, allocations: 43.91 kB / 1.071 GB, free: 7.055 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002746/0.4564, allocations: 8.484 kB / 1.071 GB, free: 7.047 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001817/0.4582, allocations: 1.481 MB / 1.072 GB, free: 5.469 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002903/0.4585, allocations: 0.6961 MB / 1.073 GB, free: 4.746 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.949e-05/0.4585, allocations: 4 kB / 1.073 GB, free: 4.742 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.252e-05/0.4586, allocations: 23.42 kB / 1.073 GB, free: 4.719 MB / 0.8262 GB Notification: Performance of SimCode: time 3.51e-07/0.4586, allocations: 0 / 1.073 GB, free: 4.719 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0237/0.4823, allocations: 2.612 MB / 1.075 GB, free: 2.238 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.257/7.74, allocations: 6 kB / 1.075 GB, free: 2.234 MB / 0.8262 GB (rm -f Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.pipe ; mkfifo Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.pipe ; head -c 1048576 < Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.pipe >> ../files/Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest_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_Zhang2012WindowsWest.fmu > Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsWest.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.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.Zhang2012WindowsWest_res.csv. Warning: Get data of variable win.occ from file Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest_res.csv failed! Error: Could not read variable win.on in file Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest_res.csv. Warning: Get data of variable win.on from file Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest_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