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.00101/0.001011, allocations: 98.88 kB / 16.02 MB, free: 76 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.001627/0.001627, allocations: 185.3 kB / 16.92 MB, free: 6.766 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.455/1.455, allocations: 223.3 MB / 241 MB, free: 5.355 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.371/2.371, allocations: 390.9 MB / 0.667 GB, free: 2.352 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003355/0.0003357, allocations: 12 kB / 0.8166 GB, free: 13.24 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7059/0.7063, allocations: 142.4 MB / 0.9557 GB, free: 7.773 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy): time 0.001468/0.7078, allocations: 1.058 MB / 0.9567 GB, free: 6.93 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.000748/0.7085, allocations: 365.1 kB / 0.9571 GB, free: 6.668 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.987e-05/0.7086, allocations: 0 / 0.9571 GB, free: 6.668 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 7.687e-05/0.7087, allocations: 5 kB / 0.9571 GB, free: 6.664 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 2.893e-05/0.7087, allocations: 7.922 kB / 0.9571 GB, free: 6.656 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003873/0.7091, allocations: 77.31 kB / 0.9572 GB, free: 6.602 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 7.173e-05/0.7092, allocations: 38.98 kB / 0.9572 GB, free: 6.582 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 4.364e-05/0.7092, allocations: 1.844 kB / 0.9572 GB, free: 6.582 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 3.771e-05/0.7093, allocations: 16.3 kB / 0.9572 GB, free: 6.574 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 4.811e-05/0.7093, allocations: 22.03 kB / 0.9572 GB, free: 6.559 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.285e-05/0.7094, allocations: 2.562 kB / 0.9572 GB, free: 6.559 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001776/0.7095, allocations: 82.59 kB / 0.9573 GB, free: 6.512 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 4.305e-05/0.7096, allocations: 22.95 kB / 0.9573 GB, free: 6.504 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 6.054e-05/0.7097, allocations: 75.19 kB / 0.9574 GB, free: 6.441 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001729/0.7098, allocations: 114.2 kB / 0.9575 GB, free: 6.371 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.7099, allocations: 3.984 kB / 0.9575 GB, free: 6.367 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.214e-06/0.7099, allocations: 0.7188 kB / 0.9575 GB, free: 6.367 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.449e-06/0.7099, allocations: 0 / 0.9575 GB, free: 6.367 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.0003913/0.7103, allocations: 0.4947 MB / 0.958 GB, free: 5.898 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.641e-05/0.7103, allocations: 9.719 kB / 0.958 GB, free: 5.898 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001072/0.7104, allocations: 20.27 kB / 0.958 GB, free: 5.887 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.302e-05/0.7105, allocations: 176 kB / 0.9582 GB, free: 5.68 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.816e-05/0.7105, allocations: 2.281 kB / 0.9582 GB, free: 5.68 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.84e-05/0.7106, allocations: 8.438 kB / 0.9582 GB, free: 5.676 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002579/0.7108, allocations: 244.5 kB / 0.9585 GB, free: 5.555 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.603e-06/0.7108, allocations: 1.688 kB / 0.9585 GB, free: 5.555 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.339e-05/0.7109, allocations: 5.375 kB / 0.9585 GB, free: 5.551 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.118e-06/0.7109, allocations: 0 / 0.9585 GB, free: 5.551 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001329/0.711, allocations: 147.9 kB / 0.9586 GB, free: 5.488 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001329/0.7112, allocations: 190.2 kB / 0.9588 GB, free: 5.27 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003223/0.7115, allocations: 0.5334 MB / 0.9593 GB, free: 4.871 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002957/0.7118, allocations: 0.5281 MB / 0.9598 GB, free: 4.484 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 9.247e-06/0.7118, allocations: 0 / 0.9598 GB, free: 4.484 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003711/0.7122, allocations: 398.8 kB / 0.9602 GB, free: 4.242 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=39): time 2.054e-06/0.7122, allocations: 1.094 kB / 0.9602 GB, free: 4.242 MB / 0.7169 GB Notification: Performance of matching and sorting (n=39): time 0.0006982/0.7129, allocations: 0.6948 MB / 0.9609 GB, free: 3.93 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.59e-05/0.713, allocations: 104.2 kB / 0.961 GB, free: 3.828 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.403e-05/0.713, allocations: 98.95 kB / 0.9611 GB, free: 3.727 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.016e-05/0.713, allocations: 30.83 kB / 0.9611 GB, free: 3.691 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 1.464e-05/0.7131, allocations: 80.8 kB / 0.9612 GB, free: 3.605 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 5.283e-05/0.7131, allocations: 74.25 kB / 0.9613 GB, free: 3.547 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.258e-05/0.7131, allocations: 35.55 kB / 0.9613 GB, free: 3.516 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.578e-05/0.7132, allocations: 327.2 kB / 0.9616 GB, free: 3.191 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.492e-05/0.7133, allocations: 81.55 kB / 0.9617 GB, free: 3.156 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.497e-05/0.7134, allocations: 85.31 kB / 0.9618 GB, free: 3.117 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002748/0.7137, allocations: 352.9 kB / 0.9621 GB, free: 2.914 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.793e-06/0.7137, allocations: 32 / 0.9621 GB, free: 2.914 MB / 0.7169 GB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003206/0.714, allocations: 335.2 kB / 0.9624 GB, free: 2.738 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 6.843e-05/0.7141, allocations: 86.7 kB / 0.9625 GB, free: 2.676 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.498e-06/0.7141, allocations: 0 / 0.9625 GB, free: 2.676 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.21e-05/0.7141, allocations: 0 / 0.9625 GB, free: 2.676 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.62e-05/0.7141, allocations: 2.125 kB / 0.9625 GB, free: 2.676 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.759e-06/0.7142, allocations: 0 / 0.9625 GB, free: 2.676 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000111/0.7143, allocations: 21.94 kB / 0.9625 GB, free: 2.664 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.825e-05/0.7143, allocations: 6.719 kB / 0.9625 GB, free: 2.664 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.0002031/0.7145, allocations: 269.1 kB / 0.9628 GB, free: 2.461 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.77e-05/0.7146, allocations: 34.05 kB / 0.9628 GB, free: 2.441 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.003e-05/0.7146, allocations: 5.219 kB / 0.9628 GB, free: 2.438 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.274e-06/0.7146, allocations: 1 kB / 0.9628 GB, free: 2.438 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.457e-06/0.7146, allocations: 0 / 0.9628 GB, free: 2.438 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.455e-06/0.7146, allocations: 1.031 kB / 0.9628 GB, free: 2.438 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001276/0.7147, allocations: 243.9 kB / 0.9631 GB, free: 2.18 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.194e-06/0.7147, allocations: 1.094 kB / 0.9631 GB, free: 2.18 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.52e-07/0.7147, allocations: 0 / 0.9631 GB, free: 2.18 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.635e-06/0.7147, allocations: 3.938 kB / 0.9631 GB, free: 2.176 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.425e-05/0.7148, allocations: 17.61 kB / 0.9631 GB, free: 2.168 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.923e-06/0.7148, allocations: 4 kB / 0.9631 GB, free: 2.164 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.81e-07/0.7148, allocations: 4 kB / 0.9631 GB, free: 2.16 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00107/0.7159, allocations: 1.277 MB / 0.9643 GB, free: 1.566 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.536e-05/0.7159, allocations: 97.06 kB / 0.9644 GB, free: 1.457 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.832e-05/0.716, allocations: 79.3 kB / 0.9645 GB, free: 1.426 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.202e-05/0.7161, allocations: 8.688 kB / 0.9645 GB, free: 1.426 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.693e-05/0.7161, allocations: 7.172 kB / 0.9645 GB, free: 1.422 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.231e-05/0.7162, allocations: 12.31 kB / 0.9645 GB, free: 1.418 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.039e-05/0.7162, allocations: 90.64 kB / 0.9646 GB, free: 1.332 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.4e-07/0.7162, allocations: 0 / 0.9646 GB, free: 1.332 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003088/0.7165, allocations: 67.28 kB / 0.9647 GB, free: 1.328 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.0004006/0.7169, allocations: 249.3 kB / 0.9649 GB, free: 1.184 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.001368/0.7183, allocations: 1.96 MB / 0.9668 GB, free: 15.97 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 4.709e-06/0.7183, allocations: 0 / 0.9668 GB, free: 15.97 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.001495/0.7198, allocations: 2.023 MB / 0.9688 GB, free: 14.65 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002325/0.7201, allocations: 16.97 kB / 0.9688 GB, free: 14.65 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005507/0.7206, allocations: 385.4 kB / 0.9692 GB, free: 14.38 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003212/0.7209, allocations: 0.7165 MB / 0.9699 GB, free: 13.67 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.092e-05/0.721, allocations: 8.875 kB / 0.9699 GB, free: 13.66 MB / 0.7325 GB Notification: Performance of SimCode: time 1.803e-06/0.721, allocations: 0 / 0.9699 GB, free: 13.66 MB / 0.7325 GB Notification: Performance of Templates: time 0.00475/0.7257, allocations: 2.429 MB / 0.9723 GB, free: 12.45 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/jenkins1/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