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/ModelicaServices 4.0.0+maint.om/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/Buildings 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|occ.occ",fileNamePrefix="Buildings_9_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_9_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00103/0.00103, allocations: 92.39 kB / 15.06 MB, free: 1.098 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001298/0.001298, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.435/1.435, allocations: 223.3 MB / 240 MB, free: 5.301 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.417/2.417, allocations: 390.9 MB / 0.666 GB, free: 2.496 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0005381/0.0005383, allocations: 4 kB / 0.8153 GB, free: 13.68 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.773/0.7735, allocations: 142.4 MB / 0.9544 GB, free: 7.738 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy): time 0.001377/0.775, allocations: 1.04 MB / 0.9554 GB, free: 6.91 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0006176/0.7756, allocations: 334.4 kB / 0.9558 GB, free: 6.664 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.361e-05/0.7756, allocations: 1.5 kB / 0.9558 GB, free: 6.664 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 7.326e-05/0.7757, allocations: 3.938 kB / 0.9558 GB, free: 6.66 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 2.442e-05/0.7757, allocations: 4 kB / 0.9558 GB, free: 6.656 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003601/0.7761, allocations: 70.05 kB / 0.9558 GB, free: 6.609 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 7.221e-05/0.7762, allocations: 47.86 kB / 0.9559 GB, free: 6.578 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 5.14e-05/0.7762, allocations: 2.438 kB / 0.9559 GB, free: 6.578 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 3.232e-05/0.7763, allocations: 11.69 kB / 0.9559 GB, free: 6.574 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.033e-05/0.7763, allocations: 21.41 kB / 0.9559 GB, free: 6.559 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.1e-05/0.7764, allocations: 2.406 kB / 0.9559 GB, free: 6.559 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001473/0.7765, allocations: 69.83 kB / 0.956 GB, free: 6.523 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 3.801e-05/0.7766, allocations: 22.98 kB / 0.956 GB, free: 6.516 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.616e-05/0.7766, allocations: 52.2 kB / 0.9561 GB, free: 6.469 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001468/0.7768, allocations: 109 kB / 0.9562 GB, free: 6.402 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.58e-06/0.7768, allocations: 1.062 kB / 0.9562 GB, free: 6.402 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.432e-06/0.7768, allocations: 0 / 0.9562 GB, free: 6.402 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 7.134e-06/0.7768, allocations: 0 / 0.9562 GB, free: 6.402 MB / 0.7169 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.0004165/0.7772, allocations: 0.5037 MB / 0.9567 GB, free: 5.93 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.562e-05/0.7773, allocations: 13.16 kB / 0.9567 GB, free: 5.926 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.82e-05/0.7774, allocations: 19.33 kB / 0.9567 GB, free: 5.914 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.305e-05/0.7775, allocations: 178 kB / 0.9569 GB, free: 5.703 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.916e-05/0.7775, allocations: 6.062 kB / 0.9569 GB, free: 5.699 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.532e-05/0.7775, allocations: 3.906 kB / 0.9569 GB, free: 5.699 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002848/0.7778, allocations: 236.1 kB / 0.9571 GB, free: 5.586 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.793e-06/0.7778, allocations: 1.781 kB / 0.9571 GB, free: 5.586 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.218e-05/0.7778, allocations: 1.719 kB / 0.9571 GB, free: 5.586 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.488e-06/0.7778, allocations: 0 / 0.9571 GB, free: 5.586 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001579/0.778, allocations: 156 kB / 0.9572 GB, free: 5.516 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001419/0.7782, allocations: 197.6 kB / 0.9574 GB, free: 5.289 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003613/0.7785, allocations: 0.5338 MB / 0.958 GB, free: 4.891 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003289/0.7789, allocations: 0.519 MB / 0.9585 GB, free: 4.512 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 8.205e-06/0.7789, allocations: 0 / 0.9585 GB, free: 4.512 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000392/0.7793, allocations: 403.2 kB / 0.9589 GB, free: 4.266 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=39): time 9.92e-07/0.7793, allocations: 0 / 0.9589 GB, free: 4.266 MB / 0.7169 GB Notification: Performance of matching and sorting (n=39): time 0.0007846/0.7801, allocations: 0.6797 MB / 0.9595 GB, free: 3.965 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.726e-05/0.7802, allocations: 108.5 kB / 0.9596 GB, free: 3.859 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.247e-05/0.7802, allocations: 106.9 kB / 0.9597 GB, free: 3.75 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.426e-05/0.7802, allocations: 31.08 kB / 0.9597 GB, free: 3.715 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.1e-05/0.7803, allocations: 80.8 kB / 0.9598 GB, free: 3.629 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 8.126e-05/0.7804, allocations: 78.38 kB / 0.9599 GB, free: 3.566 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.992e-06/0.7804, allocations: 0.9062 kB / 0.9599 GB, free: 3.566 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 8.382e-05/0.7805, allocations: 322.6 kB / 0.9602 GB, free: 3.246 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001056/0.7806, allocations: 85.34 kB / 0.9603 GB, free: 3.207 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.572e-05/0.7807, allocations: 77.2 kB / 0.9604 GB, free: 3.176 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001807/0.7809, allocations: 186 kB / 0.9605 GB, free: 3.066 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.727e-06/0.7809, allocations: 1.125 kB / 0.9605 GB, free: 3.066 MB / 0.7169 GB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003508/0.7812, allocations: 331.9 kB / 0.9609 GB, free: 2.891 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 7.273e-05/0.7813, allocations: 78.33 kB / 0.9609 GB, free: 2.836 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.741e-06/0.7813, allocations: 0 / 0.9609 GB, free: 2.836 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.274e-05/0.7813, allocations: 0.9688 kB / 0.9609 GB, free: 2.836 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.626e-05/0.7814, allocations: 1 kB / 0.9609 GB, free: 2.836 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.962e-06/0.7814, allocations: 1.031 kB / 0.9609 GB, free: 2.836 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001076/0.7815, allocations: 25.17 kB / 0.961 GB, free: 2.82 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.171e-05/0.7816, allocations: 10.08 kB / 0.961 GB, free: 2.816 MB / 0.7169 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.000221/0.7818, allocations: 265.2 kB / 0.9612 GB, free: 2.617 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.753e-05/0.7818, allocations: 25.78 kB / 0.9612 GB, free: 2.605 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.288e-05/0.7819, allocations: 6.219 kB / 0.9613 GB, free: 2.602 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.314e-06/0.7819, allocations: 1 kB / 0.9613 GB, free: 2.602 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.258e-06/0.7819, allocations: 0 / 0.9613 GB, free: 2.602 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.407e-06/0.7819, allocations: 4 kB / 0.9613 GB, free: 2.598 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001595/0.782, allocations: 257.3 kB / 0.9615 GB, free: 2.328 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.42e-07/0.782, allocations: 0 / 0.9615 GB, free: 2.328 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.61e-07/0.7821, allocations: 0 / 0.9615 GB, free: 2.328 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.933e-06/0.7821, allocations: 1.219 kB / 0.9615 GB, free: 2.328 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.626e-05/0.7821, allocations: 20.98 kB / 0.9615 GB, free: 2.316 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.142e-06/0.7821, allocations: 0 / 0.9615 GB, free: 2.316 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.884e-06/0.7821, allocations: 0 / 0.9615 GB, free: 2.316 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001241/0.7833, allocations: 1.285 MB / 0.9628 GB, free: 1.711 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.301e-05/0.7834, allocations: 93.7 kB / 0.9629 GB, free: 1.605 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001026/0.7835, allocations: 71.42 kB / 0.9629 GB, free: 1.582 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.35e-05/0.7836, allocations: 7.781 kB / 0.9629 GB, free: 1.582 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.598e-05/0.7836, allocations: 11.64 kB / 0.963 GB, free: 1.574 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.312e-05/0.7837, allocations: 16.58 kB / 0.963 GB, free: 1.566 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.384e-05/0.7837, allocations: 81.41 kB / 0.963 GB, free: 1.488 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1e-07/0.7837, allocations: 0 / 0.963 GB, free: 1.488 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003144/0.784, allocations: 68.31 kB / 0.9631 GB, free: 1.484 MB / 0.7169 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.0004277/0.7844, allocations: 246.3 kB / 0.9633 GB, free: 1.34 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.001633/0.7861, allocations: 1.964 MB / 0.9653 GB, free: 128 kB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.7861, allocations: 8.969 kB / 0.9653 GB, free: 120 kB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.001814/0.7879, allocations: 2.014 MB / 0.9672 GB, free: 14.8 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002498/0.7882, allocations: 34.98 kB / 0.9673 GB, free: 14.79 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005951/0.7888, allocations: 343.9 kB / 0.9676 GB, free: 14.56 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002849/0.7891, allocations: 0.7169 MB / 0.9683 GB, free: 13.85 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 1.493e-05/0.7891, allocations: 0 / 0.9683 GB, free: 13.85 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.071e-05/0.7891, allocations: 8.906 kB / 0.9683 GB, free: 13.84 MB / 0.7325 GB Notification: Performance of SimCode: time 5.11e-07/0.7891, allocations: 0 / 0.9683 GB, free: 13.84 MB / 0.7325 GB Notification: Performance of Templates: time 0.005541/0.7947, allocations: 2.382 MB / 0.9706 GB, free: 12.64 MB / 0.7325 GB make -j1 -f Buildings_9_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy.makefile (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 & ./Buildings_9_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Occupants_Office_Occupancy_Validation_Wang2005Occupancy.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches