Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast.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.Zhang2012WindowsEast,fileNamePrefix="Buildings_9_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsEast",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast,fileNamePrefix="Buildings_9_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsEast",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.216/2.216, allocations: 390.3 MB / 405.3 MB, free: 13.41 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.0009595/0.0009596, allocations: 177.1 kB / 498.1 MB, free: 5.664 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.373/1.373, allocations: 223.2 MB / 0.7948 GB, free: 17.86 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.0008598/0.0008597, allocations: 112.2 kB / 0.9346 GB, free: 6.145 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003988/0.0003988, allocations: 6.969 kB / 1.084 GB, free: 221.3 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2916/0.292, allocations: 142.3 MB / 1.223 GB, free: 114.1 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1805/0.4726, allocations: 151.2 MB / 1.371 GB, free: 10.65 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002931/0.473, allocations: 83.95 kB / 1.371 GB, free: 10.57 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.009695/0.4827, allocations: 3.032 MB / 1.374 GB, free: 7.531 MB / 0.8698 GB Notification: Performance of FrontEnd: time 2.063e-06/0.4827, allocations: 0 / 1.374 GB, free: 7.531 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 9.668e-06/0.4828, allocations: 4 kB / 1.374 GB, free: 7.527 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.0006399/0.4834, allocations: 424.8 kB / 1.374 GB, free: 7.059 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 5.599e-05/0.4835, allocations: 11.97 kB / 1.374 GB, free: 7.047 MB / 0.8698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.363e-05/0.4835, allocations: 30.56 kB / 1.374 GB, free: 7.008 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.027e-05/0.4836, allocations: 11.86 kB / 1.374 GB, free: 6.996 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001335/0.4837, allocations: 178.9 kB / 1.374 GB, free: 6.781 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.209e-05/0.4838, allocations: 8 kB / 1.374 GB, free: 6.773 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.229e-05/0.4838, allocations: 4 kB / 1.374 GB, free: 6.77 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000198/0.484, allocations: 65.66 kB / 1.374 GB, free: 6.699 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.997e-06/0.484, allocations: 0 / 1.374 GB, free: 6.699 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.438e-05/0.484, allocations: 4 kB / 1.374 GB, free: 6.695 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.354e-06/0.4841, allocations: 4 kB / 1.374 GB, free: 6.691 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001386/0.4842, allocations: 47.95 kB / 1.374 GB, free: 6.645 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000654/0.4849, allocations: 316.6 kB / 1.375 GB, free: 6.285 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001385/0.485, allocations: 54.56 kB / 1.375 GB, free: 6.223 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 2.457e-05/0.485, allocations: 80 / 1.375 GB, free: 6.223 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001719/0.4852, allocations: 79.48 kB / 1.375 GB, free: 6.133 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=7): time 3.226e-06/0.4852, allocations: 3.984 kB / 1.375 GB, free: 6.129 MB / 0.8698 GB Notification: Performance of matching and sorting (n=7): time 0.0004216/0.4857, allocations: 157.5 kB / 1.375 GB, free: 5.969 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.614e-05/0.4857, allocations: 51.41 kB / 1.375 GB, free: 5.906 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.913e-05/0.4858, allocations: 116.9 kB / 1.375 GB, free: 5.785 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 2.431e-05/0.4859, allocations: 25.7 kB / 1.375 GB, free: 5.754 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 5.93e-05/0.4859, allocations: 92.31 kB / 1.375 GB, free: 5.656 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 2.658e-05/0.4859, allocations: 19.73 kB / 1.375 GB, free: 5.637 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.442e-06/0.486, allocations: 4 kB / 1.375 GB, free: 5.633 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0001233/0.4861, allocations: 322.8 kB / 1.376 GB, free: 5.309 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.604e-05/0.4862, allocations: 27.98 kB / 1.376 GB, free: 5.281 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.595e-05/0.4863, allocations: 50.5 kB / 1.376 GB, free: 5.223 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.649e-05/0.4864, allocations: 35.98 kB / 1.376 GB, free: 5.188 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.4864, allocations: 0 / 1.376 GB, free: 5.188 MB / 0.8698 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002374/0.4866, allocations: 117.5 kB / 1.376 GB, free: 5.066 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 1.824e-05/0.4867, allocations: 8 kB / 1.376 GB, free: 5.059 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.721e-06/0.4867, allocations: 4 kB / 1.376 GB, free: 5.055 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.496e-05/0.4867, allocations: 4 kB / 1.376 GB, free: 5.051 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001036/0.4868, allocations: 15.98 kB / 1.376 GB, free: 5.035 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.955e-06/0.4868, allocations: 3.953 kB / 1.376 GB, free: 5.031 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.234e-05/0.4869, allocations: 8 kB / 1.376 GB, free: 5.023 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.76e-05/0.4869, allocations: 4 kB / 1.376 GB, free: 5.02 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 9.876e-05/0.487, allocations: 121.8 kB / 1.376 GB, free: 4.891 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.643e-05/0.4871, allocations: 7.906 kB / 1.376 GB, free: 4.883 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.905e-05/0.4871, allocations: 12.38 kB / 1.376 GB, free: 4.871 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.711e-06/0.4871, allocations: 4 kB / 1.376 GB, free: 4.867 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.576e-06/0.4872, allocations: 0 / 1.376 GB, free: 4.867 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.05e-06/0.4872, allocations: 7.891 kB / 1.376 GB, free: 4.859 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004749/0.4876, allocations: 374.5 kB / 1.376 GB, free: 4.438 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.014e-06/0.4877, allocations: 0 / 1.376 GB, free: 4.438 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.333e-05/0.4877, allocations: 11.98 kB / 1.376 GB, free: 4.426 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.222e-06/0.4877, allocations: 4 kB / 1.376 GB, free: 4.422 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.29e-05/0.4877, allocations: 4 kB / 1.376 GB, free: 4.418 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.146e-06/0.4878, allocations: 3.953 kB / 1.376 GB, free: 4.414 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/0.4878, allocations: 0 / 1.376 GB, free: 4.414 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002882/0.4881, allocations: 223.3 kB / 1.377 GB, free: 4.18 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 4.068e-05/0.4881, allocations: 81.02 kB / 1.377 GB, free: 4.082 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.126e-05/0.4881, allocations: 4 kB / 1.377 GB, free: 4.078 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.784e-05/0.4882, allocations: 4 kB / 1.377 GB, free: 4.074 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.038e-05/0.4883, allocations: 11.94 kB / 1.377 GB, free: 4.062 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.058e-05/0.4883, allocations: 4 kB / 1.377 GB, free: 4.059 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 4.846e-05/0.4884, allocations: 91.92 kB / 1.377 GB, free: 3.969 MB / 0.8698 GB Notification: Performance of sort global known variables: time 1.81e-07/0.4884, allocations: 3.938 kB / 1.377 GB, free: 3.965 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.0003252/0.4887, allocations: 51.98 kB / 1.377 GB, free: 3.914 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.0008707/0.4896, allocations: 0.8323 MB / 1.378 GB, free: 3.07 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.0002427/0.4898, allocations: 79.89 kB / 1.378 GB, free: 2.992 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.4898, allocations: 0 / 1.378 GB, free: 2.992 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 9.872e-05/0.4899, allocations: 36.11 kB / 1.378 GB, free: 2.957 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000178/0.4901, allocations: 11.94 kB / 1.378 GB, free: 2.945 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007967/0.4909, allocations: 0.7244 MB / 1.378 GB, free: 2.16 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002757/0.4912, allocations: 0.6887 MB / 1.379 GB, free: 1.445 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 4.333e-05/0.4913, allocations: 8.172 kB / 1.379 GB, free: 1.438 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.105e-05/0.4913, allocations: 19.44 kB / 1.379 GB, free: 1.418 MB / 0.8698 GB Notification: Performance of SimCode: time 4.4e-07/0.4913, allocations: 4 kB / 1.379 GB, free: 1.414 MB / 0.8698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01571/0.507, allocations: 2.482 MB / 1.382 GB, free: 15.08 MB / 0.8855 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002175/0.5073, allocations: 227.2 kB / 1.382 GB, free: 14.84 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.703/2.21, allocations: 0 / 1.382 GB, free: 14.84 MB / 0.8855 GB (rm -f Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast.pipe ; mkfifo Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast.pipe ; head -c 1048576 < Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast.pipe >> ../files/Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast_res.mat --tempDir=temp_Buildings_9_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsEast_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsEast.fmu > Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast_res.mat does not exist to compare? outputFormat=mat