Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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 11.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_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_11_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.006068/0.006068, allocations: 97.5 kB / 15.73 MB, free: 5.547 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.001212/0.001212, allocations: 194.3 kB / 16.68 MB, free: 5.469 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.417/1.417, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.683/2.683, allocations: 469.8 MB / 0.7425 GB, free: 3.367 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001614/0.001614, allocations: 67.89 kB / 1.065 GB, free: 13.61 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9344/0.936, allocations: 159.1 MB / 1.221 GB, free: 2.133 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan): time 0.0029/0.9389, allocations: 1.48 MB / 1.222 GB, free: 0.6445 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001512/0.9404, allocations: 0.7293 MB / 1.223 GB, free: 15.91 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.523e-05/0.9405, allocations: 0 / 1.223 GB, free: 15.91 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 3.266e-05/0.9405, allocations: 3.938 kB / 1.223 GB, free: 15.91 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 6.097e-05/0.9406, allocations: 15.86 kB / 1.223 GB, free: 15.89 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006207/0.9412, allocations: 123.6 kB / 1.223 GB, free: 15.77 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0001434/0.9413, allocations: 83.7 kB / 1.223 GB, free: 15.69 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001052/0.9414, allocations: 11.95 kB / 1.223 GB, free: 15.68 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001206/0.9416, allocations: 39.89 kB / 1.223 GB, free: 15.64 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 7.79e-05/0.9416, allocations: 35.84 kB / 1.223 GB, free: 15.6 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 2.134e-05/0.9417, allocations: 8 kB / 1.223 GB, free: 15.59 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002064/0.9419, allocations: 91.84 kB / 1.223 GB, free: 15.5 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 2.648e-05/0.9419, allocations: 23.92 kB / 1.223 GB, free: 15.48 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 5.05e-05/0.9419, allocations: 35.78 kB / 1.223 GB, free: 15.45 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0002853/0.9422, allocations: 144.1 kB / 1.223 GB, free: 15.31 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.9422, allocations: 0 / 1.223 GB, free: 15.31 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.954e-06/0.9422, allocations: 0 / 1.223 GB, free: 15.31 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 1.064e-05/0.9422, allocations: 0 / 1.223 GB, free: 15.31 MB / 0.9512 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.0006731/0.9429, allocations: 424.7 kB / 1.224 GB, free: 14.84 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 4.143e-05/0.943, allocations: 8.625 kB / 1.224 GB, free: 14.83 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.219e-05/0.943, allocations: 8.891 kB / 1.224 GB, free: 14.82 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001464/0.9432, allocations: 176.3 kB / 1.224 GB, free: 14.61 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.986e-05/0.9432, allocations: 8.359 kB / 1.224 GB, free: 14.61 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.924e-05/0.9432, allocations: 384 / 1.224 GB, free: 14.61 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001937/0.9434, allocations: 73.97 kB / 1.224 GB, free: 14.53 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.287e-06/0.9434, allocations: 0 / 1.224 GB, free: 14.53 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.355e-05/0.9434, allocations: 0 / 1.224 GB, free: 14.53 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.275e-06/0.9434, allocations: 4 kB / 1.224 GB, free: 14.52 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001311/0.9436, allocations: 35.97 kB / 1.224 GB, free: 14.49 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006667/0.9442, allocations: 320.7 kB / 1.224 GB, free: 14.12 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001543/0.9444, allocations: 46.5 kB / 1.224 GB, free: 14.07 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.437e-05/0.9445, allocations: 32.91 kB / 1.224 GB, free: 14.04 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 2.46e-05/0.9445, allocations: 0 / 1.224 GB, free: 14.04 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00026/0.9448, allocations: 79.38 kB / 1.224 GB, free: 13.95 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=7): time 1.843e-06/0.9448, allocations: 0 / 1.224 GB, free: 13.95 MB / 0.9512 GB Notification: Performance of matching and sorting (n=7): time 0.0004347/0.9452, allocations: 145.5 kB / 1.225 GB, free: 13.8 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.336e-05/0.9452, allocations: 55.47 kB / 1.225 GB, free: 13.73 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001155/0.9454, allocations: 125.7 kB / 1.225 GB, free: 13.6 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 1.976e-05/0.9454, allocations: 25.7 kB / 1.225 GB, free: 13.57 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 6.946e-05/0.9454, allocations: 100.1 kB / 1.225 GB, free: 13.46 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 2.083e-05/0.9455, allocations: 11.91 kB / 1.225 GB, free: 13.45 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.02e-05/0.9455, allocations: 29.7 kB / 1.225 GB, free: 13.42 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.000124/0.9457, allocations: 322.8 kB / 1.225 GB, free: 13.09 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.977e-05/0.9458, allocations: 27.98 kB / 1.225 GB, free: 13.07 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001093/0.9459, allocations: 42.56 kB / 1.225 GB, free: 13.02 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001661/0.946, allocations: 78.48 kB / 1.225 GB, free: 12.93 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.188e-06/0.946, allocations: 4 kB / 1.225 GB, free: 12.93 MB / 0.9512 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002472/0.9463, allocations: 109.5 kB / 1.226 GB, free: 12.81 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.655e-05/0.9463, allocations: 4 kB / 1.226 GB, free: 12.81 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.833e-06/0.9463, allocations: 4 kB / 1.226 GB, free: 12.8 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.463e-05/0.9463, allocations: 4.062 kB / 1.226 GB, free: 12.8 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001042/0.9464, allocations: 15.98 kB / 1.226 GB, free: 12.79 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.804e-06/0.9464, allocations: 0 / 1.226 GB, free: 12.79 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.838e-05/0.9465, allocations: 11.88 kB / 1.226 GB, free: 12.77 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.817e-05/0.9465, allocations: 8.328 kB / 1.226 GB, free: 12.77 MB / 0.9512 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 0.0001109/0.9466, allocations: 122.3 kB / 1.226 GB, free: 12.64 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.062e-05/0.9466, allocations: 11.89 kB / 1.226 GB, free: 12.62 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.54e-05/0.9467, allocations: 16.38 kB / 1.226 GB, free: 12.6 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.414e-06/0.9467, allocations: 0 / 1.226 GB, free: 12.6 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.22e-06/0.9467, allocations: 0 / 1.226 GB, free: 12.6 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.957e-06/0.9467, allocations: 0 / 1.226 GB, free: 12.6 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004723/0.9472, allocations: 390.3 kB / 1.226 GB, free: 12.16 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.424e-06/0.9472, allocations: 0 / 1.226 GB, free: 12.16 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.382e-05/0.9472, allocations: 7.984 kB / 1.226 GB, free: 12.16 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.665e-06/0.9472, allocations: 0 / 1.226 GB, free: 12.16 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.169e-05/0.9472, allocations: 4 kB / 1.226 GB, free: 12.15 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.214e-06/0.9472, allocations: 4 kB / 1.226 GB, free: 12.15 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.865e-06/0.9472, allocations: 3.938 kB / 1.226 GB, free: 12.14 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002883/0.9475, allocations: 199.5 kB / 1.226 GB, free: 11.93 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 5.523e-05/0.9476, allocations: 97.03 kB / 1.226 GB, free: 11.82 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.009e-05/0.9476, allocations: 0 / 1.226 GB, free: 11.82 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.756e-05/0.9477, allocations: 4 kB / 1.226 GB, free: 11.82 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.979e-05/0.9477, allocations: 11.86 kB / 1.226 GB, free: 11.8 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.408e-06/0.9478, allocations: 8 kB / 1.226 GB, free: 11.8 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 5.734e-05/0.9478, allocations: 91.27 kB / 1.226 GB, free: 11.71 MB / 0.9512 GB Notification: Performance of sort global known variables: time 8e-08/0.9478, allocations: 0 / 1.226 GB, free: 11.71 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0003311/0.9481, allocations: 35.94 kB / 1.227 GB, free: 11.67 MB / 0.9512 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.0003758/0.9485, allocations: 166.2 kB / 1.227 GB, free: 11.52 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0002384/0.9488, allocations: 79.81 kB / 1.227 GB, free: 11.44 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.9488, allocations: 0 / 1.227 GB, free: 11.44 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 9.971e-05/0.9489, allocations: 27.98 kB / 1.227 GB, free: 11.41 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000255/0.9491, allocations: 11.98 kB / 1.227 GB, free: 11.4 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004667/0.9496, allocations: 184.8 kB / 1.227 GB, free: 11.19 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002393/0.9498, allocations: 0.6924 MB / 1.228 GB, free: 10.47 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 3.218e-05/0.9499, allocations: 4 kB / 1.228 GB, free: 10.47 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.62e-05/0.9499, allocations: 15.42 kB / 1.228 GB, free: 10.45 MB / 0.9512 GB Notification: Performance of SimCode: time 6.21e-07/0.9499, allocations: 0 / 1.228 GB, free: 10.45 MB / 0.9512 GB Notification: Performance of Templates: time 0.004774/0.9547, allocations: 1.462 MB / 1.229 GB, free: 9.004 MB / 0.9512 GB make -j1 -f Buildings_11_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan.makefile (rm -f Buildings_11_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan.pipe ; mkfifo Buildings_11_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan.pipe ; head -c 1048576 < Buildings_11_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan.pipe >> ../files/Buildings_11_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan.sim & ./Buildings_11_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Occupants_Residential_Heating_Validation_Nicol2001HeatingPakistan.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_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