Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall.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.Herkel2008WindowsSmall,fileNamePrefix="Buildings_9_Buildings_Occupants_Office_Windows_Validation_Herkel2008WindowsSmall",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall,fileNamePrefix="Buildings_9_Buildings_Occupants_Office_Windows_Validation_Herkel2008WindowsSmall",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.218/2.218, allocations: 390.3 MB / 405.3 MB, free: 13.36 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.00136/0.00136, allocations: 185 kB / 498.1 MB, free: 5.609 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.465/1.465, allocations: 223.1 MB / 0.7948 GB, free: 17.92 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.0008555/0.0008554, allocations: 104.1 kB / 0.9346 GB, free: 6.203 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.000359/0.0003591, allocations: 14.25 kB / 1.084 GB, free: 221 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2692/0.2695, allocations: 142.3 MB / 1.223 GB, free: 114.1 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1773/0.4469, allocations: 151.2 MB / 1.371 GB, free: 10.71 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002679/0.4472, allocations: 83.95 kB / 1.371 GB, free: 10.62 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.009156/0.4564, allocations: 3.028 MB / 1.374 GB, free: 7.59 MB / 0.8698 GB Notification: Performance of FrontEnd: time 2.033e-06/0.4564, allocations: 0 / 1.374 GB, free: 7.59 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 7.283e-06/0.4564, allocations: 4 kB / 1.374 GB, free: 7.586 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.00056/0.457, allocations: 424.7 kB / 1.374 GB, free: 7.117 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 4.326e-05/0.457, allocations: 12.03 kB / 1.374 GB, free: 7.105 MB / 0.8698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.842e-05/0.4571, allocations: 30.56 kB / 1.374 GB, free: 7.066 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.812e-05/0.4571, allocations: 15.84 kB / 1.374 GB, free: 7.051 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001304/0.4573, allocations: 174.9 kB / 1.374 GB, free: 6.84 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.353e-05/0.4573, allocations: 4 kB / 1.374 GB, free: 6.836 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.673e-05/0.4573, allocations: 8 kB / 1.374 GB, free: 6.828 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001783/0.4575, allocations: 65.66 kB / 1.374 GB, free: 6.758 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.055e-06/0.4575, allocations: 0 / 1.374 GB, free: 6.758 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.227e-05/0.4576, allocations: 8 kB / 1.374 GB, free: 6.75 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.647e-06/0.4576, allocations: 3.938 kB / 1.374 GB, free: 6.746 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001257/0.4577, allocations: 39.97 kB / 1.374 GB, free: 6.707 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006036/0.4583, allocations: 324.6 kB / 1.375 GB, free: 6.34 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001253/0.4584, allocations: 50.55 kB / 1.375 GB, free: 6.281 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 2.375e-05/0.4585, allocations: 8 kB / 1.375 GB, free: 6.273 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001621/0.4586, allocations: 79.56 kB / 1.375 GB, free: 6.184 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=7): time 1.634e-06/0.4587, allocations: 0 / 1.375 GB, free: 6.184 MB / 0.8698 GB Notification: Performance of matching and sorting (n=7): time 0.000403/0.4591, allocations: 157.5 kB / 1.375 GB, free: 6.023 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.717e-05/0.4591, allocations: 55.41 kB / 1.375 GB, free: 5.957 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.431e-05/0.4592, allocations: 112.9 kB / 1.375 GB, free: 5.84 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 1.854e-05/0.4593, allocations: 25.7 kB / 1.375 GB, free: 5.809 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 6.3e-05/0.4593, allocations: 96.31 kB / 1.375 GB, free: 5.707 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 2.642e-05/0.4594, allocations: 19.73 kB / 1.375 GB, free: 5.688 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.434e-06/0.4594, allocations: 4 kB / 1.375 GB, free: 5.684 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0001061/0.4595, allocations: 314.8 kB / 1.376 GB, free: 5.367 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.313e-05/0.4596, allocations: 35.98 kB / 1.376 GB, free: 5.332 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.842e-05/0.4597, allocations: 50.5 kB / 1.376 GB, free: 5.273 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.463e-05/0.4598, allocations: 31.98 kB / 1.376 GB, free: 5.242 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.494e-06/0.4598, allocations: 4 kB / 1.376 GB, free: 5.238 MB / 0.8698 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002346/0.46, allocations: 117.5 kB / 1.376 GB, free: 5.117 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 1.542e-05/0.46, allocations: 4 kB / 1.376 GB, free: 5.113 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.628e-06/0.4601, allocations: 3.938 kB / 1.376 GB, free: 5.109 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.536e-05/0.4601, allocations: 4 kB / 1.376 GB, free: 5.105 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.229e-05/0.4602, allocations: 12.05 kB / 1.376 GB, free: 5.094 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.815e-06/0.4602, allocations: 7.953 kB / 1.376 GB, free: 5.086 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.127e-05/0.4603, allocations: 12 kB / 1.376 GB, free: 5.074 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.164e-05/0.4603, allocations: 0 / 1.376 GB, free: 5.074 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.464e-05/0.4604, allocations: 123.2 kB / 1.376 GB, free: 4.945 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.603e-05/0.4604, allocations: 3.906 kB / 1.376 GB, free: 4.941 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.973e-05/0.4604, allocations: 12.38 kB / 1.376 GB, free: 4.93 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.833e-06/0.4604, allocations: 0 / 1.376 GB, free: 4.93 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.831e-06/0.4605, allocations: 4 kB / 1.376 GB, free: 4.926 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.31e-06/0.4605, allocations: 7.891 kB / 1.376 GB, free: 4.918 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004498/0.4609, allocations: 378.5 kB / 1.376 GB, free: 4.492 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.734e-06/0.4609, allocations: 0 / 1.376 GB, free: 4.492 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.157e-05/0.461, allocations: 7.984 kB / 1.376 GB, free: 4.484 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.645e-06/0.461, allocations: 0 / 1.376 GB, free: 4.484 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.242e-05/0.461, allocations: 8 kB / 1.376 GB, free: 4.477 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.447e-06/0.461, allocations: 3.953 kB / 1.376 GB, free: 4.473 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.51e-07/0.461, allocations: 0 / 1.376 GB, free: 4.473 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002743/0.4613, allocations: 215.3 kB / 1.377 GB, free: 4.246 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 4.293e-05/0.4614, allocations: 85.02 kB / 1.377 GB, free: 4.145 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.818e-05/0.4614, allocations: 11.94 kB / 1.377 GB, free: 4.133 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.723e-05/0.4615, allocations: 8 kB / 1.377 GB, free: 4.125 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.603e-05/0.4615, allocations: 11.94 kB / 1.377 GB, free: 4.113 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.817e-06/0.4615, allocations: 0 / 1.377 GB, free: 4.113 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 5.664e-05/0.4616, allocations: 95.86 kB / 1.377 GB, free: 4.02 MB / 0.8698 GB Notification: Performance of sort global known variables: time 1.3e-07/0.4616, allocations: 4 kB / 1.377 GB, free: 4.016 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.0002898/0.4619, allocations: 47.98 kB / 1.377 GB, free: 3.969 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.0008233/0.4627, allocations: 0.8218 MB / 1.378 GB, free: 3.133 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.0002303/0.463, allocations: 79.89 kB / 1.378 GB, free: 3.055 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.463, allocations: 4 kB / 1.378 GB, free: 3.051 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 9.2e-05/0.4631, allocations: 31.98 kB / 1.378 GB, free: 3.02 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001714/0.4633, allocations: 15.94 kB / 1.378 GB, free: 3.004 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007711/0.4641, allocations: 0.7207 MB / 1.378 GB, free: 2.223 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002657/0.4643, allocations: 0.6926 MB / 1.379 GB, free: 1.504 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 3.882e-05/0.4644, allocations: 12.11 kB / 1.379 GB, free: 1.492 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.595e-05/0.4644, allocations: 19.44 kB / 1.379 GB, free: 1.473 MB / 0.8698 GB Notification: Performance of SimCode: time 3.21e-07/0.4644, allocations: 0 / 1.379 GB, free: 1.473 MB / 0.8698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01349/0.4779, allocations: 2.48 MB / 1.382 GB, free: 15.16 MB / 0.8855 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001852/0.4781, allocations: 232.8 kB / 1.382 GB, free: 14.92 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.549/2.027, allocations: 4 kB / 1.382 GB, free: 14.92 MB / 0.8855 GB (rm -f Buildings_9_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall.pipe ; mkfifo Buildings_9_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall.pipe ; head -c 1048576 < Buildings_9_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall.pipe >> ../files/Buildings_9_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall_res.mat --tempDir=temp_Buildings_9_Buildings_Occupants_Office_Windows_Validation_Herkel2008WindowsSmall_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Occupants_Office_Windows_Validation_Herkel2008WindowsSmall.fmu > Buildings_9_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall_res.mat does not exist to compare? outputFormat=mat