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.0018/0.0018, allocations: 109.7 kB / 16.37 MB, free: 6.469 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.002006/0.002006, allocations: 194.5 kB / 17.31 MB, free: 5.824 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.415/1.415, allocations: 222.9 MB / 241 MB, free: 15.2 MB / 206.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.246/2.246, allocations: 390.3 MB / 0.6655 GB, free: 0.6055 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001298/0.001298, allocations: 64.91 kB / 0.814 GB, free: 32.79 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2727/0.274, allocations: 140.4 MB / 0.9511 GB, free: 8.102 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy): time 0.002316/0.2763, allocations: 1.341 MB / 0.9524 GB, free: 6.754 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.0006768/0.277, allocations: 349.1 kB / 0.9528 GB, free: 6.414 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.697e-05/0.2771, allocations: 0 / 0.9528 GB, free: 6.414 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 7.974e-05/0.2772, allocations: 3.938 kB / 0.9528 GB, free: 6.41 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 2.305e-05/0.2772, allocations: 3.984 kB / 0.9528 GB, free: 6.406 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004112/0.2776, allocations: 95.7 kB / 0.9529 GB, free: 6.312 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0001115/0.2777, allocations: 55.92 kB / 0.9529 GB, free: 6.258 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 3.6e-05/0.2778, allocations: 0 / 0.9529 GB, free: 6.258 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 3.222e-05/0.2778, allocations: 23.91 kB / 0.9529 GB, free: 6.234 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 4.824e-05/0.2779, allocations: 19.92 kB / 0.953 GB, free: 6.215 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 1.288e-05/0.2779, allocations: 4 kB / 0.953 GB, free: 6.211 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001645/0.2781, allocations: 83.84 kB / 0.953 GB, free: 6.129 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 3.776e-05/0.2781, allocations: 31.92 kB / 0.9531 GB, free: 6.098 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 5.664e-05/0.2782, allocations: 51.73 kB / 0.9531 GB, free: 6.047 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0002136/0.2784, allocations: 155.5 kB / 0.9533 GB, free: 5.895 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 5.64e-06/0.2784, allocations: 4 kB / 0.9533 GB, free: 5.891 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.373e-06/0.2784, allocations: 0 / 0.9533 GB, free: 5.891 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 4.007e-06/0.2784, allocations: 0 / 0.9533 GB, free: 5.891 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.0004647/0.2789, allocations: 0.5084 MB / 0.9538 GB, free: 5.324 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.444e-05/0.2789, allocations: 12.03 kB / 0.9538 GB, free: 5.312 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.622e-05/0.279, allocations: 20.75 kB / 0.9538 GB, free: 5.293 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001102/0.2792, allocations: 172.2 kB / 0.954 GB, free: 5.086 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.559e-05/0.2792, allocations: 4.375 kB / 0.954 GB, free: 5.082 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.273e-05/0.2792, allocations: 4.375 kB / 0.954 GB, free: 5.078 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002565/0.2795, allocations: 246.1 kB / 0.9542 GB, free: 4.832 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.362e-06/0.2795, allocations: 192 / 0.9542 GB, free: 4.832 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.219e-05/0.2795, allocations: 3.938 kB / 0.9542 GB, free: 4.828 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.018e-06/0.2795, allocations: 0 / 0.9542 GB, free: 4.828 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001432/0.2796, allocations: 144 kB / 0.9543 GB, free: 4.688 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001638/0.2798, allocations: 197.4 kB / 0.9545 GB, free: 4.445 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003776/0.2802, allocations: 0.5376 MB / 0.9551 GB, free: 3.898 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003753/0.2806, allocations: 0.5203 MB / 0.9556 GB, free: 3.375 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 7.394e-06/0.2806, allocations: 3.938 kB / 0.9556 GB, free: 3.371 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003448/0.2809, allocations: 395.7 kB / 0.9559 GB, free: 2.957 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=39): time 1.222e-06/0.281, allocations: 0 / 0.9559 GB, free: 2.957 MB / 0.7325 GB Notification: Performance of matching and sorting (n=39): time 0.000716/0.2817, allocations: 0.6931 MB / 0.9566 GB, free: 2.254 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.167e-05/0.2818, allocations: 109.1 kB / 0.9567 GB, free: 2.129 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.033e-05/0.2819, allocations: 101.8 kB / 0.9568 GB, free: 2.02 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.529e-05/0.2819, allocations: 29.64 kB / 0.9569 GB, free: 1.984 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 3.13e-05/0.2819, allocations: 80.8 kB / 0.9569 GB, free: 1.898 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 5.604e-05/0.282, allocations: 71.06 kB / 0.957 GB, free: 1.828 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.704e-05/0.282, allocations: 37.7 kB / 0.957 GB, free: 1.785 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001174/0.2822, allocations: 326.8 kB / 0.9573 GB, free: 1.457 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.132e-05/0.2823, allocations: 87.92 kB / 0.9574 GB, free: 1.371 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.152e-05/0.2823, allocations: 83.97 kB / 0.9575 GB, free: 1.289 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002765/0.2826, allocations: 349.4 kB / 0.9578 GB, free: 0.9336 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/0.2826, allocations: 0 / 0.9578 GB, free: 0.9336 MB / 0.7325 GB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003306/0.283, allocations: 336.1 kB / 0.9582 GB, free: 0.5938 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 7.25e-05/0.283, allocations: 87.77 kB / 0.9582 GB, free: 0.5039 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.398e-06/0.2831, allocations: 0 / 0.9582 GB, free: 0.5039 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.207e-05/0.2831, allocations: 0 / 0.9582 GB, free: 0.5039 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.768e-05/0.2831, allocations: 8.125 kB / 0.9583 GB, free: 0.4961 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.459e-06/0.2831, allocations: 0 / 0.9583 GB, free: 0.4961 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.516e-05/0.2832, allocations: 23.84 kB / 0.9583 GB, free: 484 kB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.874e-05/0.2833, allocations: 8 kB / 0.9583 GB, free: 476 kB / 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.0002273/0.2835, allocations: 269.7 kB / 0.9585 GB, free: 188 kB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.982e-05/0.2835, allocations: 27.73 kB / 0.9586 GB, free: 160 kB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.425e-05/0.2836, allocations: 9.219 kB / 0.9586 GB, free: 148 kB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.231e-05/0.2836, allocations: 4 kB / 0.9586 GB, free: 144 kB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.347e-06/0.2836, allocations: 0 / 0.9586 GB, free: 144 kB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.275e-06/0.2836, allocations: 0 / 0.9586 GB, free: 144 kB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001876/0.2838, allocations: 249.4 kB / 0.9588 GB, free: 15.85 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/0.2838, allocations: 0 / 0.9588 GB, free: 15.85 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.91e-07/0.2838, allocations: 4 kB / 0.9588 GB, free: 15.84 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.955e-06/0.2838, allocations: 3.938 kB / 0.9588 GB, free: 15.84 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.304e-05/0.2838, allocations: 11.98 kB / 0.9588 GB, free: 15.83 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.031e-06/0.2838, allocations: 0 / 0.9588 GB, free: 15.83 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.61e-07/0.2838, allocations: 0 / 0.9588 GB, free: 15.83 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001152/0.285, allocations: 1.283 MB / 0.9601 GB, free: 14.52 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 4.449e-05/0.2851, allocations: 100.8 kB / 0.9602 GB, free: 14.4 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.159e-05/0.2852, allocations: 71.89 kB / 0.9603 GB, free: 14.33 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.098e-05/0.2852, allocations: 12.03 kB / 0.9603 GB, free: 14.32 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.182e-05/0.2853, allocations: 15.92 kB / 0.9603 GB, free: 14.3 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.169e-05/0.2853, allocations: 8 kB / 0.9603 GB, free: 14.3 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 3.425e-05/0.2854, allocations: 87.27 kB / 0.9604 GB, free: 14.21 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.51e-07/0.2854, allocations: 0 / 0.9604 GB, free: 14.21 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0002772/0.2856, allocations: 64 kB / 0.9604 GB, free: 14.15 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.0003945/0.286, allocations: 241.1 kB / 0.9607 GB, free: 13.92 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.001502/0.2876, allocations: 1.964 MB / 0.9626 GB, free: 11.95 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.2876, allocations: 4 kB / 0.9626 GB, free: 11.94 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.001358/0.2889, allocations: 2.015 MB / 0.9646 GB, free: 9.914 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000221/0.2892, allocations: 19.98 kB / 0.9646 GB, free: 9.895 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004861/0.2897, allocations: 331.5 kB / 0.9649 GB, free: 9.547 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002892/0.29, allocations: 0.7204 MB / 0.9656 GB, free: 8.797 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 1.362e-05/0.29, allocations: 0 / 0.9656 GB, free: 8.797 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.066e-05/0.29, allocations: 7.438 kB / 0.9656 GB, free: 8.789 MB / 0.7481 GB Notification: Performance of SimCode: time 3.91e-07/0.29, allocations: 0 / 0.9656 GB, free: 8.789 MB / 0.7481 GB Notification: Performance of Templates: time 0.00523/0.2952, allocations: 2.636 MB / 0.9682 GB, free: 6.16 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 -s cvode -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