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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.001679/0.001679, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002056/0.002056, allocations: 193.7 kB / 16.53 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.437/1.437, allocations: 222.9 MB / 240.2 MB, free: 4.387 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.391/2.391, allocations: 390.2 MB / 0.6647 GB, free: 256 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001367/0.001368, allocations: 63.89 kB / 0.8125 GB, free: 14.29 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.74/0.7414, allocations: 140.4 MB / 0.9496 GB, free: 9.156 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy): time 0.002688/0.7441, allocations: 1.318 MB / 0.9509 GB, free: 8.113 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0007388/0.7449, allocations: 362.3 kB / 0.9512 GB, free: 7.844 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.245e-05/0.7449, allocations: 1.375 kB / 0.9512 GB, free: 7.844 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001025/0.745, allocations: 0 / 0.9512 GB, free: 7.844 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 2.334e-05/0.7451, allocations: 7.875 kB / 0.9512 GB, free: 7.836 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004453/0.7455, allocations: 89.84 kB / 0.9513 GB, free: 7.773 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001128/0.7456, allocations: 61.23 kB / 0.9514 GB, free: 7.738 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 4.871e-05/0.7457, allocations: 2.312 kB / 0.9514 GB, free: 7.738 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 3.673e-05/0.7457, allocations: 15.73 kB / 0.9514 GB, free: 7.73 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.135e-05/0.7458, allocations: 19.55 kB / 0.9514 GB, free: 7.719 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.654e-05/0.7458, allocations: 7.047 kB / 0.9514 GB, free: 7.715 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000171/0.746, allocations: 77.94 kB / 0.9515 GB, free: 7.676 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 4.579e-05/0.7461, allocations: 36.19 kB / 0.9515 GB, free: 7.656 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 6.062e-05/0.7461, allocations: 48.86 kB / 0.9516 GB, free: 7.625 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002272/0.7464, allocations: 152.6 kB / 0.9517 GB, free: 7.531 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.731e-06/0.7464, allocations: 5.406 kB / 0.9517 GB, free: 7.527 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.643e-06/0.7464, allocations: 0 / 0.9517 GB, free: 7.527 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.831e-06/0.7464, allocations: 0 / 0.9517 GB, free: 7.527 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.0004932/0.7469, allocations: 0.5123 MB / 0.9522 GB, free: 7.047 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.305e-05/0.7469, allocations: 10.19 kB / 0.9522 GB, free: 7.047 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001127/0.747, allocations: 16.69 kB / 0.9522 GB, free: 7.039 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001151/0.7472, allocations: 182.6 kB / 0.9524 GB, free: 6.824 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.69e-05/0.7472, allocations: 3.375 kB / 0.9524 GB, free: 6.824 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.565e-05/0.7472, allocations: 4.125 kB / 0.9524 GB, free: 6.824 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002816/0.7475, allocations: 241.6 kB / 0.9527 GB, free: 6.707 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.668e-06/0.7475, allocations: 192 / 0.9527 GB, free: 6.707 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.411e-05/0.7475, allocations: 5.094 kB / 0.9527 GB, free: 6.703 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.15e-06/0.7475, allocations: 1.312 kB / 0.9527 GB, free: 6.703 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001533/0.7477, allocations: 147.5 kB / 0.9528 GB, free: 6.641 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001456/0.7479, allocations: 197.6 kB / 0.953 GB, free: 6.414 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003631/0.7482, allocations: 0.5345 MB / 0.9535 GB, free: 6.016 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003672/0.7486, allocations: 0.5244 MB / 0.954 GB, free: 5.633 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.017e-05/0.7486, allocations: 0 / 0.954 GB, free: 5.633 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004621/0.7491, allocations: 398.7 kB / 0.9544 GB, free: 5.395 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=39): time 1.443e-06/0.7491, allocations: 0 / 0.9544 GB, free: 5.395 MB / 0.7169 GB Notification: Performance of matching and sorting (n=39): time 0.0008427/0.7499, allocations: 0.687 MB / 0.9551 GB, free: 5.09 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.012e-05/0.75, allocations: 108.7 kB / 0.9552 GB, free: 4.984 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.135e-05/0.7501, allocations: 98.73 kB / 0.9553 GB, free: 4.883 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.434e-05/0.7501, allocations: 30.88 kB / 0.9553 GB, free: 4.848 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.504e-05/0.7501, allocations: 80.8 kB / 0.9554 GB, free: 4.762 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 5.549e-05/0.7502, allocations: 78.03 kB / 0.9555 GB, free: 4.699 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.463e-05/0.7502, allocations: 35.48 kB / 0.9555 GB, free: 4.672 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.417e-05/0.7503, allocations: 328.4 kB / 0.9558 GB, free: 4.348 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.275e-05/0.7504, allocations: 83.66 kB / 0.9559 GB, free: 4.309 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.097e-05/0.7505, allocations: 85.23 kB / 0.956 GB, free: 4.27 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002682/0.7507, allocations: 357.4 kB / 0.9563 GB, free: 4.062 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.335e-06/0.7507, allocations: 0 / 0.9563 GB, free: 4.062 MB / 0.7169 GB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003342/0.7511, allocations: 331.9 kB / 0.9566 GB, free: 3.891 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 8.917e-05/0.7512, allocations: 86.58 kB / 0.9567 GB, free: 3.828 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.919e-06/0.7512, allocations: 1.219 kB / 0.9567 GB, free: 3.828 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.527e-05/0.7512, allocations: 0 / 0.9567 GB, free: 3.828 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.541e-05/0.7513, allocations: 1.344 kB / 0.9567 GB, free: 3.828 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.272e-06/0.7513, allocations: 1.219 kB / 0.9567 GB, free: 3.828 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001063/0.7514, allocations: 20.95 kB / 0.9567 GB, free: 3.816 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.022e-05/0.7514, allocations: 10.59 kB / 0.9567 GB, free: 3.812 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 (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,occ.hold_time,occ.tNext,$PRE.occ.tNext,occ.mu,occ.occ,$whenCondition1) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002156/0.7516, allocations: 265.2 kB / 0.957 GB, free: 3.609 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.844e-05/0.7517, allocations: 25.88 kB / 0.957 GB, free: 3.598 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.181e-05/0.7517, allocations: 5.219 kB / 0.957 GB, free: 3.594 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.204e-06/0.7517, allocations: 0.8125 kB / 0.957 GB, free: 3.594 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.56e-06/0.7517, allocations: 0 / 0.957 GB, free: 3.594 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.355e-06/0.7517, allocations: 4.688 kB / 0.957 GB, free: 3.59 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001486/0.7519, allocations: 248.2 kB / 0.9573 GB, free: 3.328 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.72e-07/0.7519, allocations: 0.9062 kB / 0.9573 GB, free: 3.328 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.01e-07/0.7519, allocations: 4 kB / 0.9573 GB, free: 3.324 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.835e-06/0.7519, allocations: 4.844 kB / 0.9573 GB, free: 3.32 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.827e-05/0.7519, allocations: 12.48 kB / 0.9573 GB, free: 3.316 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.216e-06/0.7519, allocations: 5.062 kB / 0.9573 GB, free: 3.312 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.752, allocations: 0 / 0.9573 GB, free: 3.312 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001299/0.7533, allocations: 1.284 MB / 0.9585 GB, free: 2.711 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.536e-05/0.7533, allocations: 97.73 kB / 0.9586 GB, free: 2.602 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001158/0.7534, allocations: 78.92 kB / 0.9587 GB, free: 2.57 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.26e-05/0.7535, allocations: 12.09 kB / 0.9587 GB, free: 2.566 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.002e-05/0.7536, allocations: 15.52 kB / 0.9587 GB, free: 2.555 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.482e-05/0.7536, allocations: 12.73 kB / 0.9587 GB, free: 2.551 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.856e-05/0.7536, allocations: 85.55 kB / 0.9588 GB, free: 2.469 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.21e-07/0.7536, allocations: 0 / 0.9588 GB, free: 2.469 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003434/0.754, allocations: 67.72 kB / 0.9589 GB, free: 2.465 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000471/0.7545, allocations: 245.3 kB / 0.9591 GB, free: 2.324 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0015/0.756, allocations: 1.967 MB / 0.961 GB, free: 1.109 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.444e-06/0.756, allocations: 0 / 0.961 GB, free: 1.109 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.001373/0.7574, allocations: 2.011 MB / 0.963 GB, free: 15.8 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002648/0.7576, allocations: 23.17 kB / 0.963 GB, free: 15.8 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007255/0.7584, allocations: 336.4 kB / 0.9634 GB, free: 15.59 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003375/0.7587, allocations: 0.7169 MB / 0.9641 GB, free: 14.87 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 1.587e-05/0.7587, allocations: 0 / 0.9641 GB, free: 14.87 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.452e-05/0.7588, allocations: 8.375 kB / 0.9641 GB, free: 14.86 MB / 0.7325 GB Notification: Performance of SimCode: time 4.81e-07/0.7588, allocations: 4 kB / 0.9641 GB, free: 14.86 MB / 0.7325 GB Notification: Performance of Templates: time 0.006518/0.7653, allocations: 2.634 MB / 0.9666 GB, free: 13.52 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