Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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_latest_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_latest_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.001636/0.001636, allocations: 112.4 kB / 15.99 MB, free: 5.91 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.001844/0.001844, allocations: 197.1 kB / 16.91 MB, free: 5.754 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.314/1.314, allocations: 222.9 MB / 240.6 MB, free: 13.71 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.525/2.525, allocations: 469.4 MB / 0.7423 GB, free: 3.855 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001336/0.001336, allocations: 68.31 kB / 0.9083 GB, free: 14.52 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2836/0.2849, allocations: 159.1 MB / 1.064 GB, free: 15.41 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy): time 0.002495/0.2875, allocations: 1.385 MB / 1.065 GB, free: 14.01 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.000702/0.2882, allocations: 354.9 kB / 1.065 GB, free: 13.66 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.82e-05/0.2882, allocations: 4 kB / 1.065 GB, free: 13.66 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 7.618e-05/0.2883, allocations: 4 kB / 1.065 GB, free: 13.66 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 2.878e-05/0.2884, allocations: 3.938 kB / 1.065 GB, free: 13.65 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.000422/0.2888, allocations: 71.86 kB / 1.065 GB, free: 13.58 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0001051/0.2889, allocations: 63.89 kB / 1.066 GB, free: 13.52 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 3.618e-05/0.289, allocations: 8 kB / 1.066 GB, free: 13.51 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 3.139e-05/0.289, allocations: 19.92 kB / 1.066 GB, free: 13.49 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 4.691e-05/0.2891, allocations: 19.92 kB / 1.066 GB, free: 13.47 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 1.31e-05/0.2891, allocations: 4 kB / 1.066 GB, free: 13.47 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001634/0.2892, allocations: 75.86 kB / 1.066 GB, free: 13.39 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 4.426e-05/0.2893, allocations: 27.91 kB / 1.066 GB, free: 13.37 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 5.929e-05/0.2894, allocations: 51.67 kB / 1.066 GB, free: 13.32 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0001694/0.2895, allocations: 111.8 kB / 1.066 GB, free: 13.21 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/0.2896, allocations: 4 kB / 1.066 GB, free: 13.2 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.333e-06/0.2896, allocations: 4 kB / 1.066 GB, free: 13.2 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 5.29e-06/0.2896, allocations: 0 / 1.066 GB, free: 13.2 MB / 0.8419 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.0004984/0.2901, allocations: 0.5125 MB / 1.066 GB, free: 12.63 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.514e-05/0.2901, allocations: 12.62 kB / 1.066 GB, free: 12.62 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001117/0.2902, allocations: 16.83 kB / 1.066 GB, free: 12.6 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001256/0.2904, allocations: 172.2 kB / 1.067 GB, free: 12.39 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.641e-05/0.2904, allocations: 8.375 kB / 1.067 GB, free: 12.39 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.675e-05/0.2904, allocations: 4.375 kB / 1.067 GB, free: 12.38 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002749/0.2907, allocations: 246.2 kB / 1.067 GB, free: 12.14 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.974e-06/0.2907, allocations: 192 / 1.067 GB, free: 12.14 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.376e-05/0.2907, allocations: 3.938 kB / 1.067 GB, free: 12.13 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.958e-06/0.2907, allocations: 0 / 1.067 GB, free: 12.13 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001435/0.2909, allocations: 147.9 kB / 1.067 GB, free: 11.99 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001747/0.2911, allocations: 193.5 kB / 1.067 GB, free: 11.75 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003908/0.2915, allocations: 0.534 MB / 1.068 GB, free: 11.21 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003646/0.2918, allocations: 0.5207 MB / 1.068 GB, free: 10.68 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 7.925e-06/0.2919, allocations: 4 kB / 1.068 GB, free: 10.68 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000398/0.2923, allocations: 395.7 kB / 1.069 GB, free: 10.27 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=39): time 1.483e-06/0.2923, allocations: 0 / 1.069 GB, free: 10.27 MB / 0.8419 GB Notification: Performance of matching and sorting (n=39): time 0.0007541/0.293, allocations: 0.6967 MB / 1.069 GB, free: 9.562 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.051e-05/0.2931, allocations: 105.1 kB / 1.069 GB, free: 9.441 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.225e-05/0.2932, allocations: 97.86 kB / 1.069 GB, free: 9.336 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 1.581e-05/0.2932, allocations: 25.7 kB / 1.069 GB, free: 9.305 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 4.154e-05/0.2933, allocations: 88.81 kB / 1.07 GB, free: 9.215 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 6.339e-05/0.2933, allocations: 75 kB / 1.07 GB, free: 9.141 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.265e-05/0.2934, allocations: 37.7 kB / 1.07 GB, free: 9.098 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001112/0.2935, allocations: 326.8 kB / 1.07 GB, free: 8.77 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.937e-05/0.2936, allocations: 83.92 kB / 1.07 GB, free: 8.688 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.807e-05/0.2937, allocations: 79.97 kB / 1.07 GB, free: 8.609 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003071/0.294, allocations: 361.3 kB / 1.07 GB, free: 8.242 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.294, allocations: 0 / 1.07 GB, free: 8.242 MB / 0.8419 GB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003577/0.2944, allocations: 332.1 kB / 1.071 GB, free: 7.906 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 8.518e-05/0.2945, allocations: 89.64 kB / 1.071 GB, free: 7.812 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.368e-06/0.2945, allocations: 0 / 1.071 GB, free: 7.812 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.131e-05/0.2945, allocations: 0 / 1.071 GB, free: 7.812 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.045e-05/0.2946, allocations: 4 kB / 1.071 GB, free: 7.809 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.59e-06/0.2946, allocations: 0 / 1.071 GB, free: 7.809 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001075/0.2947, allocations: 27.67 kB / 1.071 GB, free: 7.781 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.867e-05/0.2947, allocations: 8 kB / 1.071 GB, free: 7.773 MB / 0.8419 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.0002458/0.295, allocations: 267.9 kB / 1.071 GB, free: 7.5 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.719e-05/0.295, allocations: 19.84 kB / 1.071 GB, free: 7.48 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.191e-05/0.295, allocations: 9.219 kB / 1.071 GB, free: 7.473 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.403e-06/0.295, allocations: 4 kB / 1.071 GB, free: 7.469 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/0.295, allocations: 0 / 1.071 GB, free: 7.469 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.204e-06/0.2951, allocations: 3.938 kB / 1.071 GB, free: 7.465 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001765/0.2952, allocations: 249.3 kB / 1.071 GB, free: 7.172 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.224e-06/0.2952, allocations: 0 / 1.071 GB, free: 7.172 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.953e-06/0.2952, allocations: 3.938 kB / 1.071 GB, free: 7.168 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.138e-06/0.2953, allocations: 7.875 kB / 1.071 GB, free: 7.16 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.416e-05/0.2953, allocations: 11.98 kB / 1.071 GB, free: 7.148 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.433e-06/0.2953, allocations: 0 / 1.071 GB, free: 7.148 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.2953, allocations: 0 / 1.071 GB, free: 7.148 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001187/0.2965, allocations: 1.283 MB / 1.073 GB, free: 5.84 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 5.181e-05/0.2965, allocations: 92.86 kB / 1.073 GB, free: 5.73 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001023/0.2967, allocations: 83.89 kB / 1.073 GB, free: 5.648 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.611e-05/0.2967, allocations: 4 kB / 1.073 GB, free: 5.645 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.987e-05/0.2968, allocations: 7.984 kB / 1.073 GB, free: 5.637 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.39e-05/0.2968, allocations: 15.98 kB / 1.073 GB, free: 5.621 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 4.624e-05/0.2969, allocations: 83.28 kB / 1.073 GB, free: 5.539 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.5e-07/0.2969, allocations: 4.031 kB / 1.073 GB, free: 5.535 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0002957/0.2972, allocations: 68 kB / 1.073 GB, free: 5.469 MB / 0.8419 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.0004164/0.2976, allocations: 255.9 kB / 1.073 GB, free: 5.227 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.001533/0.2991, allocations: 1.964 MB / 1.075 GB, free: 3.25 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.2992, allocations: 0 / 1.075 GB, free: 3.25 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.001373/0.3005, allocations: 2.015 MB / 1.077 GB, free: 1.223 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002372/0.3008, allocations: 23.12 kB / 1.077 GB, free: 1.203 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005382/0.3013, allocations: 381.2 kB / 1.078 GB, free: 0.7969 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002703/0.3016, allocations: 0.7205 MB / 1.078 GB, free: 48 kB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.073e-05/0.3016, allocations: 7.438 kB / 1.078 GB, free: 44 kB / 0.8419 GB Notification: Performance of SimCode: time 3.5e-07/0.3016, allocations: 0 / 1.078 GB, free: 44 kB / 0.8419 GB Notification: Performance of Templates: time 0.4245/0.7262, allocations: 2.429 MB / 1.081 GB, free: 23.11 MB / 0.8419 GB make -j1 -f Buildings_latest_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy.makefile (rm -f Buildings_latest_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy.pipe ; mkfifo Buildings_latest_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy.pipe ; head -c 1048576 < Buildings_latest_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy.pipe >> ../files/Buildings_latest_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy.sim & ./Buildings_latest_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Occupants_Office_Occupancy_Validation_Wang2005Occupancy.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches