Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.Residential.Heating.Validation.Nicol2001HeatingPakistan,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|hea.TOut|hea.occ|hea.on",fileNamePrefix="Buildings_9_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_9_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.001431/0.001431, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001799/0.001799, allocations: 193.7 kB / 16.53 MB, free: 6.391 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.574/1.574, allocations: 222.9 MB / 240.2 MB, free: 4.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.441/2.441, allocations: 390.2 MB / 0.6647 GB, free: 412 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001397/0.001397, allocations: 55.91 kB / 0.8125 GB, free: 14.46 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7297/0.7311, allocations: 140.4 MB / 0.9496 GB, free: 9.238 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan): time 0.002739/0.7339, allocations: 1.469 MB / 0.951 GB, free: 8.078 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001275/0.7352, allocations: 0.7375 MB / 0.9517 GB, free: 7.504 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.38e-05/0.7352, allocations: 1.562 kB / 0.9517 GB, free: 7.504 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.828e-05/0.7353, allocations: 7.922 kB / 0.9517 GB, free: 7.496 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 5.685e-05/0.7354, allocations: 13.47 kB / 0.9518 GB, free: 7.484 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006832/0.736, allocations: 121.9 kB / 0.9519 GB, free: 7.398 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001155/0.7362, allocations: 71.28 kB / 0.9519 GB, free: 7.359 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001183/0.7363, allocations: 25.39 kB / 0.952 GB, free: 7.34 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 9.819e-05/0.7364, allocations: 34.92 kB / 0.952 GB, free: 7.32 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 7.899e-05/0.7365, allocations: 39.33 kB / 0.952 GB, free: 7.293 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.199e-05/0.7365, allocations: 9.688 kB / 0.952 GB, free: 7.289 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002076/0.7367, allocations: 98.97 kB / 0.9521 GB, free: 7.238 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.798e-05/0.7368, allocations: 19.06 kB / 0.9522 GB, free: 7.223 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.816e-05/0.7368, allocations: 26.55 kB / 0.9522 GB, free: 7.203 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002323/0.7371, allocations: 136.2 kB / 0.9523 GB, free: 7.117 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.089e-06/0.7371, allocations: 1.344 kB / 0.9523 GB, free: 7.117 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.503e-06/0.7371, allocations: 0 / 0.9523 GB, free: 7.117 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.082e-06/0.7371, allocations: 0 / 0.9523 GB, free: 7.117 MB / 0.7169 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.0006122/0.7377, allocations: 427.7 kB / 0.9527 GB, free: 6.676 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.955e-05/0.7378, allocations: 14.03 kB / 0.9527 GB, free: 6.672 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.758e-05/0.7378, allocations: 4.938 kB / 0.9527 GB, free: 6.672 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.991e-05/0.7379, allocations: 175.1 kB / 0.9529 GB, free: 6.465 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.577e-05/0.7379, allocations: 3.062 kB / 0.9529 GB, free: 6.465 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.899e-05/0.738, allocations: 8.281 kB / 0.9529 GB, free: 6.461 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001802/0.7382, allocations: 71.91 kB / 0.953 GB, free: 6.402 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.638e-06/0.7382, allocations: 0 / 0.953 GB, free: 6.402 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.241e-05/0.7382, allocations: 1.281 kB / 0.953 GB, free: 6.402 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.562e-06/0.7382, allocations: 1.219 kB / 0.953 GB, free: 6.402 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000135/0.7383, allocations: 40.31 kB / 0.953 GB, free: 6.383 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006864/0.739, allocations: 317.1 kB / 0.9533 GB, free: 6.055 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001478/0.7392, allocations: 53.67 kB / 0.9534 GB, free: 6.012 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.755e-05/0.7393, allocations: 38.81 kB / 0.9534 GB, free: 5.984 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 3.287e-05/0.7393, allocations: 1.406 kB / 0.9534 GB, free: 5.984 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002805/0.7396, allocations: 81.16 kB / 0.9535 GB, free: 5.91 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.683e-06/0.7396, allocations: 0 / 0.9535 GB, free: 5.91 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0004895/0.7401, allocations: 133.4 kB / 0.9536 GB, free: 5.836 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.546e-05/0.7402, allocations: 64.41 kB / 0.9537 GB, free: 5.762 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001111/0.7403, allocations: 121.3 kB / 0.9538 GB, free: 5.648 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.757e-05/0.7403, allocations: 27.17 kB / 0.9538 GB, free: 5.617 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.716e-05/0.7404, allocations: 90.73 kB / 0.9539 GB, free: 5.527 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.313e-05/0.7404, allocations: 10.59 kB / 0.9539 GB, free: 5.52 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.759e-05/0.7405, allocations: 33.64 kB / 0.954 GB, free: 5.488 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 9.158e-05/0.7406, allocations: 329.4 kB / 0.9543 GB, free: 5.16 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.497e-05/0.7407, allocations: 21.92 kB / 0.9543 GB, free: 5.152 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.622e-05/0.7408, allocations: 56.48 kB / 0.9543 GB, free: 5.105 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001746/0.741, allocations: 77.39 kB / 0.9544 GB, free: 5.051 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.195e-06/0.741, allocations: 1.344 kB / 0.9544 GB, free: 5.051 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002619/0.7412, allocations: 112.5 kB / 0.9545 GB, free: 4.98 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.097e-05/0.7413, allocations: 6.438 kB / 0.9545 GB, free: 4.98 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.584e-06/0.7413, allocations: 3.984 kB / 0.9545 GB, free: 4.977 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.384e-05/0.7413, allocations: 1.344 kB / 0.9545 GB, free: 4.977 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001112/0.7414, allocations: 11.7 kB / 0.9545 GB, free: 4.973 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.543e-06/0.7414, allocations: 1.375 kB / 0.9545 GB, free: 4.973 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.824e-05/0.7415, allocations: 12.5 kB / 0.9546 GB, free: 4.965 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.621e-05/0.7415, allocations: 6.453 kB / 0.9546 GB, free: 4.961 MB / 0.7169 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,hea.curSeed,$PRE.hea.curSeed,hea.p,$PRE.hea.p,hea.on,$PRE.hea.on,hea.sampleTrigger,$whenCondition1) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.69e-05/0.7416, allocations: 126.9 kB / 0.9547 GB, free: 4.832 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.969e-05/0.7417, allocations: 7.188 kB / 0.9547 GB, free: 4.828 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.954e-05/0.7417, allocations: 10.38 kB / 0.9547 GB, free: 4.82 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.988e-06/0.7417, allocations: 0.9688 kB / 0.9547 GB, free: 4.82 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.922e-06/0.7417, allocations: 0 / 0.9547 GB, free: 4.82 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.636e-06/0.7417, allocations: 1 kB / 0.9547 GB, free: 4.82 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004954/0.7422, allocations: 378.9 kB / 0.9551 GB, free: 4.453 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/0.7423, allocations: 4 kB / 0.9551 GB, free: 4.449 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.956e-05/0.7423, allocations: 15.64 kB / 0.9551 GB, free: 4.438 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.527e-06/0.7423, allocations: 1.375 kB / 0.9551 GB, free: 4.438 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.265e-05/0.7423, allocations: 0 / 0.9551 GB, free: 4.438 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.513e-06/0.7424, allocations: 1.094 kB / 0.9551 GB, free: 4.438 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.735e-06/0.7424, allocations: 3.938 kB / 0.9551 GB, free: 4.434 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003177/0.7427, allocations: 206.7 kB / 0.9553 GB, free: 4.266 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 4.376e-05/0.7427, allocations: 86.33 kB / 0.9554 GB, free: 4.164 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.609e-05/0.7428, allocations: 5.094 kB / 0.9554 GB, free: 4.16 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.248e-05/0.7429, allocations: 11.02 kB / 0.9554 GB, free: 4.152 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.371e-05/0.7429, allocations: 6.344 kB / 0.9554 GB, free: 4.148 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.216e-05/0.7429, allocations: 2.188 kB / 0.9554 GB, free: 4.148 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 6.068e-05/0.743, allocations: 92.33 kB / 0.9555 GB, free: 4.066 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1e-07/0.743, allocations: 0 / 0.9555 GB, free: 4.066 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003931/0.7434, allocations: 44.83 kB / 0.9555 GB, free: 4.051 MB / 0.7169 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 (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.0005042/0.7439, allocations: 166.5 kB / 0.9557 GB, free: 3.93 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002914/0.7442, allocations: 74.45 kB / 0.9558 GB, free: 3.898 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.7442, allocations: 0 / 0.9558 GB, free: 3.898 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001065/0.7444, allocations: 35.75 kB / 0.9558 GB, free: 3.883 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000292/0.7447, allocations: 9.438 kB / 0.9558 GB, free: 3.879 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000468/0.7451, allocations: 178.4 kB / 0.956 GB, free: 3.727 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001662/0.7453, allocations: 0.6924 MB / 0.9566 GB, free: 3.02 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 4.571e-05/0.7454, allocations: 15.47 kB / 0.9567 GB, free: 3.008 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.564e-05/0.7454, allocations: 11.62 kB / 0.9567 GB, free: 3 MB / 0.7169 GB Notification: Performance of SimCode: time 2.31e-07/0.7454, allocations: 0 / 0.9567 GB, free: 3 MB / 0.7169 GB Notification: Performance of Templates: time 0.004434/0.7499, allocations: 1.458 MB / 0.9581 GB, free: 2.246 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan.makefile (rm -f Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan.pipe ; mkfifo Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan.pipe ; head -c 1048576 < Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan.pipe >> ../files/Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan.sim & ./Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Occupants_Residential_Heating_Validation_Nicol2001HeatingPakistan.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_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