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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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.001951/0.001951, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.002161/0.002162, allocations: 190.9 kB / 16.25 MB, free: 6.633 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.449/1.449, allocations: 222.9 MB / 239.9 MB, free: 4.559 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.94/2.94, allocations: 472.6 MB / 0.7448 GB, free: 4.941 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001262/0.001263, allocations: 63.86 kB / 0.9116 GB, free: 33.56 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3405/0.3418, allocations: 159.9 MB / 1.068 GB, free: 10.81 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy): time 0.00271/0.3446, allocations: 1.377 MB / 1.069 GB, free: 9.422 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0008112/0.3454, allocations: 350.9 kB / 1.069 GB, free: 9.078 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.468e-05/0.3454, allocations: 4 kB / 1.069 GB, free: 9.074 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0001051/0.3456, allocations: 0 / 1.069 GB, free: 9.074 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 3.245e-05/0.3456, allocations: 15.91 kB / 1.069 GB, free: 9.059 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004549/0.3461, allocations: 79.86 kB / 1.069 GB, free: 8.98 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001101/0.3462, allocations: 51.92 kB / 1.07 GB, free: 8.93 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 4.128e-05/0.3462, allocations: 0 / 1.07 GB, free: 8.93 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 3.669e-05/0.3463, allocations: 27.91 kB / 1.07 GB, free: 8.902 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 5.441e-05/0.3463, allocations: 19.92 kB / 1.07 GB, free: 8.883 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.45e-05/0.3464, allocations: 4 kB / 1.07 GB, free: 8.879 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001789/0.3465, allocations: 79.84 kB / 1.07 GB, free: 8.801 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 4.419e-05/0.3466, allocations: 27.92 kB / 1.07 GB, free: 8.773 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 6.747e-05/0.3467, allocations: 55.67 kB / 1.07 GB, free: 8.719 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002357/0.3469, allocations: 155.5 kB / 1.07 GB, free: 8.566 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.969e-06/0.3469, allocations: 0 / 1.07 GB, free: 8.566 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.653e-06/0.3469, allocations: 0 / 1.07 GB, free: 8.566 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 6.282e-06/0.3469, allocations: 4 kB / 1.07 GB, free: 8.562 MB / 0.8262 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.0005421/0.3475, allocations: 0.5086 MB / 1.07 GB, free: 7.996 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.278e-05/0.3475, allocations: 8.031 kB / 1.07 GB, free: 7.988 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.972e-05/0.3476, allocations: 12.84 kB / 1.07 GB, free: 7.977 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001265/0.3478, allocations: 188.2 kB / 1.071 GB, free: 7.754 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.144e-05/0.3478, allocations: 4.375 kB / 1.071 GB, free: 7.75 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.715e-05/0.3478, allocations: 384 / 1.071 GB, free: 7.75 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000293/0.3481, allocations: 244 kB / 1.071 GB, free: 7.508 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.288e-06/0.3481, allocations: 192 / 1.071 GB, free: 7.508 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.602e-05/0.3482, allocations: 11.94 kB / 1.071 GB, free: 7.496 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.218e-06/0.3482, allocations: 0 / 1.071 GB, free: 7.496 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001573/0.3483, allocations: 147.9 kB / 1.071 GB, free: 7.352 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001819/0.3485, allocations: 189.5 kB / 1.071 GB, free: 7.117 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000396/0.3489, allocations: 0.534 MB / 1.072 GB, free: 6.574 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003795/0.3493, allocations: 0.5245 MB / 1.072 GB, free: 6.047 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 7.915e-06/0.3493, allocations: 0 / 1.072 GB, free: 6.047 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004304/0.3498, allocations: 399.7 kB / 1.073 GB, free: 5.633 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=39): time 1.072e-06/0.3498, allocations: 3.938 kB / 1.073 GB, free: 5.629 MB / 0.8262 GB Notification: Performance of matching and sorting (n=39): time 0.000812/0.3506, allocations: 0.6928 MB / 1.073 GB, free: 4.926 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.179e-05/0.3507, allocations: 105.1 kB / 1.073 GB, free: 4.805 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.601e-05/0.3508, allocations: 101.8 kB / 1.073 GB, free: 4.695 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.909e-05/0.3508, allocations: 29.7 kB / 1.073 GB, free: 4.66 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 3.789e-05/0.3508, allocations: 84.8 kB / 1.074 GB, free: 4.574 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 6.517e-05/0.3509, allocations: 71 kB / 1.074 GB, free: 4.504 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.256e-05/0.351, allocations: 37.73 kB / 1.074 GB, free: 4.461 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001442/0.3511, allocations: 326.8 kB / 1.074 GB, free: 4.133 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.866e-05/0.3512, allocations: 83.97 kB / 1.074 GB, free: 4.051 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.996e-05/0.3513, allocations: 83.97 kB / 1.074 GB, free: 3.969 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003185/0.3516, allocations: 349.4 kB / 1.074 GB, free: 3.613 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.894e-06/0.3517, allocations: 0 / 1.074 GB, free: 3.613 MB / 0.8262 GB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003499/0.352, allocations: 340.1 kB / 1.075 GB, free: 3.266 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 7.678e-05/0.3521, allocations: 81.58 kB / 1.075 GB, free: 3.18 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.34e-06/0.3521, allocations: 64 / 1.075 GB, free: 3.18 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.519e-05/0.3521, allocations: 4 kB / 1.075 GB, free: 3.176 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.45e-05/0.3522, allocations: 3.938 kB / 1.075 GB, free: 3.172 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.007e-05/0.3522, allocations: 7.984 kB / 1.075 GB, free: 3.164 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001042/0.3523, allocations: 23.69 kB / 1.075 GB, free: 3.141 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.703e-05/0.3523, allocations: 4 kB / 1.075 GB, free: 3.137 MB / 0.8262 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.0002498/0.3526, allocations: 269.7 kB / 1.075 GB, free: 2.859 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.048e-05/0.3526, allocations: 23.84 kB / 1.075 GB, free: 2.836 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.136e-05/0.3527, allocations: 9.203 kB / 1.075 GB, free: 2.832 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.543e-06/0.3527, allocations: 0 / 1.075 GB, free: 2.832 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.757e-06/0.3527, allocations: 4 kB / 1.075 GB, free: 2.828 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.054e-06/0.3527, allocations: 0 / 1.075 GB, free: 2.828 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001777/0.3529, allocations: 249.3 kB / 1.075 GB, free: 2.535 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.42e-07/0.3529, allocations: 0 / 1.075 GB, free: 2.535 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.71e-07/0.3529, allocations: 0 / 1.075 GB, free: 2.535 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.671e-06/0.3529, allocations: 7.938 kB / 1.075 GB, free: 2.527 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.558e-05/0.3529, allocations: 15.98 kB / 1.075 GB, free: 2.512 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.142e-06/0.3529, allocations: 0 / 1.075 GB, free: 2.512 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.3529, allocations: 0 / 1.075 GB, free: 2.512 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001188/0.3541, allocations: 1.283 MB / 1.077 GB, free: 1.203 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.665e-05/0.3542, allocations: 92.95 kB / 1.077 GB, free: 1.094 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000108/0.3543, allocations: 79.88 kB / 1.077 GB, free: 1.016 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.511e-05/0.3544, allocations: 8 kB / 1.077 GB, free: 1.008 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.735e-05/0.3544, allocations: 11.98 kB / 1.077 GB, free: 0.9961 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.302e-05/0.3544, allocations: 12 kB / 1.077 GB, free: 0.9844 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 3.316e-05/0.3545, allocations: 79.28 kB / 1.077 GB, free: 0.9062 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.5e-07/0.3545, allocations: 0 / 1.077 GB, free: 0.9062 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.000297/0.3548, allocations: 71.98 kB / 1.077 GB, free: 0.8359 MB / 0.8262 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.0004156/0.3552, allocations: 256.2 kB / 1.077 GB, free: 0.5898 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.001548/0.3568, allocations: 1.968 MB / 1.079 GB, free: 14.61 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.3568, allocations: 3.938 kB / 1.079 GB, free: 14.6 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.001433/0.3582, allocations: 2.015 MB / 1.081 GB, free: 12.57 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002215/0.3584, allocations: 16 kB / 1.081 GB, free: 12.56 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005235/0.359, allocations: 363.3 kB / 1.082 GB, free: 12.18 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002971/0.3593, allocations: 0.7166 MB / 1.082 GB, free: 11.43 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 1.624e-05/0.3593, allocations: 4 kB / 1.082 GB, free: 11.43 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.226e-05/0.3593, allocations: 11.44 kB / 1.082 GB, free: 11.41 MB / 0.8419 GB Notification: Performance of SimCode: time 3.4e-07/0.3593, allocations: 0 / 1.082 GB, free: 11.41 MB / 0.8419 GB Notification: Performance of Templates: time 0.005335/0.3647, allocations: 2.607 MB / 1.085 GB, free: 8.812 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/jenkins/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