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.437/2.437, allocations: 387.1 MB / 399.7 MB, free: 9.488 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.001241/0.001241, allocations: 172.9 kB / 492.3 MB, free: 0.6289 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.851/1.851, allocations: 221.3 MB / 0.7871 GB, free: 12.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.001011/0.001011, allocations: 87.89 kB / 0.9267 GB, free: 13.98 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 4.224e-05/4.225e-05, allocations: 4 kB / 1.073 GB, free: 180.3 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4201/0.4202, allocations: 142.3 MB / 1.212 GB, free: 38.44 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.598/2.019, allocations: 149.9 MB / 1.359 GB, free: 19.07 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000285/2.019, allocations: 80.61 kB / 1.359 GB, free: 19.07 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.008058/2.027, allocations: 2.428 MB / 1.361 GB, free: 34.64 MB / 0.8386 GB Notification: Performance of FrontEnd: time 2.304e-06/2.027, allocations: 0 / 1.361 GB, free: 34.64 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 1.633e-05/2.027, allocations: 3.906 kB / 1.361 GB, free: 34.64 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.0005305/2.028, allocations: 0.4988 MB / 1.362 GB, free: 34.22 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 5.953e-05/2.028, allocations: 15.72 kB / 1.362 GB, free: 34.22 MB / 0.8386 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.643e-05/2.028, allocations: 45.31 kB / 1.362 GB, free: 34.18 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001114/2.028, allocations: 11.75 kB / 1.362 GB, free: 34.17 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001167/2.028, allocations: 176.1 kB / 1.362 GB, free: 33.96 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.361e-05/2.028, allocations: 3.844 kB / 1.362 GB, free: 33.96 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.27e-05/2.028, allocations: 3.969 kB / 1.362 GB, free: 33.96 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003313/2.028, allocations: 241.9 kB / 1.362 GB, free: 33.93 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.026e-05/2.028, allocations: 0 / 1.362 GB, free: 33.93 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.81e-05/2.028, allocations: 0 / 1.362 GB, free: 33.93 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.45e-06/2.028, allocations: 3.938 kB / 1.362 GB, free: 33.93 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001626/2.029, allocations: 152.5 kB / 1.362 GB, free: 33.93 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002021/2.029, allocations: 216.3 kB / 1.363 GB, free: 33.72 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003858/2.029, allocations: 0.5407 MB / 1.363 GB, free: 33.69 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003865/2.03, allocations: 0.525 MB / 1.364 GB, free: 33.68 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.052e-05/2.03, allocations: 3.984 kB / 1.364 GB, free: 33.68 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003758/2.03, allocations: 389.8 kB / 1.364 GB, free: 33.56 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=39): time 1.082e-06/2.03, allocations: 3.75 kB / 1.364 GB, free: 33.56 MB / 0.8386 GB Notification: Performance of matching and sorting (n=39): time 0.0005833/2.031, allocations: 0.4889 MB / 1.364 GB, free: 33.48 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.922e-05/2.031, allocations: 110.4 kB / 1.365 GB, free: 33.38 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.922e-05/2.031, allocations: 90.5 kB / 1.365 GB, free: 33.29 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.583e-05/2.031, allocations: 25.7 kB / 1.365 GB, free: 33.26 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 3.915e-05/2.031, allocations: 84.36 kB / 1.365 GB, free: 33.18 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 6.916e-05/2.031, allocations: 78.05 kB / 1.365 GB, free: 33.13 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.62e-06/2.031, allocations: 3.875 kB / 1.365 GB, free: 33.13 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001219/2.031, allocations: 333.6 kB / 1.365 GB, free: 32.81 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.141e-05/2.031, allocations: 81.11 kB / 1.365 GB, free: 32.81 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.131e-05/2.031, allocations: 81.86 kB / 1.365 GB, free: 32.81 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001439/2.031, allocations: 170.7 kB / 1.365 GB, free: 32.78 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/2.031, allocations: 0 / 1.365 GB, free: 32.78 MB / 0.8386 GB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003131/2.032, allocations: 332.8 kB / 1.366 GB, free: 32.7 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 7.106e-05/2.032, allocations: 80.34 kB / 1.366 GB, free: 32.67 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.381e-06/2.032, allocations: 0 / 1.366 GB, free: 32.67 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.679e-05/2.032, allocations: 0 / 1.366 GB, free: 32.67 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.242e-05/2.032, allocations: 64 / 1.366 GB, free: 32.67 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.027e-06/2.032, allocations: 4.625 kB / 1.366 GB, free: 32.67 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.024e-05/2.032, allocations: 25.27 kB / 1.366 GB, free: 32.66 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.862e-05/2.032, allocations: 7.281 kB / 1.366 GB, free: 32.66 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.0002212/2.032, allocations: 249.2 kB / 1.366 GB, free: 32.51 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.556e-05/2.032, allocations: 19.38 kB / 1.366 GB, free: 32.5 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.742e-05/2.032, allocations: 9.188 kB / 1.366 GB, free: 32.49 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.044e-06/2.032, allocations: 0 / 1.366 GB, free: 32.49 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.29e-06/2.032, allocations: 0 / 1.366 GB, free: 32.49 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.707e-06/2.032, allocations: 1.828 kB / 1.366 GB, free: 32.49 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002061/2.033, allocations: 277.1 kB / 1.366 GB, free: 32.28 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.81e-07/2.033, allocations: 0 / 1.366 GB, free: 32.28 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.324e-06/2.033, allocations: 3.812 kB / 1.366 GB, free: 32.28 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.266e-06/2.033, allocations: 1.688 kB / 1.366 GB, free: 32.28 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.236e-05/2.033, allocations: 14.72 kB / 1.366 GB, free: 32.28 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.082e-06/2.033, allocations: 3.875 kB / 1.366 GB, free: 32.28 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.933e-06/2.033, allocations: 1.828 kB / 1.366 GB, free: 32.28 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001196/2.034, allocations: 1.272 MB / 1.368 GB, free: 32.17 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 4.623e-05/2.034, allocations: 100.7 kB / 1.368 GB, free: 32.06 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001265/2.034, allocations: 79.48 kB / 1.368 GB, free: 32.06 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.208e-05/2.034, allocations: 11.78 kB / 1.368 GB, free: 32.05 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.043e-05/2.034, allocations: 14.16 kB / 1.368 GB, free: 32.05 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.423e-05/2.034, allocations: 26.2 kB / 1.368 GB, free: 32.05 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 3.921e-05/2.034, allocations: 80.48 kB / 1.368 GB, free: 31.98 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.8e-07/2.034, allocations: 0 / 1.368 GB, free: 31.98 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0003392/2.035, allocations: 85.47 kB / 1.368 GB, free: 31.96 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.001733/2.036, allocations: 1.96 MB / 1.37 GB, free: 31.3 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.001448/2.038, allocations: 1.956 MB / 1.372 GB, free: 31.23 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.996e-06/2.038, allocations: 3.875 kB / 1.372 GB, free: 31.23 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.001338/2.039, allocations: 2.013 MB / 1.374 GB, free: 31.17 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001976/2.039, allocations: 18.47 kB / 1.374 GB, free: 31.16 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006017/2.04, allocations: 321.3 kB / 1.374 GB, free: 31.03 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003393/2.04, allocations: 0.7205 MB / 1.375 GB, free: 30.33 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 1.479e-05/2.04, allocations: 0 / 1.375 GB, free: 30.33 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.808e-05/2.04, allocations: 29.5 kB / 1.375 GB, free: 30.32 MB / 0.8386 GB Notification: Performance of SimCode: time 8.61e-07/2.04, allocations: 0 / 1.375 GB, free: 30.32 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0164/2.057, allocations: 4.238 MB / 1.379 GB, free: 29.91 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001925/2.057, allocations: 212 kB / 1.379 GB, free: 29.68 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.775/3.832, allocations: 3.625 kB / 1.379 GB, free: 29.68 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