Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy.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.Occupancy.Validation.Wang2005Occupancy,fileNamePrefix="Buildings_9_Buildings_Occupants_Office_Occupancy_Validation_Wang2005Occupancy",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy,fileNamePrefix="Buildings_9_Buildings_Occupants_Office_Occupancy_Validation_Wang2005Occupancy",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.187/2.187, 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.001007/0.001007, allocations: 175.3 kB / 498.1 MB, free: 5.746 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.45/1.45, allocations: 223.2 MB / 0.7948 GB, free: 17.99 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.0009904/0.0009906, allocations: 96.25 kB / 0.9346 GB, free: 6.27 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003829/0.000383, allocations: 9.344 kB / 1.084 GB, free: 221.3 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2874/0.2879, allocations: 142.3 MB / 1.223 GB, free: 114.2 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1878/0.4757, allocations: 149.9 MB / 1.369 GB, free: 12.13 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002697/0.476, allocations: 87.95 kB / 1.369 GB, free: 12.05 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.006809/0.4828, allocations: 2.439 MB / 1.372 GB, free: 9.605 MB / 0.8698 GB Notification: Performance of FrontEnd: time 1.894e-06/0.4829, allocations: 0 / 1.372 GB, free: 9.605 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 8.215e-06/0.4829, allocations: 4 kB / 1.372 GB, free: 9.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: 38 * Number of variables: 38 Notification: Performance of Generate backend data structure: time 0.0005344/0.4834, allocations: 0.5082 MB / 1.372 GB, free: 9.039 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 4.642e-05/0.4835, allocations: 8.031 kB / 1.372 GB, free: 9.031 MB / 0.8698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.653e-05/0.4835, allocations: 50.55 kB / 1.372 GB, free: 8.973 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.883e-05/0.4836, allocations: 23.7 kB / 1.372 GB, free: 8.949 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001244/0.4838, allocations: 171 kB / 1.373 GB, free: 8.742 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.565e-05/0.4838, allocations: 3.938 kB / 1.373 GB, free: 8.738 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.457e-05/0.4838, allocations: 4 kB / 1.373 GB, free: 8.734 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003063/0.4841, allocations: 241.5 kB / 1.373 GB, free: 8.492 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.965e-06/0.4842, allocations: 4 kB / 1.373 GB, free: 8.488 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.666e-05/0.4842, allocations: 4 kB / 1.373 GB, free: 8.484 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.148e-06/0.4842, allocations: 0 / 1.373 GB, free: 8.484 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001485/0.4843, allocations: 144 kB / 1.373 GB, free: 8.344 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002236/0.4846, allocations: 213.4 kB / 1.373 GB, free: 8.086 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004138/0.485, allocations: 0.5376 MB / 1.374 GB, free: 7.539 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 8.626e-06/0.485, allocations: 0 / 1.374 GB, free: 7.539 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003844/0.4854, allocations: 396.2 kB / 1.374 GB, free: 7.125 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=39): time 1.332e-06/0.4854, allocations: 0 / 1.374 GB, free: 7.125 MB / 0.8698 GB Notification: Performance of matching and sorting (n=39): time 0.0008484/0.4863, allocations: 0.7886 MB / 1.375 GB, free: 6.309 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.834e-05/0.4863, allocations: 109.1 kB / 1.375 GB, free: 6.184 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.862e-05/0.4864, allocations: 92.98 kB / 1.375 GB, free: 6.086 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 1.494e-05/0.4864, allocations: 25.7 kB / 1.375 GB, free: 6.055 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 3.553e-05/0.4865, allocations: 80.8 kB / 1.375 GB, free: 5.969 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 6.806e-05/0.4866, allocations: 78.94 kB / 1.375 GB, free: 5.891 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.007e-06/0.4866, allocations: 4.031 kB / 1.375 GB, free: 5.887 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0001093/0.4867, allocations: 334.8 kB / 1.376 GB, free: 5.551 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.599e-05/0.4868, allocations: 79.98 kB / 1.376 GB, free: 5.473 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.242e-05/0.4869, allocations: 87.91 kB / 1.376 GB, free: 5.387 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001559/0.487, allocations: 174.9 kB / 1.376 GB, free: 5.211 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.405e-06/0.487, allocations: 0 / 1.376 GB, free: 5.211 MB / 0.8698 GB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003568/0.4874, allocations: 336 kB / 1.376 GB, free: 4.871 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 8.081e-05/0.4875, allocations: 78.28 kB / 1.376 GB, free: 4.789 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.102e-06/0.4875, allocations: 0 / 1.376 GB, free: 4.789 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.569e-05/0.4875, allocations: 8.047 kB / 1.376 GB, free: 4.781 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.215e-05/0.4876, allocations: 4 kB / 1.376 GB, free: 4.777 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.382e-06/0.4876, allocations: 0 / 1.376 GB, free: 4.777 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.888e-05/0.4877, allocations: 19.75 kB / 1.376 GB, free: 4.758 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.137e-05/0.4877, allocations: 8 kB / 1.376 GB, free: 4.75 MB / 0.8698 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 40 ($whenCondition1,occ.occ,occ.mu,$PRE.occ.tNext,occ.tNext,occ.hold_time,occ.r,occ.state[1],occ.state[2],occ.state[3],occ.state[4],occ.state[5],occ.state[6],occ.state[7],occ.state[8],occ.state[9],occ.state[10],occ.state[11],occ.state[12],occ.state[13],occ.state[14],occ.state[15],occ.state[16],occ.state[17],occ.state[18],occ.state[19],occ.state[20],occ.state[21],occ.state[22],occ.state[23],occ.state[24],occ.state[25],occ.state[26],occ.state[27],occ.state[28],occ.state[29],occ.state[30],occ.state[31],occ.state[32],occ.state[33]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 1 * 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.0002401/0.4879, allocations: 269.6 kB / 1.377 GB, free: 4.473 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.782e-05/0.488, allocations: 15.91 kB / 1.377 GB, free: 4.457 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.754e-05/0.488, allocations: 5.219 kB / 1.377 GB, free: 4.445 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.817e-06/0.488, allocations: 4 kB / 1.377 GB, free: 4.441 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.368e-06/0.488, allocations: 4 kB / 1.377 GB, free: 4.438 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.616e-06/0.488, allocations: 0 / 1.377 GB, free: 4.438 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002053/0.4882, allocations: 281.1 kB / 1.377 GB, free: 4.113 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.4883, allocations: 0 / 1.377 GB, free: 4.113 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.587e-06/0.4883, allocations: 3.938 kB / 1.377 GB, free: 4.109 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.866e-06/0.4883, allocations: 0 / 1.377 GB, free: 4.109 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.686e-05/0.4883, allocations: 19.98 kB / 1.377 GB, free: 4.09 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.735e-06/0.4883, allocations: 4 kB / 1.377 GB, free: 4.086 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.11e-07/0.4883, allocations: 0 / 1.377 GB, free: 4.086 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001178/0.4895, allocations: 1.283 MB / 1.378 GB, free: 2.777 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 5.025e-05/0.4896, allocations: 88.95 kB / 1.378 GB, free: 2.672 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001236/0.4897, allocations: 83.92 kB / 1.378 GB, free: 2.59 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.439e-05/0.4898, allocations: 8 kB / 1.378 GB, free: 2.582 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.305e-05/0.4898, allocations: 8 kB / 1.378 GB, free: 2.574 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.284e-05/0.4899, allocations: 19.98 kB / 1.378 GB, free: 2.555 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 4.779e-05/0.4899, allocations: 87.27 kB / 1.378 GB, free: 2.469 MB / 0.8698 GB Notification: Performance of sort global known variables: time 1.11e-07/0.49, allocations: 0 / 1.378 GB, free: 2.469 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.0003066/0.4903, allocations: 75.94 kB / 1.378 GB, free: 2.395 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: 39 ($whenCondition1,occ.occ,occ.mu,occ.tNext,occ.hold_time,occ.r,occ.state[1],occ.state[2],occ.state[3],occ.state[4],occ.state[5],occ.state[6],occ.state[7],occ.state[8],occ.state[9],occ.state[10],occ.state[11],occ.state[12],occ.state[13],occ.state[14],occ.state[15],occ.state[16],occ.state[17],occ.state[18],occ.state[19],occ.state[20],occ.state[21],occ.state[22],occ.state[23],occ.state[24],occ.state[25],occ.state[26],occ.state[27],occ.state[28],occ.state[29],occ.state[30],occ.state[31],occ.state[32],occ.state[33]) * Number of discrete states: 39 (occ.tNext,occ.hold_time,occ.mu,occ.occ,occ.state[33],occ.state[32],occ.state[31],occ.state[30],occ.state[29],occ.state[28],occ.state[27],occ.state[26],occ.state[25],occ.state[24],occ.state[23],occ.state[22],occ.state[21],occ.state[20],occ.state[19],occ.state[18],occ.state[17],occ.state[16],occ.state[15],occ.state[14],occ.state[13],occ.state[12],occ.state[11],occ.state[10],occ.state[9],occ.state[8],occ.state[7],occ.state[6],occ.state[5],occ.state[4],occ.state[3],occ.state[2],occ.state[1],occ.r,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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 Backend phase and start with SimCode phase: time 0.002159/0.4924, allocations: 1.97 MB / 1.38 GB, free: 408 kB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.001876/0.4943, allocations: 1.968 MB / 1.382 GB, free: 14.41 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 4.348e-06/0.4943, allocations: 0 / 1.382 GB, free: 14.41 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.001703/0.4961, allocations: 2.019 MB / 1.384 GB, free: 12.38 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002329/0.4963, allocations: 15.94 kB / 1.384 GB, free: 12.37 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008925/0.4972, allocations: 416.1 kB / 1.385 GB, free: 11.92 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003558/0.4976, allocations: 0.7208 MB / 1.385 GB, free: 11.17 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 1.83e-05/0.4976, allocations: 0 / 1.385 GB, free: 11.17 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.862e-05/0.4977, allocations: 27.44 kB / 1.385 GB, free: 11.14 MB / 0.8855 GB Notification: Performance of SimCode: time 6.002e-06/0.4977, allocations: 0 / 1.385 GB, free: 11.14 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01647/0.5141, allocations: 4.221 MB / 1.39 GB, free: 7.078 MB / 0.8855 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001876/0.5144, allocations: 238.2 kB / 1.39 GB, free: 6.836 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.623/2.138, allocations: 0 / 1.39 GB, free: 6.836 MB / 0.8855 GB (rm -f Buildings_9_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy.pipe ; mkfifo Buildings_9_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy.pipe ; head -c 1048576 < Buildings_9_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy.pipe >> ../files/Buildings_9_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy_res.mat --tempDir=temp_Buildings_9_Buildings_Occupants_Office_Occupancy_Validation_Wang2005Occupancy_fmu --startTime=0 --stopTime=36000 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Occupants_Office_Occupancy_Validation_Wang2005Occupancy.fmu > Buildings_9_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy_res.mat does not exist to compare? outputFormat=mat