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.007412/0.007412, allocations: 100.4 kB / 15.73 MB, free: 5.98 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.001213/0.001213, allocations: 192.2 kB / 16.67 MB, free: 5.918 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.484/1.484, allocations: 222.9 MB / 240.4 MB, free: 4.336 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.414/2.414, allocations: 390.2 MB / 0.6648 GB, free: 208 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001439/0.001439, allocations: 66.66 kB / 0.9508 GB, free: 5.613 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3291/0.3305, allocations: 140.4 MB / 1.088 GB, free: 1.566 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan): time 0.002963/0.3335, allocations: 1.474 MB / 1.089 GB, free: 80 kB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.00143/0.335, allocations: 0.7298 MB / 1.09 GB, free: 15.34 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.745e-05/0.3351, allocations: 3.938 kB / 1.09 GB, free: 15.34 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.511e-05/0.3351, allocations: 3.938 kB / 1.09 GB, free: 15.34 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 7.318e-05/0.3352, allocations: 11.86 kB / 1.09 GB, free: 15.32 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006629/0.3359, allocations: 123.6 kB / 1.09 GB, free: 15.2 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001425/0.336, allocations: 75.83 kB / 1.09 GB, free: 15.13 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001021/0.3361, allocations: 11.98 kB / 1.09 GB, free: 15.12 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001022/0.3363, allocations: 47.83 kB / 1.09 GB, free: 15.07 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 7.235e-05/0.3363, allocations: 39.84 kB / 1.09 GB, free: 15.03 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.095e-05/0.3364, allocations: 4 kB / 1.09 GB, free: 15.03 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002231/0.3366, allocations: 87.91 kB / 1.09 GB, free: 14.94 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.684e-05/0.3366, allocations: 15.92 kB / 1.09 GB, free: 14.93 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 5.651e-05/0.3367, allocations: 35.84 kB / 1.09 GB, free: 14.89 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002564/0.337, allocations: 147.5 kB / 1.091 GB, free: 14.75 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.337, allocations: 0 / 1.091 GB, free: 14.75 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.222e-06/0.337, allocations: 4 kB / 1.091 GB, free: 14.74 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.972e-06/0.337, allocations: 0 / 1.091 GB, free: 14.74 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.0006904/0.3377, allocations: 413 kB / 1.091 GB, free: 14.29 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.467e-05/0.3377, allocations: 12.03 kB / 1.091 GB, free: 14.27 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.57e-05/0.3378, allocations: 8.844 kB / 1.091 GB, free: 14.27 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001298/0.3379, allocations: 176.1 kB / 1.091 GB, free: 14.05 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.581e-05/0.338, allocations: 12.36 kB / 1.091 GB, free: 14.04 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.984e-05/0.338, allocations: 4.375 kB / 1.091 GB, free: 14.04 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002011/0.3382, allocations: 81.91 kB / 1.091 GB, free: 13.95 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.356e-06/0.3382, allocations: 0 / 1.091 GB, free: 13.95 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.426e-05/0.3382, allocations: 4 kB / 1.091 GB, free: 13.95 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.098e-06/0.3382, allocations: 0 / 1.091 GB, free: 13.95 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001282/0.3384, allocations: 39.95 kB / 1.091 GB, free: 13.91 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005994/0.339, allocations: 316.7 kB / 1.092 GB, free: 13.55 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001346/0.3391, allocations: 54.56 kB / 1.092 GB, free: 13.49 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.168e-05/0.3392, allocations: 36.91 kB / 1.092 GB, free: 13.45 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.22e-05/0.3392, allocations: 0 / 1.092 GB, free: 13.45 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001879/0.3394, allocations: 71.38 kB / 1.092 GB, free: 13.37 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=7): time 1.182e-06/0.3395, allocations: 0 / 1.092 GB, free: 13.37 MB / 0.8575 GB Notification: Performance of matching and sorting (n=7): time 0.0003977/0.3399, allocations: 149.6 kB / 1.092 GB, free: 13.21 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.29e-05/0.3399, allocations: 55.41 kB / 1.092 GB, free: 13.15 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001033/0.34, allocations: 117.8 kB / 1.092 GB, free: 13.02 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.118e-05/0.34, allocations: 33.7 kB / 1.092 GB, free: 12.98 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 5.717e-05/0.3401, allocations: 95.97 kB / 1.092 GB, free: 12.89 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.036e-05/0.3401, allocations: 11.91 kB / 1.092 GB, free: 12.88 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.365e-05/0.3402, allocations: 25.7 kB / 1.092 GB, free: 12.84 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001245/0.3403, allocations: 330.8 kB / 1.093 GB, free: 12.51 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.978e-05/0.3404, allocations: 23.98 kB / 1.093 GB, free: 12.49 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.878e-05/0.3405, allocations: 46.56 kB / 1.093 GB, free: 12.43 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001659/0.3407, allocations: 78.48 kB / 1.093 GB, free: 12.35 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.424e-06/0.3407, allocations: 3.938 kB / 1.093 GB, free: 12.34 MB / 0.8575 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002427/0.3409, allocations: 113.5 kB / 1.093 GB, free: 12.23 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.603e-05/0.341, allocations: 4 kB / 1.093 GB, free: 12.22 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.22e-06/0.341, allocations: 0 / 1.093 GB, free: 12.22 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.484e-05/0.341, allocations: 0 / 1.093 GB, free: 12.22 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000108/0.3411, allocations: 19.97 kB / 1.093 GB, free: 12.2 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.641e-06/0.3411, allocations: 0 / 1.093 GB, free: 12.2 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.185e-05/0.3412, allocations: 11.97 kB / 1.093 GB, free: 12.19 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.544e-05/0.3412, allocations: 4 kB / 1.093 GB, free: 12.19 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.0001023/0.3413, allocations: 129.7 kB / 1.093 GB, free: 12.05 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.732e-05/0.3413, allocations: 7.906 kB / 1.093 GB, free: 12.04 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.603e-05/0.3414, allocations: 4.375 kB / 1.093 GB, free: 12.04 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.404e-06/0.3414, allocations: 0 / 1.093 GB, free: 12.04 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.389e-06/0.3414, allocations: 0 / 1.093 GB, free: 12.04 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.855e-06/0.3414, allocations: 4 kB / 1.093 GB, free: 12.04 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004588/0.3419, allocations: 386.4 kB / 1.093 GB, free: 11.6 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.3419, allocations: 0 / 1.093 GB, free: 11.6 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.872e-05/0.3419, allocations: 7.984 kB / 1.093 GB, free: 11.59 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.915e-06/0.3419, allocations: 0 / 1.093 GB, free: 11.59 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.27e-05/0.342, allocations: 0 / 1.093 GB, free: 11.59 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.714e-06/0.342, allocations: 3.938 kB / 1.093 GB, free: 11.59 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.915e-06/0.342, allocations: 3.938 kB / 1.093 GB, free: 11.59 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002874/0.3423, allocations: 219.9 kB / 1.094 GB, free: 11.36 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 4.278e-05/0.3423, allocations: 77.11 kB / 1.094 GB, free: 11.26 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.145e-05/0.3423, allocations: 8 kB / 1.094 GB, free: 11.25 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.11e-05/0.3424, allocations: 3.938 kB / 1.094 GB, free: 11.25 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.034e-05/0.3425, allocations: 11.92 kB / 1.094 GB, free: 11.24 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.292e-05/0.3425, allocations: 8 kB / 1.094 GB, free: 11.23 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 6.069e-05/0.3426, allocations: 91.27 kB / 1.094 GB, free: 11.14 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.673e-06/0.3426, allocations: 0 / 1.094 GB, free: 11.14 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0003054/0.3429, allocations: 47.84 kB / 1.094 GB, free: 11.09 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.0003606/0.3433, allocations: 162.8 kB / 1.094 GB, free: 10.95 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.000245/0.3435, allocations: 75.91 kB / 1.094 GB, free: 10.87 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.3435, allocations: 128 / 1.094 GB, free: 10.87 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001012/0.3436, allocations: 39.92 kB / 1.094 GB, free: 10.83 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002599/0.3439, allocations: 11.98 kB / 1.094 GB, free: 10.82 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004337/0.3443, allocations: 173 kB / 1.094 GB, free: 10.62 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002514/0.3446, allocations: 0.6885 MB / 1.095 GB, free: 9.906 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 3.995e-05/0.3446, allocations: 11.75 kB / 1.095 GB, free: 9.895 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.143e-05/0.3447, allocations: 15.42 kB / 1.095 GB, free: 9.879 MB / 0.8575 GB Notification: Performance of SimCode: time 3.9e-07/0.3447, allocations: 0 / 1.095 GB, free: 9.879 MB / 0.8575 GB Notification: Performance of Templates: time 0.007599/0.3523, allocations: 1.481 MB / 1.096 GB, free: 8.402 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