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.001448/0.001448, allocations: 105.7 kB / 16.27 MB, free: 6.414 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.001626/0.001626, allocations: 189.8 kB / 17.2 MB, free: 5.953 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.398/1.398, allocations: 222.9 MB / 240.9 MB, free: 15.23 MB / 206.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.217/2.217, allocations: 390.2 MB / 0.6653 GB, free: 0.7109 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001271/0.001271, allocations: 62.31 kB / 0.8132 GB, free: 32.94 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2759/0.2772, allocations: 140.4 MB / 0.9503 GB, free: 8.891 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy): time 0.002999/0.2803, allocations: 1.328 MB / 0.9516 GB, free: 7.547 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.0008651/0.2812, allocations: 357 kB / 0.9519 GB, free: 7.199 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.973e-05/0.2812, allocations: 0 / 0.9519 GB, free: 7.199 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 9.465e-05/0.2814, allocations: 7.938 kB / 0.9519 GB, free: 7.191 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 3.279e-05/0.2814, allocations: 11.92 kB / 0.9519 GB, free: 7.18 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005257/0.282, allocations: 87.77 kB / 0.952 GB, free: 7.094 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0001221/0.2821, allocations: 47.92 kB / 0.9521 GB, free: 7.047 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 4.625e-05/0.2821, allocations: 8 kB / 0.9521 GB, free: 7.039 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 4.024e-05/0.2822, allocations: 15.98 kB / 0.9521 GB, free: 7.023 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 5.602e-05/0.2822, allocations: 23.91 kB / 0.9521 GB, free: 7 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 1.59e-05/0.2823, allocations: 4 kB / 0.9521 GB, free: 6.996 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002181/0.2825, allocations: 83.84 kB / 0.9522 GB, free: 6.914 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 4.712e-05/0.2826, allocations: 27.92 kB / 0.9522 GB, free: 6.887 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 6.847e-05/0.2826, allocations: 51.67 kB / 0.9523 GB, free: 6.836 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0002526/0.2829, allocations: 155.5 kB / 0.9524 GB, free: 6.684 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.2829, allocations: 0 / 0.9524 GB, free: 6.684 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.884e-06/0.2829, allocations: 4 kB / 0.9524 GB, free: 6.68 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 6.442e-06/0.2829, allocations: 0 / 0.9524 GB, free: 6.68 MB / 0.7325 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.000597/0.2835, allocations: 0.5125 MB / 0.9529 GB, free: 6.109 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.578e-05/0.2836, allocations: 8.031 kB / 0.9529 GB, free: 6.102 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001179/0.2837, allocations: 20.69 kB / 0.9529 GB, free: 6.082 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001435/0.2838, allocations: 176.2 kB / 0.9531 GB, free: 5.871 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.907e-05/0.2839, allocations: 384 / 0.9531 GB, free: 5.871 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.434e-05/0.2839, allocations: 4.375 kB / 0.9531 GB, free: 5.867 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002871/0.2842, allocations: 246.2 kB / 0.9533 GB, free: 5.621 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.465e-06/0.2842, allocations: 8.125 kB / 0.9534 GB, free: 5.613 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.942e-05/0.2842, allocations: 7.938 kB / 0.9534 GB, free: 5.605 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.039e-06/0.2842, allocations: 0 / 0.9534 GB, free: 5.605 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001564/0.2844, allocations: 144 kB / 0.9535 GB, free: 5.465 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001872/0.2846, allocations: 193.4 kB / 0.9537 GB, free: 5.227 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005414/0.2851, allocations: 0.5376 MB / 0.9542 GB, free: 4.68 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003746/0.2855, allocations: 0.5204 MB / 0.9547 GB, free: 4.156 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 9.457e-06/0.2855, allocations: 0 / 0.9547 GB, free: 4.156 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004234/0.286, allocations: 399.7 kB / 0.9551 GB, free: 3.742 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=39): time 1.343e-06/0.286, allocations: 0 / 0.9551 GB, free: 3.742 MB / 0.7325 GB Notification: Performance of matching and sorting (n=39): time 0.0007962/0.2868, allocations: 0.6889 MB / 0.9558 GB, free: 3.043 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.668e-05/0.2869, allocations: 109 kB / 0.9559 GB, free: 2.918 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.763e-05/0.287, allocations: 101.8 kB / 0.956 GB, free: 2.809 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.291e-05/0.287, allocations: 25.7 kB / 0.956 GB, free: 2.777 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 3.283e-05/0.2871, allocations: 84.8 kB / 0.9561 GB, free: 2.688 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 6.74e-05/0.2872, allocations: 75.03 kB / 0.9561 GB, free: 2.613 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.216e-05/0.2872, allocations: 37.7 kB / 0.9562 GB, free: 2.57 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001697/0.2874, allocations: 326.8 kB / 0.9565 GB, free: 2.242 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.963e-05/0.2875, allocations: 79.98 kB / 0.9566 GB, free: 2.164 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.194e-05/0.2876, allocations: 91.97 kB / 0.9567 GB, free: 2.074 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003016/0.2879, allocations: 349.4 kB / 0.957 GB, free: 1.719 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.2879, allocations: 0 / 0.957 GB, free: 1.719 MB / 0.7325 GB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003985/0.2883, allocations: 336 kB / 0.9573 GB, free: 1.379 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 8.619e-05/0.2884, allocations: 85.58 kB / 0.9574 GB, free: 1.289 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.833e-06/0.2884, allocations: 8.062 kB / 0.9574 GB, free: 1.281 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.368e-05/0.2884, allocations: 0 / 0.9574 GB, free: 1.281 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.536e-05/0.2885, allocations: 0 / 0.9574 GB, free: 1.281 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.071e-06/0.2885, allocations: 0 / 0.9574 GB, free: 1.281 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001061/0.2886, allocations: 19.78 kB / 0.9574 GB, free: 1.262 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.801e-05/0.2886, allocations: 8 kB / 0.9574 GB, free: 1.254 MB / 0.7325 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.0003159/0.289, allocations: 267.6 kB / 0.9577 GB, free: 0.9766 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.479e-05/0.289, allocations: 31.73 kB / 0.9577 GB, free: 0.9453 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.574e-05/0.289, allocations: 9.219 kB / 0.9577 GB, free: 0.9336 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.904e-06/0.289, allocations: 4 kB / 0.9577 GB, free: 0.9297 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.488e-06/0.289, allocations: 0 / 0.9577 GB, free: 0.9297 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.435e-06/0.2891, allocations: 0 / 0.9577 GB, free: 0.9297 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001879/0.2892, allocations: 245.4 kB / 0.958 GB, free: 0.6406 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-06/0.2893, allocations: 0 / 0.958 GB, free: 0.6406 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.61e-07/0.2893, allocations: 0 / 0.958 GB, free: 0.6406 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.029e-06/0.2893, allocations: 3.938 kB / 0.958 GB, free: 0.6367 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.415e-05/0.2893, allocations: 15.92 kB / 0.958 GB, free: 0.6211 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.773e-06/0.2893, allocations: 0 / 0.958 GB, free: 0.6211 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.344e-06/0.2893, allocations: 7.938 kB / 0.958 GB, free: 0.6133 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001219/0.2905, allocations: 1.283 MB / 0.9592 GB, free: 15.3 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 5.677e-05/0.2906, allocations: 100.8 kB / 0.9593 GB, free: 15.19 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001018/0.2907, allocations: 75.89 kB / 0.9594 GB, free: 15.11 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.3e-05/0.2908, allocations: 8 kB / 0.9594 GB, free: 15.11 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.309e-05/0.2908, allocations: 7.984 kB / 0.9594 GB, free: 15.1 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.103e-05/0.2909, allocations: 12 kB / 0.9594 GB, free: 15.09 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 4.099e-05/0.2909, allocations: 83.27 kB / 0.9595 GB, free: 15 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1e-07/0.2909, allocations: 0 / 0.9595 GB, free: 15 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0003042/0.2912, allocations: 72.03 kB / 0.9596 GB, free: 14.93 MB / 0.7481 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.0004305/0.2917, allocations: 235.7 kB / 0.9598 GB, free: 14.71 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.001679/0.2934, allocations: 1.964 MB / 0.9617 GB, free: 12.73 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.2934, allocations: 0 / 0.9617 GB, free: 12.73 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.001522/0.2949, allocations: 2.018 MB / 0.9637 GB, free: 10.7 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002355/0.2952, allocations: 16 kB / 0.9637 GB, free: 10.68 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005798/0.2957, allocations: 369.3 kB / 0.9641 GB, free: 10.29 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004494/0.2962, allocations: 0.7243 MB / 0.9648 GB, free: 9.539 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.431e-05/0.2962, allocations: 7.438 kB / 0.9648 GB, free: 9.531 MB / 0.7481 GB Notification: Performance of SimCode: time 2.31e-07/0.2962, allocations: 0 / 0.9648 GB, free: 9.531 MB / 0.7481 GB Notification: Performance of Templates: time 0.004893/0.3011, allocations: 2.439 MB / 0.9672 GB, free: 7.094 MB / 0.7481 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