Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 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.Zhang2012WindowsAll,fileNamePrefix="Buildings_9_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsAll",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll,fileNamePrefix="Buildings_9_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.005513/0.005513, allocations: 97.69 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.001383/0.001383, allocations: 198.4 kB / 16.68 MB, free: 5.961 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.32/1.32, allocations: 222.9 MB / 240.4 MB, free: 15.09 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.244/2.244, allocations: 390.3 MB / 0.6648 GB, free: 0.6133 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001271/0.001271, allocations: 67.89 kB / 0.9504 GB, free: 8.145 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7305/0.7318, allocations: 140.4 MB / 1.087 GB, free: 5.254 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll): time 0.002222/0.7341, allocations: 1.507 MB / 1.089 GB, free: 4.207 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001076/0.7352, allocations: 0.7272 MB / 1.09 GB, free: 3.711 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.757e-05/0.7352, allocations: 1.125 kB / 1.09 GB, free: 3.711 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 2.561e-05/0.7352, allocations: 8.5 kB / 1.09 GB, free: 3.703 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 4.96e-05/0.7353, allocations: 11.2 kB / 1.09 GB, free: 3.695 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005004/0.7358, allocations: 120.2 kB / 1.09 GB, free: 3.637 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001045/0.7359, allocations: 81.83 kB / 1.09 GB, free: 3.598 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 8.332e-05/0.736, allocations: 11.94 kB / 1.09 GB, free: 3.594 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 7.86e-05/0.7361, allocations: 34.06 kB / 1.09 GB, free: 3.578 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 6.316e-05/0.7362, allocations: 37.92 kB / 1.09 GB, free: 3.562 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.844e-05/0.7362, allocations: 6.094 kB / 1.09 GB, free: 3.562 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001815/0.7364, allocations: 98.64 kB / 1.09 GB, free: 3.531 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.622e-05/0.7364, allocations: 23.28 kB / 1.09 GB, free: 3.516 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 4.431e-05/0.7365, allocations: 27.14 kB / 1.09 GB, free: 3.5 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002374/0.7367, allocations: 137.5 kB / 1.09 GB, free: 3.461 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.7367, allocations: 4.812 kB / 1.09 GB, free: 3.457 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.552e-06/0.7367, allocations: 0 / 1.09 GB, free: 3.457 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 4.96e-06/0.7368, allocations: 0 / 1.09 GB, free: 3.457 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.0005136/0.7373, allocations: 431.4 kB / 1.091 GB, free: 3.027 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.507e-05/0.7373, allocations: 9.375 kB / 1.091 GB, free: 3.027 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.89e-05/0.7373, allocations: 34.09 kB / 1.091 GB, free: 2.988 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.452e-05/0.7374, allocations: 7.703 kB / 1.091 GB, free: 2.984 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.409e-05/0.7375, allocations: 174.4 kB / 1.091 GB, free: 2.781 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.244e-05/0.7375, allocations: 7.188 kB / 1.091 GB, free: 2.777 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.924e-05/0.7375, allocations: 4.344 kB / 1.091 GB, free: 2.777 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001744/0.7377, allocations: 72.89 kB / 1.091 GB, free: 2.73 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.024e-06/0.7377, allocations: 0 / 1.091 GB, free: 2.73 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.248e-05/0.7377, allocations: 9.578 kB / 1.091 GB, free: 2.723 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.518e-06/0.7377, allocations: 1.062 kB / 1.091 GB, free: 2.723 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001337/0.7379, allocations: 34.89 kB / 1.091 GB, free: 2.715 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005084/0.7384, allocations: 318.4 kB / 1.091 GB, free: 2.418 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001192/0.7385, allocations: 53.67 kB / 1.091 GB, free: 2.379 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.123e-05/0.7386, allocations: 33.09 kB / 1.091 GB, free: 2.363 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.9e-05/0.7386, allocations: 1.094 kB / 1.091 GB, free: 2.363 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001745/0.7388, allocations: 72.75 kB / 1.091 GB, free: 2.309 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=7): time 1.352e-06/0.7388, allocations: 0 / 1.091 GB, free: 2.309 MB / 0.8575 GB Notification: Performance of matching and sorting (n=7): time 0.0003895/0.7392, allocations: 150 kB / 1.092 GB, free: 2.234 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.438e-05/0.7392, allocations: 53.34 kB / 1.092 GB, free: 2.172 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.956e-05/0.7393, allocations: 119.8 kB / 1.092 GB, free: 2.066 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.397e-05/0.7394, allocations: 30.84 kB / 1.092 GB, free: 2.031 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 3.343e-05/0.7394, allocations: 88.38 kB / 1.092 GB, free: 1.945 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 1.896e-05/0.7394, allocations: 16.14 kB / 1.092 GB, free: 1.934 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.699e-05/0.7395, allocations: 29.27 kB / 1.092 GB, free: 1.91 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 3.834e-05/0.7395, allocations: 323.1 kB / 1.092 GB, free: 1.59 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.764e-05/0.7396, allocations: 31.97 kB / 1.092 GB, free: 1.578 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.276e-05/0.7397, allocations: 50.86 kB / 1.092 GB, free: 1.543 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001555/0.7399, allocations: 72.45 kB / 1.092 GB, free: 1.5 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.943e-06/0.7399, allocations: 0 / 1.092 GB, free: 1.5 MB / 0.8575 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002355/0.7401, allocations: 120.9 kB / 1.092 GB, free: 1.434 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.428e-05/0.7402, allocations: 5.469 kB / 1.092 GB, free: 1.434 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.869e-06/0.7402, allocations: 0.7812 kB / 1.092 GB, free: 1.434 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.366e-05/0.7402, allocations: 2.219 kB / 1.092 GB, free: 1.434 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.414e-05/0.7403, allocations: 10.62 kB / 1.092 GB, free: 1.434 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.872e-06/0.7403, allocations: 10.22 kB / 1.092 GB, free: 1.426 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.737e-05/0.7404, allocations: 12.88 kB / 1.092 GB, free: 1.418 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.386e-05/0.7404, allocations: 3.375 kB / 1.092 GB, free: 1.418 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.295e-05/0.7405, allocations: 124.2 kB / 1.093 GB, free: 1.293 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.741e-05/0.7405, allocations: 11.45 kB / 1.093 GB, free: 1.285 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.585e-05/0.7405, allocations: 11.14 kB / 1.093 GB, free: 1.273 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.386e-06/0.7405, allocations: 1.562 kB / 1.093 GB, free: 1.273 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.667e-06/0.7405, allocations: 0 / 1.093 GB, free: 1.273 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.968e-06/0.7405, allocations: 4.781 kB / 1.093 GB, free: 1.27 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003883/0.7409, allocations: 382.6 kB / 1.093 GB, free: 0.9297 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.733e-06/0.7409, allocations: 0.75 kB / 1.093 GB, free: 0.9297 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.158e-05/0.741, allocations: 9.203 kB / 1.093 GB, free: 0.9258 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.404e-06/0.741, allocations: 0.7969 kB / 1.093 GB, free: 0.9258 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.093e-05/0.741, allocations: 2.328 kB / 1.093 GB, free: 0.9258 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.264e-06/0.741, allocations: 4.656 kB / 1.093 GB, free: 0.9219 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.334e-06/0.741, allocations: 0.6562 kB / 1.093 GB, free: 0.9219 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002585/0.7413, allocations: 220.1 kB / 1.093 GB, free: 0.7539 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 1.974e-05/0.7413, allocations: 84.08 kB / 1.093 GB, free: 0.6562 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.185e-05/0.7413, allocations: 1.672 kB / 1.093 GB, free: 0.6562 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.318e-05/0.7414, allocations: 11.69 kB / 1.093 GB, free: 0.6484 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.073e-05/0.7415, allocations: 4.656 kB / 1.093 GB, free: 0.6484 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.1e-05/0.7415, allocations: 3.484 kB / 1.093 GB, free: 0.6484 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 3.755e-05/0.7415, allocations: 95.88 kB / 1.093 GB, free: 0.5664 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.3e-07/0.7416, allocations: 0 / 1.093 GB, free: 0.5664 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0003264/0.7419, allocations: 37.98 kB / 1.093 GB, free: 0.5586 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.0007189/0.7426, allocations: 0.7993 MB / 1.094 GB, free: 15.86 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0002513/0.7429, allocations: 76.89 kB / 1.094 GB, free: 15.83 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.7429, allocations: 0 / 1.094 GB, free: 15.83 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.000104/0.743, allocations: 41.19 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.0002597/0.7433, allocations: 9.172 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.001617/0.7449, allocations: 1.492 MB / 1.096 GB, free: 14.49 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002191/0.7451, allocations: 0.6872 MB / 1.096 GB, free: 13.79 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 4.008e-05/0.7452, allocations: 8.25 kB / 1.097 GB, free: 13.79 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.933e-05/0.7452, allocations: 22.22 kB / 1.097 GB, free: 13.77 MB / 0.8731 GB Notification: Performance of SimCode: time 2.9e-07/0.7452, allocations: 4 kB / 1.097 GB, free: 13.77 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.018/0.7632, allocations: 2.633 MB / 1.099 GB, free: 13.29 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.407/8.17, allocations: 8.969 kB / 1.099 GB, free: 13.28 MB / 0.8731 GB (rm -f Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll.pipe ; mkfifo Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll.pipe ; head -c 1048576 < Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll.pipe >> ../files/Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll.sim & python3 -m fmpy simulate --output-file Buildings_9_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_9_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsAll.fmu > Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsAll.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_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_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll_res.csv. Warning: Get data of variable win.occ from file Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll_res.csv failed! Error: Could not read variable win.on in file Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll_res.csv. Warning: Get data of variable win.on from file Buildings_9_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