Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: "" <> buildModelFMU(Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy,fileNamePrefix="Buildings_latest_Buildings_Occupants_Office_Occupancy_Validation_Wang2005Occupancy",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy,fileNamePrefix="Buildings_latest_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 10.0.0-master/package.mo): time 2.087/2.087, allocations: 390.3 MB / 402.8 MB, free: 6.676 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.001238/0.001238, allocations: 172.9 kB / 496.1 MB, free: 12.85 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.359/1.359, allocations: 221.3 MB / 0.7915 GB, free: 5.391 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.0008544/0.0008545, allocations: 99.88 kB / 0.9317 GB, free: 5.711 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.649e-05/3.68e-05, allocations: 7.984 kB / 1.079 GB, free: 140.4 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2418/0.2419, allocations: 143 MB / 1.219 GB, free: 13.43 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8355/1.077, allocations: 150.7 MB / 1.366 GB, free: 3.41 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000213/1.078, allocations: 82.69 kB / 1.366 GB, free: 3.363 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.006379/1.084, allocations: 2.426 MB / 1.368 GB, free: 1.254 MB / 0.823 GB Notification: Performance of FrontEnd: time 1.302e-06/1.084, allocations: 4 kB / 1.368 GB, free: 1.25 MB / 0.823 GB Notification: Performance of Transformations before backend: time 7.043e-06/1.084, allocations: 0 / 1.368 GB, free: 1.25 MB / 0.823 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.0004767/1.085, allocations: 0.5013 MB / 1.369 GB, free: 0.7227 MB / 0.823 GB Notification: Performance of prepare preOptimizeDAE: time 3.925e-05/1.085, allocations: 8.031 kB / 1.369 GB, free: 0.7148 MB / 0.823 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.874e-05/1.085, allocations: 52.59 kB / 1.369 GB, free: 0.6602 MB / 0.823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.553e-05/1.085, allocations: 19.77 kB / 1.369 GB, free: 0.6406 MB / 0.823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000122/1.085, allocations: 174.9 kB / 1.369 GB, free: 440 kB / 0.823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.804e-05/1.085, allocations: 0 / 1.369 GB, free: 440 kB / 0.823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.763e-05/1.085, allocations: 4 kB / 1.369 GB, free: 436 kB / 0.823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002693/1.085, allocations: 248.5 kB / 1.369 GB, free: 248 kB / 0.823 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.203e-06/1.085, allocations: 0 / 1.369 GB, free: 248 kB / 0.823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.406e-05/1.085, allocations: 0 / 1.369 GB, free: 248 kB / 0.823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.218e-06/1.085, allocations: 0 / 1.369 GB, free: 248 kB / 0.823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001264/1.085, allocations: 144.2 kB / 1.37 GB, free: 152 kB / 0.823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002321/1.086, allocations: 225.5 kB / 1.37 GB, free: 15.91 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003108/1.086, allocations: 0.5303 MB / 1.37 GB, free: 15.73 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002794/1.086, allocations: 0.5217 MB / 1.371 GB, free: 15.56 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 8.897e-06/1.086, allocations: 8 kB / 1.371 GB, free: 15.55 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003331/1.087, allocations: 390.6 kB / 1.371 GB, free: 15.23 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=39): time 1.242e-06/1.087, allocations: 0 / 1.371 GB, free: 15.23 MB / 0.8386 GB Notification: Performance of matching and sorting (n=39): time 0.0005259/1.087, allocations: 496 kB / 1.372 GB, free: 14.86 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.243e-05/1.087, allocations: 108.3 kB / 1.372 GB, free: 14.74 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.4e-05/1.087, allocations: 92.91 kB / 1.372 GB, free: 14.64 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.617e-05/1.087, allocations: 25.7 kB / 1.372 GB, free: 14.61 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 2.973e-05/1.087, allocations: 88.89 kB / 1.372 GB, free: 14.52 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 6.256e-05/1.087, allocations: 81.56 kB / 1.372 GB, free: 14.45 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.098e-06/1.087, allocations: 0 / 1.372 GB, free: 14.45 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 9.952e-05/1.088, allocations: 326.5 kB / 1.372 GB, free: 14.13 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.32e-05/1.088, allocations: 84.73 kB / 1.372 GB, free: 14.08 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.039e-05/1.088, allocations: 83.91 kB / 1.372 GB, free: 14.02 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001322/1.088, allocations: 173 kB / 1.373 GB, free: 13.9 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/1.088, allocations: 0 / 1.373 GB, free: 13.9 MB / 0.8386 GB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003026/1.088, allocations: 334.8 kB / 1.373 GB, free: 13.64 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 7.2e-05/1.088, allocations: 83.58 kB / 1.373 GB, free: 13.56 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.118e-06/1.088, allocations: 0 / 1.373 GB, free: 13.56 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.107e-05/1.088, allocations: 0 / 1.373 GB, free: 13.56 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.777e-05/1.088, allocations: 0 / 1.373 GB, free: 13.56 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.8e-06/1.088, allocations: 0 / 1.373 GB, free: 13.56 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.531e-05/1.088, allocations: 20.72 kB / 1.373 GB, free: 13.54 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.663e-05/1.088, allocations: 4 kB / 1.373 GB, free: 13.54 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.0001889/1.089, allocations: 251.5 kB / 1.373 GB, free: 13.29 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.649e-05/1.089, allocations: 19.81 kB / 1.373 GB, free: 13.27 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.473e-05/1.089, allocations: 5.344 kB / 1.373 GB, free: 13.27 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.613e-06/1.089, allocations: 8 kB / 1.373 GB, free: 13.26 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.487e-06/1.089, allocations: 0 / 1.373 GB, free: 13.26 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.076e-06/1.089, allocations: 3.984 kB / 1.373 GB, free: 13.25 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001762/1.089, allocations: 269.5 kB / 1.374 GB, free: 12.97 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.814e-06/1.089, allocations: 3.125 kB / 1.374 GB, free: 12.97 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.134e-06/1.089, allocations: 3.938 kB / 1.374 GB, free: 12.96 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.843e-06/1.089, allocations: 0 / 1.374 GB, free: 12.96 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.951e-05/1.089, allocations: 19.61 kB / 1.374 GB, free: 12.95 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.232e-06/1.089, allocations: 0 / 1.374 GB, free: 12.95 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/1.089, allocations: 0 / 1.374 GB, free: 12.95 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001058/1.09, allocations: 1.283 MB / 1.375 GB, free: 11.95 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 4.181e-05/1.09, allocations: 96.86 kB / 1.375 GB, free: 11.84 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001193/1.09, allocations: 86.47 kB / 1.375 GB, free: 11.77 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.083e-05/1.09, allocations: 8 kB / 1.375 GB, free: 11.76 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.676e-05/1.09, allocations: 6.812 kB / 1.375 GB, free: 11.76 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.233e-05/1.09, allocations: 23.48 kB / 1.375 GB, free: 11.74 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 3.12e-05/1.09, allocations: 83.27 kB / 1.375 GB, free: 11.66 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.5e-07/1.09, allocations: 0 / 1.375 GB, free: 11.66 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002791/1.091, allocations: 83.09 kB / 1.375 GB, free: 11.58 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.00166/1.092, allocations: 1.962 MB / 1.377 GB, free: 9.918 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.001235/1.094, allocations: 1.954 MB / 1.379 GB, free: 8.941 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/1.094, allocations: 4.094 kB / 1.379 GB, free: 8.938 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.001093/1.095, allocations: 2.013 MB / 1.381 GB, free: 8.027 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001548/1.095, allocations: 16.48 kB / 1.381 GB, free: 8.012 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000523/1.095, allocations: 326 kB / 1.381 GB, free: 7.691 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002502/1.096, allocations: 0.7169 MB / 1.382 GB, free: 6.949 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 1.303e-05/1.096, allocations: 4.062 kB / 1.382 GB, free: 6.945 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.361e-05/1.096, allocations: 28.12 kB / 1.382 GB, free: 6.938 MB / 0.8386 GB Notification: Performance of SimCode: time 2.71e-07/1.096, allocations: 0 / 1.382 GB, free: 6.938 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01573/1.112, allocations: 4.243 MB / 1.386 GB, free: 2.867 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002057/1.112, allocations: 210.6 kB / 1.386 GB, free: 2.641 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.53/2.641, allocations: 4 kB / 1.386 GB, free: 2.637 MB / 0.8386 GB (rm -f Buildings_latest_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy.pipe ; mkfifo Buildings_latest_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy.pipe ; head -c 1048576 < Buildings_latest_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy.pipe >> ../files/Buildings_latest_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy_res.mat --tempDir=temp_Buildings_latest_Buildings_Occupants_Office_Occupancy_Validation_Wang2005Occupancy_fmu --startTime=0 --stopTime=36000 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Occupants_Office_Occupancy_Validation_Wang2005Occupancy.fmu > Buildings_latest_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy_res.mat does not exist to compare? outputFormat=mat