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.0015/0.001501, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001252/0.001252, allocations: 191.7 kB / 16.13 MB, free: 6.691 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.437/1.437, allocations: 222.9 MB / 239.8 MB, free: 4.629 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.387/2.387, allocations: 390.2 MB / 0.6642 GB, free: 0.6289 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001449/0.00145, allocations: 63.89 kB / 0.8118 GB, free: 14.88 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7342/0.7356, allocations: 140.4 MB / 0.9489 GB, free: 9.148 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan): time 0.003017/0.7387, allocations: 1.536 MB / 0.9504 GB, free: 7.941 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.00135/0.7401, allocations: 0.7288 MB / 0.9511 GB, free: 7.383 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.82e-05/0.7402, allocations: 5.312 kB / 0.9511 GB, free: 7.379 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 4.066e-05/0.7402, allocations: 0 / 0.9511 GB, free: 7.379 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 7.928e-05/0.7403, allocations: 13.38 kB / 0.9511 GB, free: 7.367 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006092/0.7409, allocations: 105.2 kB / 0.9512 GB, free: 7.293 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.000124/0.7411, allocations: 77.94 kB / 0.9513 GB, free: 7.246 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001068/0.7412, allocations: 13.81 kB / 0.9513 GB, free: 7.238 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001222/0.7413, allocations: 33.81 kB / 0.9514 GB, free: 7.219 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 9.45e-05/0.7414, allocations: 36.16 kB / 0.9514 GB, free: 7.195 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.337e-05/0.7415, allocations: 3.469 kB / 0.9514 GB, free: 7.195 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002702/0.7417, allocations: 90.12 kB / 0.9515 GB, free: 7.148 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 3.369e-05/0.7418, allocations: 9.516 kB / 0.9515 GB, free: 7.141 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 5.807e-05/0.7418, allocations: 37.22 kB / 0.9515 GB, free: 7.113 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0003382/0.7422, allocations: 139 kB / 0.9517 GB, free: 7.023 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 7.093e-06/0.7422, allocations: 0 / 0.9517 GB, free: 7.023 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.663e-06/0.7422, allocations: 1.469 kB / 0.9517 GB, free: 7.023 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 8.276e-06/0.7422, allocations: 0 / 0.9517 GB, free: 7.023 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.0007671/0.743, allocations: 423.7 kB / 0.9521 GB, free: 6.586 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.567e-05/0.7431, allocations: 14.03 kB / 0.9521 GB, free: 6.582 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.781e-05/0.7431, allocations: 4 kB / 0.9521 GB, free: 6.582 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.148e-05/0.7432, allocations: 175.3 kB / 0.9523 GB, free: 6.375 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.517e-05/0.7432, allocations: 10.97 kB / 0.9523 GB, free: 6.367 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.211e-05/0.7433, allocations: 4.25 kB / 0.9523 GB, free: 6.367 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001878/0.7435, allocations: 68.72 kB / 0.9523 GB, free: 6.312 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.075e-06/0.7435, allocations: 0 / 0.9523 GB, free: 6.312 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.5e-05/0.7435, allocations: 4.969 kB / 0.9523 GB, free: 6.309 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.105e-06/0.7435, allocations: 1.094 kB / 0.9523 GB, free: 6.309 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001272/0.7437, allocations: 35.91 kB / 0.9524 GB, free: 6.293 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005718/0.7442, allocations: 329.5 kB / 0.9527 GB, free: 5.953 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001268/0.7444, allocations: 44.97 kB / 0.9527 GB, free: 5.918 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.253e-05/0.7445, allocations: 35.52 kB / 0.9528 GB, free: 5.895 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.296e-05/0.7445, allocations: 1.219 kB / 0.9528 GB, free: 5.895 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002092/0.7447, allocations: 82.95 kB / 0.9528 GB, free: 5.82 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.753e-06/0.7447, allocations: 0 / 0.9528 GB, free: 5.82 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0003886/0.7451, allocations: 139.8 kB / 0.953 GB, free: 5.738 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.883e-05/0.7452, allocations: 52.78 kB / 0.953 GB, free: 5.676 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.349e-05/0.7453, allocations: 120.2 kB / 0.9531 GB, free: 5.562 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.403e-05/0.7453, allocations: 31.17 kB / 0.9532 GB, free: 5.527 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.695e-05/0.7453, allocations: 95.05 kB / 0.9533 GB, free: 5.434 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.063e-05/0.7453, allocations: 14.66 kB / 0.9533 GB, free: 5.422 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.37e-05/0.7454, allocations: 29.95 kB / 0.9533 GB, free: 5.395 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.218e-05/0.7455, allocations: 324.5 kB / 0.9536 GB, free: 5.07 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.55e-05/0.7456, allocations: 27.02 kB / 0.9536 GB, free: 5.059 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.078e-05/0.7457, allocations: 44.97 kB / 0.9537 GB, free: 5.023 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001676/0.7458, allocations: 81.33 kB / 0.9538 GB, free: 4.965 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.465e-06/0.7459, allocations: 0 / 0.9538 GB, free: 4.965 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002398/0.7461, allocations: 113.8 kB / 0.9539 GB, free: 4.895 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.688e-05/0.7461, allocations: 5.438 kB / 0.9539 GB, free: 4.895 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.512e-06/0.7461, allocations: 0 / 0.9539 GB, free: 4.895 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.739e-05/0.7462, allocations: 6.25 kB / 0.9539 GB, free: 4.891 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001022/0.7463, allocations: 11.77 kB / 0.9539 GB, free: 4.887 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.447e-06/0.7463, allocations: 5 kB / 0.9539 GB, free: 4.883 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.507e-05/0.7464, allocations: 8.312 kB / 0.9539 GB, free: 4.879 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.508e-05/0.7464, allocations: 3.312 kB / 0.9539 GB, free: 4.879 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 8.055e-05/0.7465, allocations: 130.2 kB / 0.954 GB, free: 4.746 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.085e-05/0.7465, allocations: 7.312 kB / 0.954 GB, free: 4.742 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.875e-05/0.7465, allocations: 5.469 kB / 0.954 GB, free: 4.738 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.576e-06/0.7465, allocations: 6.094 kB / 0.954 GB, free: 4.734 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.32e-06/0.7466, allocations: 0 / 0.954 GB, free: 4.734 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.987e-06/0.7466, allocations: 0 / 0.954 GB, free: 4.734 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004082/0.747, allocations: 391.5 kB / 0.9544 GB, free: 4.355 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.134e-06/0.747, allocations: 0 / 0.9544 GB, free: 4.355 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.143e-05/0.747, allocations: 7.078 kB / 0.9544 GB, free: 4.352 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.268e-06/0.747, allocations: 1.312 kB / 0.9544 GB, free: 4.352 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.566e-05/0.7471, allocations: 1.625 kB / 0.9544 GB, free: 4.352 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.733e-06/0.7471, allocations: 4 kB / 0.9544 GB, free: 4.348 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.494e-06/0.7471, allocations: 3.938 kB / 0.9544 GB, free: 4.344 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003418/0.7474, allocations: 206.5 kB / 0.9546 GB, free: 4.176 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.721e-05/0.7475, allocations: 86.67 kB / 0.9547 GB, free: 4.074 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.236e-05/0.7475, allocations: 3.938 kB / 0.9547 GB, free: 4.07 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.995e-05/0.7476, allocations: 3.062 kB / 0.9547 GB, free: 4.07 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.857e-05/0.7476, allocations: 11.02 kB / 0.9547 GB, free: 4.062 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.003e-05/0.7477, allocations: 6.219 kB / 0.9547 GB, free: 4.059 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 4.049e-05/0.7477, allocations: 100.7 kB / 0.9548 GB, free: 3.969 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.2e-07/0.7477, allocations: 0 / 0.9548 GB, free: 3.969 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003323/0.7481, allocations: 44.8 kB / 0.9549 GB, free: 3.953 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.000332/0.7484, allocations: 155 kB / 0.955 GB, free: 3.844 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.000239/0.7486, allocations: 78.2 kB / 0.9551 GB, free: 3.809 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.7487, allocations: 3.938 kB / 0.9551 GB, free: 3.805 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 9.696e-05/0.7488, allocations: 35.62 kB / 0.9551 GB, free: 3.789 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002814/0.749, allocations: 7.531 kB / 0.9551 GB, free: 3.785 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00041/0.7495, allocations: 199.5 kB / 0.9553 GB, free: 3.609 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001237/0.7496, allocations: 0.6886 MB / 0.956 GB, free: 2.906 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 4.132e-05/0.7496, allocations: 7.766 kB / 0.956 GB, free: 2.902 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.819e-05/0.7497, allocations: 9.719 kB / 0.956 GB, free: 2.895 MB / 0.7169 GB Notification: Performance of SimCode: time 4.61e-07/0.7497, allocations: 1.031 kB / 0.956 GB, free: 2.895 MB / 0.7169 GB Notification: Performance of Templates: time 0.00398/0.7537, allocations: 1.377 MB / 0.9574 GB, free: 2.184 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