Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan.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.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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.Residential.Heating.Validation.Nicol2001HeatingPakistan,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|hea.TOut|hea.occ|hea.on",fileNamePrefix="Buildings_10_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan") translateModel(Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|hea.TOut|hea.occ|hea.on",fileNamePrefix="Buildings_10_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001265/0.001265, allocations: 86.56 kB / 15.06 MB, free: 1.09 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.001817/0.001817, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.54/1.54, allocations: 223.2 MB / 240 MB, free: 5.422 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.754/2.754, allocations: 437.7 MB / 0.7117 GB, free: 7.137 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003943/0.0003943, allocations: 12 kB / 0.8722 GB, free: 3.711 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7632/0.7636, allocations: 153.8 MB / 1.022 GB, free: 84 kB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan): time 0.001696/0.7654, allocations: 1.184 MB / 1.024 GB, free: 14.89 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.001205/0.7666, allocations: 0.6784 MB / 1.024 GB, free: 14.21 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.325e-05/0.7667, allocations: 4 kB / 1.024 GB, free: 14.21 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 2.119e-05/0.7667, allocations: 7.922 kB / 1.024 GB, free: 14.2 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 6.948e-05/0.7668, allocations: 7.938 kB / 1.024 GB, free: 14.19 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004617/0.7672, allocations: 95.77 kB / 1.024 GB, free: 14.1 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0001032/0.7674, allocations: 67.77 kB / 1.024 GB, free: 14.03 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 8.212e-05/0.7674, allocations: 11.98 kB / 1.024 GB, free: 14.02 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 7.341e-05/0.7675, allocations: 27.92 kB / 1.024 GB, free: 13.99 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 7.054e-05/0.7676, allocations: 43.81 kB / 1.024 GB, free: 13.95 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.574e-05/0.7676, allocations: 4 kB / 1.024 GB, free: 13.95 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001662/0.7678, allocations: 79.88 kB / 1.025 GB, free: 13.87 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 2.392e-05/0.7678, allocations: 15.97 kB / 1.025 GB, free: 13.85 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 4.766e-05/0.7679, allocations: 37.62 kB / 1.025 GB, free: 13.81 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0001558/0.768, allocations: 101.8 kB / 1.025 GB, free: 13.71 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 5.561e-06/0.7681, allocations: 0 / 1.025 GB, free: 13.71 MB / 0.7794 GB Notification: Performance of FrontEnd: time 4.929e-06/0.7681, allocations: 0 / 1.025 GB, free: 13.71 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 4.147e-06/0.7681, allocations: 3.938 kB / 1.025 GB, free: 13.71 MB / 0.7794 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0005958/0.7687, allocations: 408.8 kB / 1.025 GB, free: 13.25 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.625e-05/0.7687, allocations: 8.562 kB / 1.025 GB, free: 13.25 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.344e-05/0.7688, allocations: 11.89 kB / 1.025 GB, free: 13.23 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001238/0.7689, allocations: 170.9 kB / 1.025 GB, free: 13.03 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.907e-05/0.7689, allocations: 8 kB / 1.025 GB, free: 13.02 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.746e-05/0.769, allocations: 11.89 kB / 1.025 GB, free: 13.01 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001736/0.7691, allocations: 69.66 kB / 1.025 GB, free: 12.93 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.512e-06/0.7692, allocations: 0 / 1.025 GB, free: 12.93 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.281e-05/0.7692, allocations: 3.984 kB / 1.025 GB, free: 12.93 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.293e-06/0.7692, allocations: 4 kB / 1.025 GB, free: 12.93 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001364/0.7693, allocations: 47.91 kB / 1.025 GB, free: 12.88 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006151/0.77, allocations: 316.7 kB / 1.026 GB, free: 12.52 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001347/0.7701, allocations: 54.55 kB / 1.026 GB, free: 12.46 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.021e-05/0.7702, allocations: 36.97 kB / 1.026 GB, free: 12.42 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.263e-05/0.7702, allocations: 4 kB / 1.026 GB, free: 12.41 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002076/0.7704, allocations: 83.38 kB / 1.026 GB, free: 12.32 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=7): time 1.463e-06/0.7705, allocations: 0 / 1.026 GB, free: 12.32 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7): time 0.0004275/0.7709, allocations: 149.8 kB / 1.026 GB, free: 12.17 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.407e-05/0.7709, allocations: 51.41 kB / 1.026 GB, free: 12.11 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.489e-05/0.771, allocations: 121.8 kB / 1.026 GB, free: 11.98 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 3.123e-05/0.7711, allocations: 25.7 kB / 1.026 GB, free: 11.95 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 5.673e-05/0.7711, allocations: 92.33 kB / 1.026 GB, free: 11.85 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.071e-05/0.7712, allocations: 19.73 kB / 1.026 GB, free: 11.83 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.217e-06/0.7712, allocations: 4 kB / 1.026 GB, free: 11.83 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001241/0.7713, allocations: 326.7 kB / 1.027 GB, free: 11.5 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.019e-05/0.7714, allocations: 27.98 kB / 1.027 GB, free: 11.47 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.792e-05/0.7715, allocations: 50.55 kB / 1.027 GB, free: 11.41 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.397e-05/0.7716, allocations: 48.03 kB / 1.027 GB, free: 11.37 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.7716, allocations: 0 / 1.027 GB, free: 11.37 MB / 0.7794 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002217/0.7718, allocations: 113.5 kB / 1.027 GB, free: 11.25 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.332e-05/0.7719, allocations: 4 kB / 1.027 GB, free: 11.25 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.22e-06/0.7719, allocations: 0 / 1.027 GB, free: 11.25 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.236e-05/0.7719, allocations: 4 kB / 1.027 GB, free: 11.24 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001046/0.772, allocations: 20.05 kB / 1.027 GB, free: 11.22 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.506e-06/0.772, allocations: 0 / 1.027 GB, free: 11.22 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.489e-05/0.7721, allocations: 19.78 kB / 1.027 GB, free: 11.2 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.06e-05/0.7721, allocations: 0 / 1.027 GB, free: 11.2 MB / 0.7794 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 9 (hea.occ,$PRE.hea.on,hea.on,$PRE.hea.p,hea.p,$PRE.hea.curSeed,hea.curSeed,$whenCondition1,hea.sampleTrigger) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.803e-05/0.7722, allocations: 125.4 kB / 1.027 GB, free: 11.07 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.261e-05/0.7722, allocations: 4 kB / 1.027 GB, free: 11.07 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.702e-05/0.7723, allocations: 12.36 kB / 1.027 GB, free: 11.05 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.753e-06/0.7723, allocations: 0 / 1.027 GB, free: 11.05 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.506e-06/0.7723, allocations: 4 kB / 1.027 GB, free: 11.05 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.594e-06/0.7723, allocations: 0 / 1.027 GB, free: 11.05 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004466/0.7727, allocations: 394.3 kB / 1.027 GB, free: 10.61 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.7728, allocations: 0 / 1.027 GB, free: 10.61 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.018e-05/0.7728, allocations: 8 kB / 1.027 GB, free: 10.6 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.405e-06/0.7728, allocations: 0 / 1.027 GB, free: 10.6 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.067e-05/0.7728, allocations: 11.92 kB / 1.027 GB, free: 10.59 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.795e-06/0.7728, allocations: 4 kB / 1.027 GB, free: 10.59 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.92e-07/0.7728, allocations: 0 / 1.027 GB, free: 10.59 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00027/0.7731, allocations: 207.4 kB / 1.028 GB, free: 10.37 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.3e-05/0.7732, allocations: 81.11 kB / 1.028 GB, free: 10.27 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.129e-05/0.7732, allocations: 15.92 kB / 1.028 GB, free: 10.25 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.453e-05/0.7733, allocations: 4 kB / 1.028 GB, free: 10.25 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.293e-05/0.7733, allocations: 11.92 kB / 1.028 GB, free: 10.24 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.999e-06/0.7733, allocations: 4 kB / 1.028 GB, free: 10.23 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 4.846e-05/0.7734, allocations: 91.27 kB / 1.028 GB, free: 10.14 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.2e-07/0.7734, allocations: 0 / 1.028 GB, free: 10.14 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002922/0.7737, allocations: 39.94 kB / 1.028 GB, free: 10.11 MB / 0.7794 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 6 (hea.sampleTrigger,$whenCondition1,hea.occ,hea.on,hea.p,hea.curSeed) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003274/0.774, allocations: 164.9 kB / 1.028 GB, free: 9.949 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002236/0.7743, allocations: 76.12 kB / 1.028 GB, free: 9.875 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.804e-06/0.7743, allocations: 0 / 1.028 GB, free: 9.875 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001117/0.7744, allocations: 48.25 kB / 1.028 GB, free: 9.828 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002461/0.7747, allocations: 11.88 kB / 1.028 GB, free: 9.816 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003815/0.775, allocations: 211.1 kB / 1.028 GB, free: 9.578 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000244/0.7753, allocations: 0.6888 MB / 1.029 GB, free: 8.863 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 4.28e-05/0.7754, allocations: 12.16 kB / 1.029 GB, free: 8.852 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.652e-05/0.7754, allocations: 15.38 kB / 1.029 GB, free: 8.836 MB / 0.7794 GB Notification: Performance of SimCode: time 3.31e-07/0.7754, allocations: 0 / 1.029 GB, free: 8.836 MB / 0.7794 GB Notification: Performance of Templates: time 0.004017/0.7794, allocations: 1.333 MB / 1.03 GB, free: 7.512 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan.makefile (rm -f Buildings_10_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan.pipe ; mkfifo Buildings_10_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan.pipe ; head -c 1048576 < Buildings_10_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan.pipe >> ../files/Buildings_10_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan.sim & ./Buildings_10_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Occupants_Residential_Heating_Validation_Nicol2001HeatingPakistan.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,hea.TOut,hea.occ,hea.on Variables in the result:TOut.amplitude,TOut.f,TOut.offset,TOut.phase,TOut.startTime,hea.A,hea.B,hea.TOut,hea.occ,hea.on,hea.samplePeriod,hea.seed,hea.t0,occ.startTime,occ.startValue,time