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.154/2.154, allocations: 387.4 MB / 394.9 MB, free: 13.44 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.001103/0.001103, allocations: 184.8 kB / 487.4 MB, free: 5.07 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.488/1.488, allocations: 221.5 MB / 0.7824 GB, free: 0.9492 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008752/0.0008752, allocations: 95.86 kB / 0.9219 GB, free: 2.18 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 1.369e-05/1.372e-05, allocations: 0 / 1.067 GB, free: 185.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2576/0.2576, allocations: 142.4 MB / 1.206 GB, free: 43.86 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8677/1.125, allocations: 149.2 MB / 1.352 GB, free: 18.08 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002664/1.126, allocations: 75.61 kB / 1.352 GB, free: 18.08 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.007412/1.133, allocations: 2.423 MB / 1.354 GB, free: 33.65 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.402e-06/1.133, allocations: 0 / 1.354 GB, free: 33.65 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 6.773e-06/1.133, allocations: 0 / 1.354 GB, free: 33.65 MB / 0.8386 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.0005133/1.134, allocations: 0.5084 MB / 1.355 GB, free: 33.22 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 5.725e-05/1.134, allocations: 7.656 kB / 1.355 GB, free: 33.22 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001413/1.134, allocations: 14.3 kB / 1.355 GB, free: 33.22 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001345/1.134, allocations: 176.3 kB / 1.355 GB, free: 33.01 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.883e-05/1.134, allocations: 3.875 kB / 1.355 GB, free: 33.01 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.362e-05/1.134, allocations: 3.812 kB / 1.355 GB, free: 33.01 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000177/1.134, allocations: 142.3 kB / 1.355 GB, free: 33.01 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000293/1.135, allocations: 236.1 kB / 1.355 GB, free: 32.98 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.002e-05/1.135, allocations: 7.875 kB / 1.355 GB, free: 32.97 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.628e-05/1.135, allocations: 4 kB / 1.355 GB, free: 32.97 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.983e-06/1.135, allocations: 3.984 kB / 1.355 GB, free: 32.96 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001866/1.135, allocations: 184 kB / 1.355 GB, free: 32.79 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003441/1.135, allocations: 0.5324 MB / 1.356 GB, free: 32.77 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000266/1.135, allocations: 0.5157 MB / 1.356 GB, free: 32.76 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 9.277e-06/1.135, allocations: 3.938 kB / 1.356 GB, free: 32.76 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003674/1.136, allocations: 385.2 kB / 1.357 GB, free: 32.64 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=39): time 1.342e-06/1.136, allocations: 0 / 1.357 GB, free: 32.64 MB / 0.8386 GB Notification: Performance of matching and sorting (n=39): time 0.0005144/1.136, allocations: 411.7 kB / 1.357 GB, free: 32.59 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.202e-05/1.136, allocations: 107.7 kB / 1.357 GB, free: 32.5 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.306e-05/1.136, allocations: 89.89 kB / 1.357 GB, free: 32.41 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.37e-05/1.137, allocations: 29.55 kB / 1.357 GB, free: 32.38 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 5.7e-05/1.137, allocations: 85.12 kB / 1.358 GB, free: 32.3 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 6.77e-05/1.137, allocations: 73.81 kB / 1.358 GB, free: 32.25 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.278e-06/1.137, allocations: 0 / 1.358 GB, free: 32.25 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001512/1.137, allocations: 330.7 kB / 1.358 GB, free: 31.93 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.316e-05/1.137, allocations: 78.2 kB / 1.358 GB, free: 31.93 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.927e-05/1.137, allocations: 84.98 kB / 1.358 GB, free: 31.93 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001149/1.137, allocations: 105.2 kB / 1.358 GB, free: 31.93 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.854e-06/1.137, allocations: 0 / 1.358 GB, free: 31.93 MB / 0.8386 GB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0002589/1.137, allocations: 266.2 kB / 1.358 GB, free: 31.88 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 8.249e-05/1.137, allocations: 77.52 kB / 1.358 GB, free: 31.85 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.2e-06/1.137, allocations: 0 / 1.358 GB, free: 31.85 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.44e-05/1.137, allocations: 0.6094 kB / 1.358 GB, free: 31.85 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.534e-05/1.138, allocations: 11.84 kB / 1.358 GB, free: 31.84 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.63e-06/1.138, allocations: 0.6094 kB / 1.358 GB, free: 31.84 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.688e-05/1.138, allocations: 18.62 kB / 1.359 GB, free: 31.83 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.808e-05/1.138, allocations: 7.75 kB / 1.359 GB, free: 31.83 MB / 0.8386 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 () * 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.0002052/1.138, allocations: 243.9 kB / 1.359 GB, free: 31.69 MB / 0.8386 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0005446/1.138, allocations: 0.5363 MB / 1.359 GB, free: 31.63 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.312e-05/1.138, allocations: 23.8 kB / 1.359 GB, free: 31.62 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.726e-05/1.138, allocations: 6.625 kB / 1.359 GB, free: 31.62 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.262e-06/1.138, allocations: 0 / 1.359 GB, free: 31.62 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.077e-06/1.138, allocations: 0 / 1.359 GB, free: 31.62 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.937e-06/1.139, allocations: 4.688 kB / 1.359 GB, free: 31.62 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001804/1.139, allocations: 235.3 kB / 1.36 GB, free: 31.45 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.61e-07/1.139, allocations: 0 / 1.36 GB, free: 31.45 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.72e-07/1.139, allocations: 0 / 1.36 GB, free: 31.45 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.503e-06/1.139, allocations: 0 / 1.36 GB, free: 31.45 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.158e-05/1.139, allocations: 19.28 kB / 1.36 GB, free: 31.45 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.52e-07/1.139, allocations: 0 / 1.36 GB, free: 31.45 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.565e-06/1.139, allocations: 3.938 kB / 1.36 GB, free: 31.45 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00058/1.139, allocations: 0.5693 MB / 1.36 GB, free: 31.36 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 3.113e-05/1.139, allocations: 93.36 kB / 1.36 GB, free: 31.26 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001298/1.14, allocations: 81.77 kB / 1.36 GB, free: 31.26 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.982e-05/1.14, allocations: 10.36 kB / 1.36 GB, free: 31.26 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.438e-05/1.14, allocations: 9.844 kB / 1.36 GB, free: 31.26 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.777e-05/1.14, allocations: 22.67 kB / 1.36 GB, free: 31.26 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 5.304e-05/1.14, allocations: 79.27 kB / 1.36 GB, free: 31.18 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.5e-07/1.14, allocations: 0 / 1.36 GB, free: 31.18 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0003156/1.14, allocations: 82.8 kB / 1.36 GB, free: 31.17 MB / 0.8386 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) * 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.001295/1.141, allocations: 1.249 MB / 1.362 GB, free: 30.53 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.001285/1.143, allocations: 1.939 MB / 1.364 GB, free: 30.46 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/1.143, allocations: 0 / 1.364 GB, free: 30.46 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.001033/1.144, allocations: 2.009 MB / 1.366 GB, free: 30.4 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000172/1.144, allocations: 7.719 kB / 1.366 GB, free: 30.4 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005058/1.144, allocations: 311.5 kB / 1.366 GB, free: 30.27 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003187/1.145, allocations: 0.7211 MB / 1.367 GB, free: 29.57 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 1.328e-05/1.145, allocations: 0 / 1.367 GB, free: 29.57 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.707e-05/1.145, allocations: 34.73 kB / 1.367 GB, free: 29.55 MB / 0.8386 GB Notification: Performance of SimCode: time 2.3e-07/1.145, allocations: 0 / 1.367 GB, free: 29.55 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02143/1.166, allocations: 3.937 MB / 1.37 GB, free: 29.22 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000164/1.166, allocations: 194.1 kB / 1.371 GB, free: 29.03 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.568/2.735, allocations: 0 / 1.371 GB, free: 29.03 MB / 0.8386 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