Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_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_10_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.001517/0.001518, allocations: 102.2 kB / 16.27 MB, free: 6 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.001689/0.001689, allocations: 191 kB / 17.2 MB, free: 5.609 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.477/1.477, allocations: 222.9 MB / 240.9 MB, free: 15.27 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.493/2.493, allocations: 437 MB / 0.711 GB, free: 4.551 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001272/0.001272, allocations: 68.14 kB / 0.8699 GB, free: 2.273 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2627/0.264, allocations: 151.6 MB / 1.018 GB, free: 10.72 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy): time 0.002563/0.2666, allocations: 1.32 MB / 1.019 GB, free: 9.391 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.0007629/0.2674, allocations: 356.4 kB / 1.02 GB, free: 9.043 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.293e-05/0.2674, allocations: 0 / 1.02 GB, free: 9.043 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 9.058e-05/0.2676, allocations: 3.938 kB / 1.02 GB, free: 9.039 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 2.721e-05/0.2676, allocations: 4 kB / 1.02 GB, free: 9.035 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.00049/0.2681, allocations: 95.7 kB / 1.02 GB, free: 8.941 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0001146/0.2682, allocations: 55.91 kB / 1.02 GB, free: 8.887 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 4.535e-05/0.2683, allocations: 4 kB / 1.02 GB, free: 8.883 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 3.766e-05/0.2683, allocations: 19.92 kB / 1.02 GB, free: 8.863 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 5.194e-05/0.2684, allocations: 23.91 kB / 1.02 GB, free: 8.84 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 1.426e-05/0.2684, allocations: 4 kB / 1.02 GB, free: 8.836 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001891/0.2686, allocations: 75.86 kB / 1.02 GB, free: 8.762 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 3.963e-05/0.2686, allocations: 31.91 kB / 1.02 GB, free: 8.73 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 5.73e-05/0.2687, allocations: 47.75 kB / 1.02 GB, free: 8.684 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0002348/0.269, allocations: 159.5 kB / 1.02 GB, free: 8.527 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 4.419e-06/0.269, allocations: 0 / 1.02 GB, free: 8.527 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.543e-06/0.269, allocations: 0 / 1.02 GB, free: 8.527 MB / 0.795 GB Notification: Performance of Transformations before backend: time 5.831e-06/0.269, allocations: 0 / 1.02 GB, free: 8.527 MB / 0.795 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.0005131/0.2695, allocations: 0.5202 MB / 1.021 GB, free: 7.949 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 3.503e-05/0.2695, allocations: 8.922 kB / 1.021 GB, free: 7.941 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001238/0.2697, allocations: 12.84 kB / 1.021 GB, free: 7.93 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001363/0.2698, allocations: 180.3 kB / 1.021 GB, free: 7.715 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.717e-05/0.2698, allocations: 8.359 kB / 1.021 GB, free: 7.707 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.892e-05/0.2699, allocations: 4.375 kB / 1.021 GB, free: 7.703 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000265/0.2701, allocations: 246.1 kB / 1.021 GB, free: 7.457 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.244e-06/0.2702, allocations: 192 / 1.021 GB, free: 7.457 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.339e-05/0.2702, allocations: 7.938 kB / 1.021 GB, free: 7.449 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.877e-06/0.2702, allocations: 0 / 1.021 GB, free: 7.449 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001415/0.2703, allocations: 144 kB / 1.021 GB, free: 7.309 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001631/0.2705, allocations: 193.4 kB / 1.021 GB, free: 7.07 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003682/0.2709, allocations: 0.5379 MB / 1.022 GB, free: 6.523 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003419/0.2712, allocations: 0.5222 MB / 1.022 GB, free: 6 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 5.33e-06/0.2712, allocations: 3.938 kB / 1.022 GB, free: 5.996 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003692/0.2716, allocations: 391.7 kB / 1.023 GB, free: 5.59 MB / 0.795 GB Notification: Performance of pre-optimization done (n=39): time 1.232e-06/0.2716, allocations: 0 / 1.023 GB, free: 5.59 MB / 0.795 GB Notification: Performance of matching and sorting (n=39): time 0.0007204/0.2723, allocations: 0.686 MB / 1.023 GB, free: 4.895 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.949e-05/0.2724, allocations: 109.1 kB / 1.024 GB, free: 4.77 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.71e-05/0.2725, allocations: 101.9 kB / 1.024 GB, free: 4.66 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 1.898e-05/0.2725, allocations: 29.64 kB / 1.024 GB, free: 4.625 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 2.65e-05/0.2726, allocations: 84.8 kB / 1.024 GB, free: 4.539 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 5.978e-05/0.2726, allocations: 74.94 kB / 1.024 GB, free: 4.465 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.978e-05/0.2727, allocations: 37.7 kB / 1.024 GB, free: 4.422 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001029/0.2728, allocations: 326.8 kB / 1.024 GB, free: 4.094 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.555e-05/0.2729, allocations: 79.97 kB / 1.024 GB, free: 4.016 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.996e-05/0.273, allocations: 87.92 kB / 1.024 GB, free: 3.93 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002849/0.2733, allocations: 352.1 kB / 1.025 GB, free: 3.57 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.777e-06/0.2733, allocations: 0 / 1.025 GB, free: 3.57 MB / 0.795 GB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003395/0.2736, allocations: 340.3 kB / 1.025 GB, free: 3.227 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 7.611e-05/0.2737, allocations: 81.58 kB / 1.025 GB, free: 3.141 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.284e-06/0.2737, allocations: 4 kB / 1.025 GB, free: 3.137 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.672e-05/0.2737, allocations: 0 / 1.025 GB, free: 3.137 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.573e-05/0.2738, allocations: 3.938 kB / 1.025 GB, free: 3.133 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.452e-06/0.2738, allocations: 0 / 1.025 GB, free: 3.133 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001004/0.2739, allocations: 23.77 kB / 1.025 GB, free: 3.109 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.786e-05/0.2739, allocations: 8 kB / 1.025 GB, free: 3.102 MB / 0.795 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.000229/0.2742, allocations: 276.1 kB / 1.025 GB, free: 2.82 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.485e-05/0.2742, allocations: 27.75 kB / 1.025 GB, free: 2.793 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.306e-05/0.2742, allocations: 5.219 kB / 1.025 GB, free: 2.785 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.164e-06/0.2743, allocations: 0 / 1.025 GB, free: 2.785 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.907e-06/0.2743, allocations: 0 / 1.025 GB, free: 2.785 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.054e-06/0.2743, allocations: 0 / 1.025 GB, free: 2.785 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001758/0.2744, allocations: 249.3 kB / 1.026 GB, free: 2.492 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.353e-06/0.2745, allocations: 0 / 1.026 GB, free: 2.492 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.21e-07/0.2745, allocations: 0 / 1.026 GB, free: 2.492 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.328e-06/0.2745, allocations: 3.938 kB / 1.026 GB, free: 2.488 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.303e-05/0.2745, allocations: 19.98 kB / 1.026 GB, free: 2.469 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.462e-06/0.2745, allocations: 0 / 1.026 GB, free: 2.469 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.425e-06/0.2745, allocations: 4 kB / 1.026 GB, free: 2.465 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001162/0.2757, allocations: 1.275 MB / 1.027 GB, free: 1.164 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 4.317e-05/0.2757, allocations: 96.86 kB / 1.027 GB, free: 1.051 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001039/0.2758, allocations: 75.89 kB / 1.027 GB, free: 0.9766 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.924e-05/0.2759, allocations: 8 kB / 1.027 GB, free: 0.9688 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.904e-05/0.276, allocations: 12.02 kB / 1.027 GB, free: 0.957 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.657e-05/0.276, allocations: 19.98 kB / 1.027 GB, free: 0.9375 MB / 0.795 GB Notification: Performance of sorting global known variables: time 3.46e-05/0.276, allocations: 79.45 kB / 1.027 GB, free: 0.8594 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.3e-07/0.276, allocations: 0 / 1.027 GB, free: 0.8594 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0003031/0.2764, allocations: 68 kB / 1.027 GB, free: 0.793 MB / 0.795 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.0004158/0.2768, allocations: 259.5 kB / 1.028 GB, free: 0.5508 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.001506/0.2783, allocations: 1.964 MB / 1.029 GB, free: 14.57 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.2783, allocations: 4.062 kB / 1.029 GB, free: 14.57 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.001352/0.2797, allocations: 2.011 MB / 1.031 GB, free: 12.54 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002343/0.2799, allocations: 21.88 kB / 1.031 GB, free: 12.52 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005431/0.2805, allocations: 361.2 kB / 1.032 GB, free: 12.14 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002597/0.2807, allocations: 0.7205 MB / 1.032 GB, free: 11.39 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.588e-05/0.2808, allocations: 7.438 kB / 1.032 GB, free: 11.38 MB / 0.8106 GB Notification: Performance of SimCode: time 1.913e-06/0.2808, allocations: 0 / 1.032 GB, free: 11.38 MB / 0.8106 GB Notification: Performance of Templates: time 0.004404/0.2852, allocations: 2.437 MB / 1.035 GB, free: 8.945 MB / 0.8106 GB make -j1 -f Buildings_10_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy.makefile (rm -f Buildings_10_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy.pipe ; mkfifo Buildings_10_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy.pipe ; head -c 1048576 < Buildings_10_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy.pipe >> ../files/Buildings_10_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy.sim & ./Buildings_10_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Occupants_Office_Occupancy_Validation_Wang2005Occupancy.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches