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.009378/0.009378, allocations: 97.41 kB / 15.73 MB, free: 6.047 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.002193/0.002194, allocations: 197 kB / 16.67 MB, free: 5.973 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.529/1.529, allocations: 222.9 MB / 240.4 MB, free: 4.164 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.583/2.583, allocations: 390.2 MB / 0.6648 GB, free: 208 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001328/0.001328, allocations: 61.5 kB / 0.9508 GB, free: 5.605 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.328/0.3293, allocations: 140.4 MB / 1.088 GB, free: 1.531 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan): time 0.003119/0.3325, allocations: 1.48 MB / 1.089 GB, free: 40 kB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001663/0.3342, allocations: 0.722 MB / 1.09 GB, free: 15.31 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.841e-05/0.3343, allocations: 4 kB / 1.09 GB, free: 15.31 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 4.484e-05/0.3344, allocations: 7.922 kB / 1.09 GB, free: 15.3 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 8.662e-05/0.3345, allocations: 7.875 kB / 1.09 GB, free: 15.29 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007295/0.3352, allocations: 131.6 kB / 1.09 GB, free: 15.16 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001485/0.3354, allocations: 71.77 kB / 1.09 GB, free: 15.09 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001143/0.3355, allocations: 19.97 kB / 1.09 GB, free: 15.07 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001134/0.3356, allocations: 27.92 kB / 1.09 GB, free: 15.05 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 8.734e-05/0.3357, allocations: 43.81 kB / 1.09 GB, free: 15 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.269e-05/0.3358, allocations: 8 kB / 1.09 GB, free: 15 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002459/0.336, allocations: 99.84 kB / 1.09 GB, free: 14.9 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 3.357e-05/0.3361, allocations: 19.92 kB / 1.09 GB, free: 14.88 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 5.887e-05/0.3361, allocations: 31.84 kB / 1.09 GB, free: 14.85 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0003175/0.3365, allocations: 143.5 kB / 1.091 GB, free: 14.71 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.319e-06/0.3365, allocations: 0 / 1.091 GB, free: 14.71 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.843e-06/0.3365, allocations: 0 / 1.091 GB, free: 14.71 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 8.306e-06/0.3365, allocations: 0 / 1.091 GB, free: 14.71 MB / 0.8575 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.0008466/0.3373, allocations: 420.7 kB / 1.091 GB, free: 14.24 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.8e-05/0.3374, allocations: 8.031 kB / 1.091 GB, free: 14.23 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.21e-05/0.3375, allocations: 16.88 kB / 1.091 GB, free: 14.22 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001581/0.3376, allocations: 172.3 kB / 1.091 GB, free: 14.01 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.708e-05/0.3377, allocations: 8.312 kB / 1.091 GB, free: 14 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.451e-05/0.3377, allocations: 8.375 kB / 1.091 GB, free: 14 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000228/0.338, allocations: 65.97 kB / 1.091 GB, free: 13.93 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.049e-05/0.338, allocations: 0 / 1.091 GB, free: 13.93 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.768e-05/0.338, allocations: 4 kB / 1.091 GB, free: 13.92 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.082e-06/0.338, allocations: 0 / 1.091 GB, free: 13.92 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001402/0.3382, allocations: 43.84 kB / 1.091 GB, free: 13.88 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007145/0.3389, allocations: 320.7 kB / 1.092 GB, free: 13.52 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001493/0.339, allocations: 54.55 kB / 1.092 GB, free: 13.45 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.07e-05/0.3391, allocations: 28.97 kB / 1.092 GB, free: 13.42 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.81e-05/0.3392, allocations: 4 kB / 1.092 GB, free: 13.42 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002604/0.3394, allocations: 87.3 kB / 1.092 GB, free: 13.32 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=7): time 1.783e-06/0.3395, allocations: 0 / 1.092 GB, free: 13.32 MB / 0.8575 GB Notification: Performance of matching and sorting (n=7): time 0.0004501/0.3399, allocations: 137.8 kB / 1.092 GB, free: 13.18 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.548e-05/0.34, allocations: 51.41 kB / 1.092 GB, free: 13.12 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001101/0.3401, allocations: 125.8 kB / 1.092 GB, free: 12.98 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.356e-05/0.3401, allocations: 33.7 kB / 1.092 GB, free: 12.95 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 6.945e-05/0.3402, allocations: 88.14 kB / 1.092 GB, free: 12.86 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.856e-05/0.3402, allocations: 23.89 kB / 1.092 GB, free: 12.83 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.831e-05/0.3403, allocations: 25.72 kB / 1.092 GB, free: 12.8 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001488/0.3405, allocations: 322.8 kB / 1.093 GB, free: 12.48 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001416/0.3406, allocations: 23.98 kB / 1.093 GB, free: 12.45 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000104/0.3407, allocations: 62.48 kB / 1.093 GB, free: 12.38 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001719/0.3409, allocations: 66.62 kB / 1.093 GB, free: 12.31 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.148e-06/0.3409, allocations: 0 / 1.093 GB, free: 12.31 MB / 0.8575 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003288/0.3413, allocations: 113.5 kB / 1.093 GB, free: 12.19 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.96e-05/0.3413, allocations: 8 kB / 1.093 GB, free: 12.18 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.492e-06/0.3413, allocations: 4.062 kB / 1.093 GB, free: 12.18 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.73e-05/0.3413, allocations: 0 / 1.093 GB, free: 12.18 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001157/0.3414, allocations: 15.92 kB / 1.093 GB, free: 12.16 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.568e-06/0.3415, allocations: 4 kB / 1.093 GB, free: 12.16 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.755e-05/0.3415, allocations: 15.94 kB / 1.093 GB, free: 12.14 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.323e-05/0.3416, allocations: 0 / 1.093 GB, free: 12.14 MB / 0.8575 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.0001157/0.3417, allocations: 122.7 kB / 1.093 GB, free: 12.02 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.144e-05/0.3417, allocations: 3.953 kB / 1.093 GB, free: 12.01 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.149e-05/0.3418, allocations: 16.38 kB / 1.093 GB, free: 12 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.825e-06/0.3418, allocations: 0 / 1.093 GB, free: 12 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.632e-06/0.3418, allocations: 3.984 kB / 1.093 GB, free: 11.99 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.322e-06/0.3418, allocations: 4 kB / 1.093 GB, free: 11.99 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004888/0.3423, allocations: 382.4 kB / 1.093 GB, free: 11.56 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.003e-06/0.3423, allocations: 0 / 1.093 GB, free: 11.56 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.879e-05/0.3423, allocations: 4 kB / 1.093 GB, free: 11.55 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.07e-06/0.3424, allocations: 4 kB / 1.093 GB, free: 11.55 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.075e-05/0.3424, allocations: 4 kB / 1.093 GB, free: 11.55 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.064e-06/0.3424, allocations: 0 / 1.093 GB, free: 11.55 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.528e-06/0.3424, allocations: 7.922 kB / 1.093 GB, free: 11.54 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002933/0.3427, allocations: 207.4 kB / 1.094 GB, free: 11.32 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 4.701e-05/0.3427, allocations: 85 kB / 1.094 GB, free: 11.22 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.234e-05/0.3428, allocations: 7.938 kB / 1.094 GB, free: 11.21 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.206e-05/0.3429, allocations: 7.984 kB / 1.094 GB, free: 11.2 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.574e-05/0.3429, allocations: 11.94 kB / 1.094 GB, free: 11.19 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.044e-05/0.3429, allocations: 3.984 kB / 1.094 GB, free: 11.19 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 5.502e-05/0.343, allocations: 91.28 kB / 1.094 GB, free: 11.1 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1e-07/0.343, allocations: 0 / 1.094 GB, free: 11.1 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0003268/0.3433, allocations: 43.86 kB / 1.094 GB, free: 11.05 MB / 0.8575 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.000386/0.3437, allocations: 161.7 kB / 1.094 GB, free: 10.9 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0002546/0.344, allocations: 72.11 kB / 1.094 GB, free: 10.83 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 5.591e-06/0.344, allocations: 4 kB / 1.094 GB, free: 10.83 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001082/0.3441, allocations: 44.06 kB / 1.094 GB, free: 10.79 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002685/0.3444, allocations: 1.719 kB / 1.094 GB, free: 10.79 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004403/0.3449, allocations: 193 kB / 1.094 GB, free: 10.57 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002589/0.3451, allocations: 0.6846 MB / 1.095 GB, free: 9.855 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 4.172e-05/0.3452, allocations: 7.75 kB / 1.095 GB, free: 9.848 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.108e-05/0.3452, allocations: 11.44 kB / 1.095 GB, free: 9.836 MB / 0.8575 GB Notification: Performance of SimCode: time 5.71e-07/0.3452, allocations: 3.938 kB / 1.095 GB, free: 9.832 MB / 0.8575 GB Notification: Performance of Templates: time 0.0049/0.3501, allocations: 1.456 MB / 1.096 GB, free: 8.383 MB / 0.8575 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