Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest,fileNamePrefix="Buildings_9_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsWest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest,fileNamePrefix="Buildings_9_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsWest",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.211/2.211, allocations: 390.3 MB / 405.3 MB, free: 13.49 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009815/0.0009815, allocations: 179 kB / 498.1 MB, free: 5.738 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.479/1.479, allocations: 223.2 MB / 0.7948 GB, free: 17.9 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008505/0.0008505, allocations: 92.22 kB / 0.9346 GB, free: 6.195 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0004328/0.000433, allocations: 6.75 kB / 1.084 GB, free: 221.8 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2957/0.2962, allocations: 142.3 MB / 1.223 GB, free: 114.2 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1931/0.4893, allocations: 151.2 MB / 1.371 GB, free: 10.73 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003026/0.4897, allocations: 83.95 kB / 1.371 GB, free: 10.65 MB / 0.8698 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/Occupants/BaseClasses/binaryVariableGeneration.mo:11:3-11:96:writable] Warning: localSeed was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. Notification: Performance of FrontEnd - DAE generated: time 0.00975/0.4995, allocations: 3.041 MB / 1.374 GB, free: 7.605 MB / 0.8698 GB Notification: Performance of FrontEnd: time 3.126e-06/0.4995, allocations: 0 / 1.374 GB, free: 7.605 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 9.929e-06/0.4995, allocations: 4 kB / 1.374 GB, free: 7.602 MB / 0.8698 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.000637/0.5002, allocations: 420.8 kB / 1.374 GB, free: 7.137 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 5.063e-05/0.5002, allocations: 8.031 kB / 1.374 GB, free: 7.129 MB / 0.8698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.893e-05/0.5003, allocations: 46.53 kB / 1.374 GB, free: 7.074 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.957e-05/0.5003, allocations: 15.8 kB / 1.374 GB, free: 7.059 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001522/0.5005, allocations: 171 kB / 1.374 GB, free: 6.852 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.238e-05/0.5005, allocations: 4 kB / 1.374 GB, free: 6.848 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.031e-05/0.5006, allocations: 4 kB / 1.374 GB, free: 6.844 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001973/0.5008, allocations: 73.64 kB / 1.374 GB, free: 6.766 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.889e-06/0.5008, allocations: 0 / 1.374 GB, free: 6.766 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.332e-05/0.5008, allocations: 0 / 1.374 GB, free: 6.766 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.424e-06/0.5008, allocations: 4 kB / 1.374 GB, free: 6.762 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001348/0.501, allocations: 39.98 kB / 1.374 GB, free: 6.723 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006657/0.5016, allocations: 328.6 kB / 1.375 GB, free: 6.352 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001283/0.5018, allocations: 50.56 kB / 1.375 GB, free: 6.293 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 2.263e-05/0.5018, allocations: 0 / 1.375 GB, free: 6.293 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000183/0.502, allocations: 79.5 kB / 1.375 GB, free: 6.203 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=7): time 1.673e-06/0.502, allocations: 0 / 1.375 GB, free: 6.203 MB / 0.8698 GB Notification: Performance of matching and sorting (n=7): time 0.0004033/0.5024, allocations: 153.6 kB / 1.375 GB, free: 6.047 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.466e-05/0.5025, allocations: 51.41 kB / 1.375 GB, free: 5.984 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.653e-05/0.5026, allocations: 120.9 kB / 1.375 GB, free: 5.859 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 1.897e-05/0.5026, allocations: 29.7 kB / 1.375 GB, free: 5.824 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 6.816e-05/0.5027, allocations: 88.33 kB / 1.375 GB, free: 5.73 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 2.095e-05/0.5027, allocations: 19.75 kB / 1.375 GB, free: 5.711 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.081e-06/0.5027, allocations: 0 / 1.375 GB, free: 5.711 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.000115/0.5028, allocations: 322.8 kB / 1.376 GB, free: 5.387 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.005e-05/0.5029, allocations: 23.98 kB / 1.376 GB, free: 5.363 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001052/0.503, allocations: 62.8 kB / 1.376 GB, free: 5.293 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.363e-05/0.5031, allocations: 40.25 kB / 1.376 GB, free: 5.254 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.914e-06/0.5032, allocations: 0 / 1.376 GB, free: 5.254 MB / 0.8698 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.00024/0.5034, allocations: 117.5 kB / 1.376 GB, free: 5.133 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 1.867e-05/0.5034, allocations: 8 kB / 1.376 GB, free: 5.125 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.32e-06/0.5034, allocations: 4.062 kB / 1.376 GB, free: 5.121 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.699e-05/0.5035, allocations: 0 / 1.376 GB, free: 5.121 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.845e-05/0.5036, allocations: 19.98 kB / 1.376 GB, free: 5.102 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.946e-06/0.5036, allocations: 3.953 kB / 1.376 GB, free: 5.098 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.053e-05/0.5037, allocations: 7.984 kB / 1.376 GB, free: 5.09 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.597e-05/0.5037, allocations: 4 kB / 1.376 GB, free: 5.086 MB / 0.8698 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 (occ.y,$PRE.win.on,win.on,$PRE.win.p,win.p,$PRE.win.curSeed,win.curSeed,$whenCondition1,win.sampleTrigger) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001036/0.5038, allocations: 121.5 kB / 1.376 GB, free: 4.961 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.871e-05/0.5038, allocations: 11.91 kB / 1.376 GB, free: 4.949 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.992e-05/0.5039, allocations: 8.375 kB / 1.376 GB, free: 4.941 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.619e-06/0.5039, allocations: 4 kB / 1.376 GB, free: 4.938 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.156e-06/0.5039, allocations: 3.984 kB / 1.376 GB, free: 4.934 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.061e-06/0.5039, allocations: 3.953 kB / 1.376 GB, free: 4.93 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005249/0.5044, allocations: 378.5 kB / 1.376 GB, free: 4.504 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.755e-06/0.5044, allocations: 4 kB / 1.376 GB, free: 4.5 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.194e-05/0.5045, allocations: 4 kB / 1.376 GB, free: 4.496 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.332e-06/0.5045, allocations: 4 kB / 1.376 GB, free: 4.492 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.551e-05/0.5045, allocations: 4 kB / 1.376 GB, free: 4.488 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.017e-06/0.5045, allocations: 7.891 kB / 1.376 GB, free: 4.48 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.004e-06/0.5045, allocations: 3.984 kB / 1.376 GB, free: 4.477 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002814/0.5048, allocations: 219.4 kB / 1.377 GB, free: 4.246 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 4.723e-05/0.5049, allocations: 81.02 kB / 1.377 GB, free: 4.148 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.077e-05/0.5049, allocations: 4 kB / 1.377 GB, free: 4.145 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.853e-05/0.505, allocations: 7.984 kB / 1.377 GB, free: 4.137 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.516e-05/0.5051, allocations: 3.953 kB / 1.377 GB, free: 4.133 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.174e-05/0.5051, allocations: 7.984 kB / 1.377 GB, free: 4.125 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 5.522e-05/0.5051, allocations: 91.27 kB / 1.377 GB, free: 4.035 MB / 0.8698 GB Notification: Performance of sort global known variables: time 1.7e-07/0.5051, allocations: 0 / 1.377 GB, free: 4.035 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.0003315/0.5055, allocations: 51.94 kB / 1.377 GB, free: 3.984 MB / 0.8698 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,occ.y,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009433/0.5064, allocations: 0.8208 MB / 1.378 GB, free: 3.145 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.0002553/0.5067, allocations: 72.22 kB / 1.378 GB, free: 3.074 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.5067, allocations: 0 / 1.378 GB, free: 3.074 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.000108/0.5068, allocations: 48.23 kB / 1.378 GB, free: 3.027 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002037/0.507, allocations: 16.52 kB / 1.378 GB, free: 3.012 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008471/0.5079, allocations: 0.7269 MB / 1.379 GB, free: 2.227 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002758/0.5082, allocations: 0.6899 MB / 1.379 GB, free: 1.512 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 4.392e-05/0.5082, allocations: 4.188 kB / 1.379 GB, free: 1.508 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.359e-05/0.5083, allocations: 27.42 kB / 1.379 GB, free: 1.48 MB / 0.8698 GB Notification: Performance of SimCode: time 2.9e-07/0.5083, allocations: 0 / 1.379 GB, free: 1.48 MB / 0.8698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01563/0.5239, allocations: 2.481 MB / 1.382 GB, free: 15.15 MB / 0.8855 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002016/0.5242, allocations: 231.2 kB / 1.382 GB, free: 14.91 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.561/2.086, allocations: 4 kB / 1.382 GB, free: 14.91 MB / 0.8855 GB (rm -f Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.pipe ; mkfifo Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.pipe ; head -c 1048576 < Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.pipe >> ../files/Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest_res.mat --tempDir=temp_Buildings_9_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsWest_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsWest.fmu > Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest_res.mat does not exist to compare? outputFormat=mat