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: translateModel(Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|occ.occ",fileNamePrefix="Buildings_latest_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy") translateModel(Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|occ.occ",fileNamePrefix="Buildings_latest_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.313/2.313, allocations: 390.5 MB / 398 MB, free: 10.92 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.001781/0.001781, allocations: 180.8 kB / 491.2 MB, free: 1.555 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.662/1.662, allocations: 221.5 MB / 0.7868 GB, free: 13.3 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.001042/0.001042, allocations: 95.45 kB / 0.9269 GB, free: 13.79 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 1.745e-05/1.746e-05, allocations: 0 / 1.073 GB, free: 182.1 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3108/0.3109, allocations: 143 MB / 1.212 GB, free: 39.58 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.077/1.388, allocations: 150 MB / 1.359 GB, free: 17.5 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002858/1.388, allocations: 82.08 kB / 1.359 GB, free: 17.5 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.00702/1.395, allocations: 2.413 MB / 1.361 GB, free: 33.07 MB / 0.8386 GB Notification: Performance of FrontEnd: time 2.375e-06/1.395, allocations: 0 / 1.361 GB, free: 33.07 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 9.307e-06/1.395, allocations: 0.75 kB / 1.361 GB, free: 33.07 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.0004808/1.396, allocations: 0.5029 MB / 1.362 GB, free: 32.65 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 5.109e-05/1.396, allocations: 6.656 kB / 1.362 GB, free: 32.65 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001286/1.396, allocations: 18.78 kB / 1.362 GB, free: 32.64 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001187/1.396, allocations: 183.8 kB / 1.362 GB, free: 32.43 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.898e-05/1.396, allocations: 3.375 kB / 1.362 GB, free: 32.43 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.292e-05/1.396, allocations: 3.75 kB / 1.362 GB, free: 32.43 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001717/1.396, allocations: 141.7 kB / 1.362 GB, free: 32.43 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002423/1.397, allocations: 244.8 kB / 1.362 GB, free: 32.39 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.137e-06/1.397, allocations: 1.812 kB / 1.362 GB, free: 32.39 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.69e-05/1.397, allocations: 3.906 kB / 1.362 GB, free: 32.39 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.209e-06/1.397, allocations: 0 / 1.362 GB, free: 32.39 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001612/1.397, allocations: 180.7 kB / 1.362 GB, free: 32.21 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003271/1.397, allocations: 0.539 MB / 1.363 GB, free: 32.18 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002543/1.397, allocations: 0.5186 MB / 1.363 GB, free: 32.18 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.158e-05/1.397, allocations: 3.047 kB / 1.363 GB, free: 32.18 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003302/1.398, allocations: 380 kB / 1.364 GB, free: 32.06 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=39): time 1.182e-06/1.398, allocations: 0 / 1.364 GB, free: 32.06 MB / 0.8386 GB Notification: Performance of matching and sorting (n=39): time 0.000452/1.398, allocations: 406.6 kB / 1.364 GB, free: 32.02 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.528e-05/1.398, allocations: 110.5 kB / 1.364 GB, free: 31.92 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.043e-05/1.398, allocations: 99.48 kB / 1.364 GB, free: 31.82 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.199e-05/1.398, allocations: 25.7 kB / 1.364 GB, free: 31.79 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 3.868e-05/1.398, allocations: 88.02 kB / 1.365 GB, free: 31.71 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 5.285e-05/1.398, allocations: 73.09 kB / 1.365 GB, free: 31.66 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.829e-06/1.398, allocations: 0 / 1.365 GB, free: 31.66 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 9.575e-05/1.399, allocations: 328.1 kB / 1.365 GB, free: 31.35 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.875e-05/1.399, allocations: 76.88 kB / 1.365 GB, free: 31.35 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.396e-05/1.399, allocations: 81.3 kB / 1.365 GB, free: 31.35 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001026/1.399, allocations: 112.3 kB / 1.365 GB, free: 31.34 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/1.399, allocations: 0 / 1.365 GB, free: 31.34 MB / 0.8386 GB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0002301/1.399, allocations: 264.7 kB / 1.365 GB, free: 31.29 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 6.45e-05/1.399, allocations: 82.48 kB / 1.366 GB, free: 31.26 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.791e-06/1.399, allocations: 0 / 1.366 GB, free: 31.26 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.809e-05/1.399, allocations: 0 / 1.366 GB, free: 31.26 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.809e-05/1.399, allocations: 0 / 1.366 GB, free: 31.26 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.797e-06/1.399, allocations: 0 / 1.366 GB, free: 31.26 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.591e-05/1.399, allocations: 19.41 kB / 1.366 GB, free: 31.25 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.944e-05/1.399, allocations: 5.375 kB / 1.366 GB, free: 31.25 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.0001999/1.4, allocations: 255.8 kB / 1.366 GB, free: 31.1 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.223e-05/1.4, allocations: 20.94 kB / 1.366 GB, free: 31.09 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.745e-05/1.4, allocations: 9.844 kB / 1.366 GB, free: 31.09 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.553e-06/1.4, allocations: 0 / 1.366 GB, free: 31.09 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.909e-06/1.4, allocations: 0 / 1.366 GB, free: 31.09 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.156e-06/1.4, allocations: 2.688 kB / 1.366 GB, free: 31.09 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001503/1.4, allocations: 233.8 kB / 1.366 GB, free: 30.92 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/1.4, allocations: 0 / 1.366 GB, free: 30.92 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.31e-07/1.4, allocations: 3.781 kB / 1.366 GB, free: 30.92 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.615e-06/1.4, allocations: 3.953 kB / 1.366 GB, free: 30.92 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.816e-05/1.4, allocations: 16.55 kB / 1.366 GB, free: 30.92 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.61e-07/1.4, allocations: 7.719 kB / 1.366 GB, free: 30.91 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.837e-06/1.4, allocations: 7.922 kB / 1.366 GB, free: 30.91 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000515/1.4, allocations: 0.5578 MB / 1.367 GB, free: 30.83 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 2.528e-05/1.4, allocations: 92.48 kB / 1.367 GB, free: 30.73 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001039/1.4, allocations: 85.53 kB / 1.367 GB, free: 30.72 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.565e-05/1.401, allocations: 11 kB / 1.367 GB, free: 30.72 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.263e-05/1.401, allocations: 7.188 kB / 1.367 GB, free: 30.72 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.495e-05/1.401, allocations: 22.84 kB / 1.367 GB, free: 30.72 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 3.001e-05/1.401, allocations: 94.64 kB / 1.367 GB, free: 30.63 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.41e-07/1.401, allocations: 0 / 1.367 GB, free: 30.63 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002777/1.401, allocations: 75.61 kB / 1.367 GB, free: 30.63 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.0004184/1.401, allocations: 250.2 kB / 1.367 GB, free: 30.51 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.001196/1.403, allocations: 1.945 MB / 1.369 GB, free: 30.44 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/1.403, allocations: 0 / 1.369 GB, free: 30.44 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.001007/1.404, allocations: 2.004 MB / 1.371 GB, free: 30.38 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001575/1.404, allocations: 8.609 kB / 1.371 GB, free: 30.38 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003484/1.404, allocations: 250.6 kB / 1.371 GB, free: 30.29 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003005/1.404, allocations: 0.7219 MB / 1.372 GB, free: 29.59 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 1.232e-05/1.404, allocations: 4 kB / 1.372 GB, free: 29.59 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.586e-06/1.405, allocations: 7.438 kB / 1.372 GB, free: 29.58 MB / 0.8386 GB Notification: Performance of SimCode: time 3.01e-07/1.405, allocations: 0 / 1.372 GB, free: 29.58 MB / 0.8386 GB Notification: Performance of Templates: time 0.004923/1.409, allocations: 2.748 MB / 1.375 GB, free: 29.28 MB / 0.8386 GB make -j1 -f Buildings_latest_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy.makefile (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 & ./Buildings_latest_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Occupants_Office_Occupancy_Validation_Wang2005Occupancy.csv","../files/Buildings_latest_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches