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.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-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.001233/0.001233, allocations: 108 kB / 15.61 MB, free: 152 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.00137/0.00137, allocations: 193.9 kB / 16.53 MB, free: 6.699 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.416/1.416, allocations: 222.9 MB / 240.2 MB, free: 4.387 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.677/2.677, allocations: 437 MB / 0.7103 GB, free: 5.09 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001402/0.001402, allocations: 59.89 kB / 0.8692 GB, free: 4.699 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6941/0.6955, allocations: 151.6 MB / 1.017 GB, free: 2.68 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan): time 0.002734/0.6983, allocations: 1.471 MB / 1.019 GB, free: 1.199 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.00126/0.6995, allocations: 0.7284 MB / 1.019 GB, free: 476 kB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.93e-05/0.6996, allocations: 3.938 kB / 1.019 GB, free: 472 kB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 3.008e-05/0.6996, allocations: 3.938 kB / 1.019 GB, free: 468 kB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 5.395e-05/0.6997, allocations: 15.86 kB / 1.019 GB, free: 452 kB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005458/0.7003, allocations: 127.6 kB / 1.02 GB, free: 324 kB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0001022/0.7004, allocations: 75.77 kB / 1.02 GB, free: 248 kB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 8.15e-05/0.7005, allocations: 8 kB / 1.02 GB, free: 240 kB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 8.628e-05/0.7006, allocations: 39.84 kB / 1.02 GB, free: 200 kB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 6.723e-05/0.7006, allocations: 39.83 kB / 1.02 GB, free: 160 kB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 2.103e-05/0.7007, allocations: 12 kB / 1.02 GB, free: 148 kB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001854/0.7008, allocations: 95.84 kB / 1.02 GB, free: 52 kB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 4.159e-05/0.7009, allocations: 19.92 kB / 1.02 GB, free: 32 kB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 4.657e-05/0.7009, allocations: 31.84 kB / 1.02 GB, free: 0 / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0002337/0.7012, allocations: 137.8 kB / 1.02 GB, free: 15.87 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.697e-06/0.7012, allocations: 0 / 1.02 GB, free: 15.87 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.423e-06/0.7012, allocations: 4 kB / 1.02 GB, free: 15.86 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 4.579e-06/0.7012, allocations: 0 / 1.02 GB, free: 15.86 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.0006081/0.7018, allocations: 420.8 kB / 1.02 GB, free: 15.4 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.204e-05/0.7019, allocations: 16.03 kB / 1.02 GB, free: 15.38 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.693e-05/0.7019, allocations: 8.844 kB / 1.02 GB, free: 15.38 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001271/0.7021, allocations: 164.4 kB / 1.021 GB, free: 15.18 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.607e-05/0.7021, allocations: 384 / 1.021 GB, free: 15.18 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.085e-05/0.7021, allocations: 8.375 kB / 1.021 GB, free: 15.17 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001853/0.7023, allocations: 77.89 kB / 1.021 GB, free: 15.09 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.526e-06/0.7023, allocations: 3.984 kB / 1.021 GB, free: 15.08 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.367e-05/0.7024, allocations: 3.984 kB / 1.021 GB, free: 15.08 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.088e-06/0.7024, allocations: 0 / 1.021 GB, free: 15.08 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001277/0.7025, allocations: 35.98 kB / 1.021 GB, free: 15.04 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005685/0.7031, allocations: 328.6 kB / 1.021 GB, free: 14.67 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001226/0.7032, allocations: 46.5 kB / 1.021 GB, free: 14.62 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.399e-05/0.7033, allocations: 36.97 kB / 1.021 GB, free: 14.58 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.789e-05/0.7033, allocations: 0 / 1.021 GB, free: 14.58 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002033/0.7035, allocations: 79.38 kB / 1.021 GB, free: 14.49 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=7): time 2.595e-06/0.7036, allocations: 0 / 1.021 GB, free: 14.49 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7): time 0.0003797/0.7039, allocations: 133.5 kB / 1.021 GB, free: 14.35 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.897e-05/0.704, allocations: 71.41 kB / 1.021 GB, free: 14.27 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.846e-05/0.7041, allocations: 125.8 kB / 1.021 GB, free: 14.14 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.228e-05/0.7041, allocations: 25.7 kB / 1.022 GB, free: 14.11 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 5.188e-05/0.7042, allocations: 92.14 kB / 1.022 GB, free: 14.01 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.002e-05/0.7042, allocations: 11.8 kB / 1.022 GB, free: 14 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.905e-05/0.7043, allocations: 29.7 kB / 1.022 GB, free: 13.96 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001176/0.7044, allocations: 322.8 kB / 1.022 GB, free: 13.64 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.83e-05/0.7045, allocations: 23.98 kB / 1.022 GB, free: 13.62 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.109e-05/0.7046, allocations: 54.48 kB / 1.022 GB, free: 13.55 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000155/0.7047, allocations: 78.48 kB / 1.022 GB, free: 13.47 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.883e-06/0.7047, allocations: 0 / 1.022 GB, free: 13.47 MB / 0.7794 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002647/0.705, allocations: 113.5 kB / 1.022 GB, free: 13.35 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.638e-05/0.705, allocations: 5.562 kB / 1.022 GB, free: 13.35 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.688e-06/0.705, allocations: 0 / 1.022 GB, free: 13.35 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.498e-05/0.7051, allocations: 4 kB / 1.022 GB, free: 13.34 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.56e-05/0.7052, allocations: 8 kB / 1.022 GB, free: 13.34 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.225e-06/0.7052, allocations: 3.984 kB / 1.022 GB, free: 13.33 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.062e-05/0.7053, allocations: 15.84 kB / 1.022 GB, free: 13.32 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.488e-05/0.7053, allocations: 8 kB / 1.022 GB, free: 13.31 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,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.422e-05/0.7054, allocations: 125.8 kB / 1.022 GB, free: 13.18 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.591e-05/0.7054, allocations: 4 kB / 1.022 GB, free: 13.17 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.054e-05/0.7055, allocations: 12.36 kB / 1.022 GB, free: 13.16 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.268e-06/0.7055, allocations: 4 kB / 1.022 GB, free: 13.15 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.013e-06/0.7055, allocations: 0 / 1.022 GB, free: 13.15 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.906e-06/0.7055, allocations: 3.938 kB / 1.022 GB, free: 13.15 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004537/0.7059, allocations: 378.4 kB / 1.023 GB, free: 12.72 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.706, allocations: 0 / 1.023 GB, free: 12.72 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.298e-05/0.706, allocations: 15.94 kB / 1.023 GB, free: 12.71 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.653e-06/0.706, allocations: 0 / 1.023 GB, free: 12.71 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.199e-05/0.706, allocations: 3.984 kB / 1.023 GB, free: 12.7 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.202e-06/0.706, allocations: 0 / 1.023 GB, free: 12.7 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.256e-05/0.706, allocations: 7.938 kB / 1.023 GB, free: 12.7 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002667/0.7063, allocations: 200 kB / 1.023 GB, free: 12.48 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 5.538e-05/0.7064, allocations: 85.02 kB / 1.023 GB, free: 12.38 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.154e-05/0.7064, allocations: 7.984 kB / 1.023 GB, free: 12.38 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.195e-05/0.7065, allocations: 8 kB / 1.023 GB, free: 12.37 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.719e-05/0.7066, allocations: 3.938 kB / 1.023 GB, free: 12.36 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.095e-05/0.7066, allocations: 7.984 kB / 1.023 GB, free: 12.36 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 5.204e-05/0.7066, allocations: 91.27 kB / 1.023 GB, free: 12.27 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.2e-07/0.7066, allocations: 0 / 1.023 GB, free: 12.27 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003006/0.707, allocations: 36 kB / 1.023 GB, free: 12.23 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 (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.0003717/0.7073, allocations: 178.2 kB / 1.023 GB, free: 12.06 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002603/0.7076, allocations: 71.95 kB / 1.023 GB, free: 11.99 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.7076, allocations: 3.938 kB / 1.023 GB, free: 11.99 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 9.703e-05/0.7077, allocations: 31.98 kB / 1.023 GB, free: 11.96 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002538/0.708, allocations: 9.203 kB / 1.023 GB, free: 11.95 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004106/0.7084, allocations: 181 kB / 1.024 GB, free: 11.74 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002703/0.7087, allocations: 0.6885 MB / 1.024 GB, free: 11.03 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 3.766e-05/0.7087, allocations: 11.94 kB / 1.024 GB, free: 11.02 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.783e-05/0.7088, allocations: 15.38 kB / 1.024 GB, free: 11 MB / 0.7794 GB Notification: Performance of SimCode: time 2.31e-07/0.7088, allocations: 0 / 1.024 GB, free: 11 MB / 0.7794 GB Notification: Performance of Templates: time 0.004365/0.7131, allocations: 1.457 MB / 1.026 GB, free: 9.551 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