Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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.Zhang2012WindowsWest,fileNamePrefix="Buildings_11_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsWest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest,fileNamePrefix="Buildings_11_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.007765/0.007765, allocations: 99.69 kB / 15.73 MB, free: 6.039 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.002225/0.002226, allocations: 192.3 kB / 16.67 MB, free: 5.949 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.457/1.457, allocations: 222.9 MB / 240.4 MB, free: 4.176 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.869/2.869, allocations: 469.8 MB / 0.7425 GB, free: 7.316 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.002/0.002, allocations: 59.89 kB / 1.065 GB, free: 13.61 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2655/0.2675, allocations: 159.1 MB / 1.22 GB, free: 14.36 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest): time 0.002547/0.2701, allocations: 1.503 MB / 1.222 GB, free: 12.84 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001237/0.2713, allocations: 0.7323 MB / 1.222 GB, free: 12.1 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.511e-05/0.2714, allocations: 0 / 1.222 GB, free: 12.1 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 3.384e-05/0.2714, allocations: 7.875 kB / 1.222 GB, free: 12.09 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 4.899e-05/0.2715, allocations: 7.938 kB / 1.222 GB, free: 12.09 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.000521/0.272, allocations: 127.5 kB / 1.222 GB, free: 11.96 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0001243/0.2722, allocations: 79.77 kB / 1.223 GB, free: 11.88 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 8.515e-05/0.2723, allocations: 11.94 kB / 1.223 GB, free: 11.87 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 8.123e-05/0.2723, allocations: 31.92 kB / 1.223 GB, free: 11.84 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 7.686e-05/0.2724, allocations: 47.81 kB / 1.223 GB, free: 11.79 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 1.775e-05/0.2725, allocations: 8 kB / 1.223 GB, free: 11.79 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002049/0.2727, allocations: 99.84 kB / 1.223 GB, free: 11.69 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 2.443e-05/0.2727, allocations: 11.92 kB / 1.223 GB, free: 11.68 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 4.775e-05/0.2728, allocations: 31.86 kB / 1.223 GB, free: 11.64 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0002341/0.273, allocations: 143.5 kB / 1.223 GB, free: 11.5 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 2.965e-06/0.273, allocations: 0 / 1.223 GB, free: 11.5 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.212e-06/0.273, allocations: 0 / 1.223 GB, free: 11.5 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 4.518e-06/0.273, allocations: 0 / 1.223 GB, free: 11.5 MB / 0.9825 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.0006393/0.2737, allocations: 428.6 kB / 1.223 GB, free: 11.03 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.548e-05/0.2737, allocations: 8.031 kB / 1.223 GB, free: 11.02 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.87e-05/0.2738, allocations: 38.75 kB / 1.223 GB, free: 10.98 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.539e-05/0.2738, allocations: 8.891 kB / 1.223 GB, free: 10.97 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001269/0.2739, allocations: 168.3 kB / 1.224 GB, free: 10.77 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.228e-05/0.274, allocations: 384 / 1.224 GB, free: 10.77 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.918e-05/0.274, allocations: 12.36 kB / 1.224 GB, free: 10.75 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001886/0.2742, allocations: 69.78 kB / 1.224 GB, free: 10.68 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.155e-06/0.2742, allocations: 3.938 kB / 1.224 GB, free: 10.68 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.094e-05/0.2742, allocations: 0 / 1.224 GB, free: 10.68 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.981e-06/0.2742, allocations: 7.984 kB / 1.224 GB, free: 10.67 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001438/0.2744, allocations: 39.91 kB / 1.224 GB, free: 10.63 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000613/0.275, allocations: 320.7 kB / 1.224 GB, free: 10.27 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001331/0.2752, allocations: 42.56 kB / 1.224 GB, free: 10.21 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.073e-05/0.2753, allocations: 36.97 kB / 1.224 GB, free: 10.18 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.878e-05/0.2753, allocations: 0 / 1.224 GB, free: 10.18 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001947/0.2755, allocations: 83.31 kB / 1.224 GB, free: 10.08 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=7): time 1.413e-06/0.2755, allocations: 0 / 1.224 GB, free: 10.08 MB / 0.9825 GB Notification: Performance of matching and sorting (n=7): time 0.0004175/0.2759, allocations: 137.6 kB / 1.224 GB, free: 9.941 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.46e-05/0.276, allocations: 59.41 kB / 1.224 GB, free: 9.871 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001148/0.2761, allocations: 125.7 kB / 1.224 GB, free: 9.738 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.032e-05/0.2761, allocations: 25.7 kB / 1.224 GB, free: 9.707 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 5.712e-05/0.2762, allocations: 100.1 kB / 1.225 GB, free: 9.605 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 2.367e-05/0.2762, allocations: 11.97 kB / 1.225 GB, free: 9.594 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.316e-05/0.2763, allocations: 29.7 kB / 1.225 GB, free: 9.559 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001382/0.2764, allocations: 326.8 kB / 1.225 GB, free: 9.23 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.674e-05/0.2765, allocations: 19.98 kB / 1.225 GB, free: 9.211 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001048/0.2766, allocations: 58.5 kB / 1.225 GB, free: 9.145 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001738/0.2768, allocations: 70.55 kB / 1.225 GB, free: 9.066 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.624e-06/0.2768, allocations: 0 / 1.225 GB, free: 9.066 MB / 0.9825 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002607/0.2771, allocations: 117.5 kB / 1.225 GB, free: 8.945 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.223e-05/0.2771, allocations: 4 kB / 1.225 GB, free: 8.941 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.951e-06/0.2771, allocations: 0 / 1.225 GB, free: 8.941 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.277e-05/0.2771, allocations: 7.938 kB / 1.225 GB, free: 8.934 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.916e-05/0.2772, allocations: 15.92 kB / 1.225 GB, free: 8.918 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.21e-06/0.2772, allocations: 400 / 1.225 GB, free: 8.918 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.926e-05/0.2773, allocations: 11.94 kB / 1.225 GB, free: 8.906 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.404e-05/0.2773, allocations: 4 kB / 1.225 GB, free: 8.902 MB / 0.9825 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.8e-05/0.2774, allocations: 121.8 kB / 1.225 GB, free: 8.773 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.189e-05/0.2775, allocations: 11.94 kB / 1.225 GB, free: 8.762 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.792e-05/0.2775, allocations: 8.375 kB / 1.225 GB, free: 8.746 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.613e-06/0.2775, allocations: 0 / 1.225 GB, free: 8.746 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.307e-06/0.2775, allocations: 4 kB / 1.225 GB, free: 8.742 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.695e-06/0.2775, allocations: 0 / 1.225 GB, free: 8.742 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000509/0.278, allocations: 390.3 kB / 1.226 GB, free: 8.305 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.723e-06/0.2781, allocations: 0 / 1.226 GB, free: 8.305 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.189e-05/0.2781, allocations: 8 kB / 1.226 GB, free: 8.297 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.378e-06/0.2781, allocations: 3.984 kB / 1.226 GB, free: 8.293 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.057e-05/0.2781, allocations: 0 / 1.226 GB, free: 8.293 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.546e-06/0.2781, allocations: 3.938 kB / 1.226 GB, free: 8.289 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.72e-07/0.2781, allocations: 0 / 1.226 GB, free: 8.289 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003117/0.2785, allocations: 203.5 kB / 1.226 GB, free: 8.074 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 4.92e-05/0.2785, allocations: 85.05 kB / 1.226 GB, free: 7.973 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.156e-05/0.2786, allocations: 12 kB / 1.226 GB, free: 7.961 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.655e-05/0.2787, allocations: 3.938 kB / 1.226 GB, free: 7.957 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.521e-05/0.2787, allocations: 7.984 kB / 1.226 GB, free: 7.949 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.072e-05/0.2787, allocations: 4 kB / 1.226 GB, free: 7.945 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 6.036e-05/0.2788, allocations: 91.27 kB / 1.226 GB, free: 7.855 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2788, allocations: 0 / 1.226 GB, free: 7.855 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002977/0.2791, allocations: 39.88 kB / 1.226 GB, free: 7.816 MB / 0.9825 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.0008699/0.28, allocations: 0.8156 MB / 1.227 GB, free: 6.992 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0002423/0.2802, allocations: 68.02 kB / 1.227 GB, free: 6.926 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 3.727e-06/0.2802, allocations: 8.062 kB / 1.227 GB, free: 6.918 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001042/0.2803, allocations: 35.92 kB / 1.227 GB, free: 6.883 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002568/0.2806, allocations: 17.44 kB / 1.227 GB, free: 6.867 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001707/0.2823, allocations: 1.508 MB / 1.229 GB, free: 5.266 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002937/0.2826, allocations: 0.6846 MB / 1.229 GB, free: 4.555 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 3.787e-05/0.2827, allocations: 7.984 kB / 1.229 GB, free: 4.547 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.34e-05/0.2827, allocations: 15.44 kB / 1.229 GB, free: 4.531 MB / 0.9825 GB Notification: Performance of SimCode: time 2.51e-07/0.2827, allocations: 0 / 1.229 GB, free: 4.531 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02289/0.3056, allocations: 2.638 MB / 1.232 GB, free: 2.039 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.692/7.998, allocations: 14.22 kB / 1.232 GB, free: 2.027 MB / 0.9825 GB (rm -f Buildings_11_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.pipe ; mkfifo Buildings_11_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.pipe ; head -c 1048576 < Buildings_11_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.pipe >> ../files/Buildings_11_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.sim & python3 -m fmpy simulate --output-file Buildings_11_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest_res.csv --start-time 0 --stop-time 3600 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1.44 Buildings_11_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsWest.fmu > Buildings_11_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsWest.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_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_11_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest_res.csv. Warning: Get data of variable win.occ from file Buildings_11_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest_res.csv failed! Error: Could not read variable win.on in file Buildings_11_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest_res.csv. Warning: Get data of variable win.on from file Buildings_11_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