Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth.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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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.Zhang2012WindowsSouth,fileNamePrefix="Buildings_latest_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsSouth",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth,fileNamePrefix="Buildings_latest_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsSouth",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.004928/0.004928, allocations: 99.83 kB / 15.73 MB, free: 6.012 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.001171/0.001171, allocations: 193.5 kB / 16.67 MB, free: 5.93 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.317/1.317, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.642/2.642, allocations: 472.7 MB / 0.7453 GB, free: 460 kB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.002348/0.002348, allocations: 63.91 kB / 1.069 GB, free: 10.07 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7484/0.7507, allocations: 159.9 MB / 1.225 GB, free: 13.41 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth): time 0.002842/0.7536, allocations: 1.502 MB / 1.227 GB, free: 11.9 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.00127/0.7549, allocations: 0.7257 MB / 1.227 GB, free: 11.17 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.758e-05/0.755, allocations: 0 / 1.227 GB, free: 11.17 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 3.303e-05/0.7551, allocations: 3.938 kB / 1.227 GB, free: 11.17 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 5.047e-05/0.7551, allocations: 11.81 kB / 1.227 GB, free: 11.16 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.000569/0.7557, allocations: 131.6 kB / 1.227 GB, free: 11.03 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0001171/0.7558, allocations: 75.77 kB / 1.228 GB, free: 10.95 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 9.147e-05/0.7559, allocations: 15.94 kB / 1.228 GB, free: 10.94 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 8.286e-05/0.756, allocations: 31.92 kB / 1.228 GB, free: 10.91 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 6.464e-05/0.7561, allocations: 39.81 kB / 1.228 GB, free: 10.87 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 1.776e-05/0.7561, allocations: 8 kB / 1.228 GB, free: 10.86 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001937/0.7563, allocations: 99.84 kB / 1.228 GB, free: 10.76 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 4.061e-05/0.7564, allocations: 15.92 kB / 1.228 GB, free: 10.75 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 5.582e-05/0.7564, allocations: 35.86 kB / 1.228 GB, free: 10.71 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0002499/0.7567, allocations: 139.3 kB / 1.228 GB, free: 10.58 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 3.957e-06/0.7567, allocations: 0 / 1.228 GB, free: 10.58 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.663e-06/0.7567, allocations: 0 / 1.228 GB, free: 10.58 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 5.37e-06/0.7567, allocations: 0 / 1.228 GB, free: 10.58 MB / 0.9512 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.0006661/0.7574, allocations: 420.7 kB / 1.228 GB, free: 10.12 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 4.197e-05/0.7574, allocations: 8.031 kB / 1.228 GB, free: 10.11 MB / 0.9512 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.036e-05/0.7575, allocations: 38.75 kB / 1.228 GB, free: 10.06 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.924e-05/0.7575, allocations: 8.891 kB / 1.228 GB, free: 10.05 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000124/0.7577, allocations: 180.2 kB / 1.229 GB, free: 9.84 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.56e-05/0.7577, allocations: 4.375 kB / 1.229 GB, free: 9.836 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.649e-05/0.7577, allocations: 4.375 kB / 1.229 GB, free: 9.832 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001833/0.7579, allocations: 77.72 kB / 1.229 GB, free: 9.75 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.094e-06/0.7579, allocations: 0 / 1.229 GB, free: 9.75 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.152e-05/0.7579, allocations: 0 / 1.229 GB, free: 9.75 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.049e-06/0.7579, allocations: 3.938 kB / 1.229 GB, free: 9.746 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001307/0.7581, allocations: 35.97 kB / 1.229 GB, free: 9.711 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005827/0.7587, allocations: 324.7 kB / 1.229 GB, free: 9.344 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001264/0.7588, allocations: 46.56 kB / 1.229 GB, free: 9.289 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.515e-05/0.7589, allocations: 32.97 kB / 1.229 GB, free: 9.254 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 2.02e-05/0.7589, allocations: 0 / 1.229 GB, free: 9.254 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002052/0.7591, allocations: 83.44 kB / 1.229 GB, free: 9.16 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=7): time 1.382e-06/0.7592, allocations: 0 / 1.229 GB, free: 9.16 MB / 0.9512 GB Notification: Performance of matching and sorting (n=7): time 0.0004054/0.7596, allocations: 141.5 kB / 1.229 GB, free: 9.016 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.284e-05/0.7596, allocations: 55.41 kB / 1.229 GB, free: 8.949 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.638e-05/0.7597, allocations: 121.8 kB / 1.229 GB, free: 8.82 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 2.575e-05/0.7598, allocations: 29.7 kB / 1.229 GB, free: 8.785 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 5.419e-05/0.7598, allocations: 92.12 kB / 1.23 GB, free: 8.691 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 1.979e-05/0.7598, allocations: 15.91 kB / 1.23 GB, free: 8.676 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.513e-05/0.7599, allocations: 29.7 kB / 1.23 GB, free: 8.641 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001101/0.76, allocations: 326.8 kB / 1.23 GB, free: 8.312 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.026e-05/0.7601, allocations: 19.98 kB / 1.23 GB, free: 8.293 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.433e-05/0.7602, allocations: 50.94 kB / 1.23 GB, free: 8.234 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001684/0.7604, allocations: 86.77 kB / 1.23 GB, free: 8.141 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/0.7604, allocations: 0 / 1.23 GB, free: 8.141 MB / 0.9512 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002421/0.7606, allocations: 113.5 kB / 1.23 GB, free: 8.023 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.717e-05/0.7607, allocations: 4 kB / 1.23 GB, free: 8.02 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.721e-06/0.7607, allocations: 8 kB / 1.23 GB, free: 8.012 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.68e-05/0.7607, allocations: 0 / 1.23 GB, free: 8.012 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.699e-05/0.7608, allocations: 15.98 kB / 1.23 GB, free: 7.996 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.438e-06/0.7608, allocations: 3.938 kB / 1.23 GB, free: 7.992 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.633e-05/0.7609, allocations: 11.94 kB / 1.23 GB, free: 7.98 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.476e-05/0.7609, allocations: 4 kB / 1.23 GB, free: 7.977 MB / 0.9512 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 9.056e-05/0.761, allocations: 122.3 kB / 1.23 GB, free: 7.848 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.819e-05/0.761, allocations: 7.953 kB / 1.23 GB, free: 7.84 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.984e-05/0.7611, allocations: 12.38 kB / 1.23 GB, free: 7.824 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.134e-06/0.7611, allocations: 0 / 1.23 GB, free: 7.824 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.518e-06/0.7611, allocations: 0 / 1.23 GB, free: 7.824 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.061e-06/0.7611, allocations: 4 kB / 1.23 GB, free: 7.82 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004336/0.7615, allocations: 382.4 kB / 1.231 GB, free: 7.391 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.254e-06/0.7615, allocations: 0 / 1.231 GB, free: 7.391 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.3e-05/0.7616, allocations: 7.984 kB / 1.231 GB, free: 7.383 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.355e-06/0.7616, allocations: 0 / 1.231 GB, free: 7.383 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.098e-05/0.7616, allocations: 0 / 1.231 GB, free: 7.383 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.218e-06/0.7616, allocations: 7.938 kB / 1.231 GB, free: 7.375 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.7616, allocations: 0 / 1.231 GB, free: 7.375 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002812/0.7619, allocations: 211.5 kB / 1.231 GB, free: 7.152 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 3.815e-05/0.762, allocations: 85 kB / 1.231 GB, free: 7.051 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.179e-05/0.762, allocations: 4 kB / 1.231 GB, free: 7.047 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.68e-05/0.7621, allocations: 7.875 kB / 1.231 GB, free: 7.039 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.1e-05/0.7621, allocations: 15.98 kB / 1.231 GB, free: 7.023 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.256e-05/0.7622, allocations: 8 kB / 1.231 GB, free: 7.016 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 4.787e-05/0.7622, allocations: 91.27 kB / 1.231 GB, free: 6.926 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.2e-07/0.7622, allocations: 0 / 1.231 GB, free: 6.926 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0002968/0.7625, allocations: 43.86 kB / 1.231 GB, free: 6.883 MB / 0.9512 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.0007849/0.7633, allocations: 0.7963 MB / 1.232 GB, free: 6.078 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0002355/0.7636, allocations: 80.17 kB / 1.232 GB, free: 6 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.7636, allocations: 0 / 1.232 GB, free: 6 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 9.501e-05/0.7637, allocations: 35.92 kB / 1.232 GB, free: 5.965 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002494/0.7639, allocations: 20.59 kB / 1.232 GB, free: 5.945 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001588/0.7655, allocations: 1.495 MB / 1.234 GB, free: 4.355 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002758/0.7658, allocations: 0.6846 MB / 1.234 GB, free: 3.645 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 4.275e-05/0.7659, allocations: 7.984 kB / 1.234 GB, free: 3.637 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.567e-05/0.7659, allocations: 19.44 kB / 1.234 GB, free: 3.617 MB / 0.9512 GB Notification: Performance of SimCode: time 3.8e-07/0.7659, allocations: 0 / 1.234 GB, free: 3.617 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01923/0.7852, allocations: 2.654 MB / 1.237 GB, free: 1.117 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.579/8.364, allocations: 13.48 kB / 1.237 GB, free: 1.105 MB / 0.9512 GB (rm -f Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth.pipe ; mkfifo Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth.pipe ; head -c 1048576 < Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth.pipe >> ../files/Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth_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_Zhang2012WindowsSouth.fmu > Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsSouth.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth.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.Zhang2012WindowsSouth_res.csv. Warning: Get data of variable win.occ from file Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth_res.csv failed! Error: Could not read variable win.on in file Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth_res.csv. Warning: Get data of variable win.on from file Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth_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