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.001188/0.001188, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001233/0.001233, allocations: 189.2 kB / 16.25 MB, free: 6.621 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.435/1.435, allocations: 222.9 MB / 239.9 MB, free: 4.512 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.442/2.442, allocations: 390.2 MB / 0.6643 GB, free: 0.5703 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001481/0.001481, allocations: 59.91 kB / 0.812 GB, free: 14.78 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.948/0.9495, allocations: 140.3 MB / 0.9491 GB, free: 9.043 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan): time 0.002482/0.952, allocations: 1.549 MB / 0.9506 GB, free: 7.82 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001113/0.9532, allocations: 0.7219 MB / 0.9513 GB, free: 7.262 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.325e-05/0.9532, allocations: 1.188 kB / 0.9513 GB, free: 7.262 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.729e-05/0.9533, allocations: 0 / 0.9513 GB, free: 7.262 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 6.319e-05/0.9534, allocations: 17.42 kB / 0.9513 GB, free: 7.246 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.000675/0.954, allocations: 109.8 kB / 0.9514 GB, free: 7.172 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001257/0.9542, allocations: 76.7 kB / 0.9515 GB, free: 7.129 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001301/0.9543, allocations: 17.08 kB / 0.9515 GB, free: 7.117 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001141/0.9544, allocations: 34.38 kB / 0.9515 GB, free: 7.098 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 6.793e-05/0.9545, allocations: 39.05 kB / 0.9516 GB, free: 7.07 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.241e-05/0.9545, allocations: 10.75 kB / 0.9516 GB, free: 7.066 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001831/0.9547, allocations: 98.53 kB / 0.9517 GB, free: 7.016 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.609e-05/0.9548, allocations: 14.73 kB / 0.9517 GB, free: 7.004 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.89e-05/0.9548, allocations: 36.03 kB / 0.9517 GB, free: 6.977 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002299/0.9551, allocations: 136.5 kB / 0.9519 GB, free: 6.891 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/0.9551, allocations: 0 / 0.9519 GB, free: 6.891 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.302e-06/0.9551, allocations: 0 / 0.9519 GB, free: 6.891 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.953e-06/0.9551, allocations: 0 / 0.9519 GB, free: 6.891 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.0005963/0.9557, allocations: 428.8 kB / 0.9523 GB, free: 6.449 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.558e-05/0.9557, allocations: 13.09 kB / 0.9523 GB, free: 6.445 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.517e-05/0.9558, allocations: 4.688 kB / 0.9523 GB, free: 6.445 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.509e-05/0.9559, allocations: 176 kB / 0.9525 GB, free: 6.238 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.94e-05/0.9559, allocations: 3.156 kB / 0.9525 GB, free: 6.238 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.978e-05/0.9559, allocations: 7.875 kB / 0.9525 GB, free: 6.234 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001781/0.9561, allocations: 68.5 kB / 0.9525 GB, free: 6.18 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.475e-06/0.9561, allocations: 0 / 0.9525 GB, free: 6.18 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.492e-05/0.9562, allocations: 3.984 kB / 0.9525 GB, free: 6.176 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.119e-06/0.9562, allocations: 1.062 kB / 0.9525 GB, free: 6.176 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001238/0.9563, allocations: 36.64 kB / 0.9526 GB, free: 6.16 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005697/0.9569, allocations: 330.1 kB / 0.9529 GB, free: 5.82 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001219/0.957, allocations: 44.09 kB / 0.9529 GB, free: 5.785 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.659e-05/0.9571, allocations: 36.09 kB / 0.953 GB, free: 5.762 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.293e-05/0.9571, allocations: 1.531 kB / 0.953 GB, free: 5.762 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002132/0.9574, allocations: 77.91 kB / 0.953 GB, free: 5.691 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.442e-06/0.9574, allocations: 3.938 kB / 0.953 GB, free: 5.688 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0003987/0.9578, allocations: 132 kB / 0.9532 GB, free: 5.613 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.573e-05/0.9578, allocations: 64.83 kB / 0.9532 GB, free: 5.539 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.791e-05/0.9579, allocations: 117.6 kB / 0.9533 GB, free: 5.43 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.331e-05/0.9579, allocations: 26.89 kB / 0.9534 GB, free: 5.398 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.251e-05/0.958, allocations: 99 kB / 0.9535 GB, free: 5.301 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.854e-05/0.958, allocations: 9.188 kB / 0.9535 GB, free: 5.293 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.648e-05/0.958, allocations: 35.64 kB / 0.9535 GB, free: 5.262 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.844e-05/0.9581, allocations: 320 kB / 0.9538 GB, free: 4.941 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.742e-05/0.9582, allocations: 25.84 kB / 0.9538 GB, free: 4.93 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.004e-05/0.9583, allocations: 49.19 kB / 0.9539 GB, free: 4.891 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001463/0.9584, allocations: 81.97 kB / 0.954 GB, free: 4.832 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.9584, allocations: 0 / 0.954 GB, free: 4.832 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002141/0.9586, allocations: 113.5 kB / 0.9541 GB, free: 4.762 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.623e-05/0.9587, allocations: 5.062 kB / 0.9541 GB, free: 4.762 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.2e-06/0.9587, allocations: 1.406 kB / 0.9541 GB, free: 4.762 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.425e-05/0.9587, allocations: 1.219 kB / 0.9541 GB, free: 4.762 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.938e-05/0.9588, allocations: 11.5 kB / 0.9541 GB, free: 4.758 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.405e-06/0.9588, allocations: 5.297 kB / 0.9541 GB, free: 4.754 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.488e-05/0.9589, allocations: 11.66 kB / 0.9541 GB, free: 4.746 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.421e-05/0.9589, allocations: 3.594 kB / 0.9541 GB, free: 4.746 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 7.561e-05/0.959, allocations: 122.3 kB / 0.9542 GB, free: 4.621 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.744e-05/0.959, allocations: 7.625 kB / 0.9542 GB, free: 4.617 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.715e-05/0.959, allocations: 13.61 kB / 0.9542 GB, free: 4.605 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.186e-06/0.9591, allocations: 1.344 kB / 0.9542 GB, free: 4.605 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.389e-06/0.9591, allocations: 0 / 0.9542 GB, free: 4.605 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.817e-06/0.9591, allocations: 1.062 kB / 0.9542 GB, free: 4.605 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003706/0.9594, allocations: 381.9 kB / 0.9546 GB, free: 4.234 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.443e-06/0.9595, allocations: 5.562 kB / 0.9546 GB, free: 4.23 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.934e-05/0.9595, allocations: 10.72 kB / 0.9546 GB, free: 4.223 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.125e-06/0.9595, allocations: 1.406 kB / 0.9546 GB, free: 4.223 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.266e-05/0.9595, allocations: 7.984 kB / 0.9546 GB, free: 4.215 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.214e-06/0.9595, allocations: 0.9688 kB / 0.9546 GB, free: 4.215 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.044e-06/0.9595, allocations: 7.922 kB / 0.9546 GB, free: 4.207 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002444/0.9598, allocations: 202.1 kB / 0.9548 GB, free: 4.043 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.259e-05/0.9598, allocations: 90.42 kB / 0.9549 GB, free: 3.938 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.267e-05/0.9599, allocations: 9.328 kB / 0.9549 GB, free: 3.93 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.858e-05/0.9599, allocations: 2.688 kB / 0.9549 GB, free: 3.93 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.095e-05/0.96, allocations: 14.38 kB / 0.9549 GB, free: 3.918 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.828e-06/0.96, allocations: 2.219 kB / 0.9549 GB, free: 3.918 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.916e-05/0.9601, allocations: 93.58 kB / 0.955 GB, free: 3.836 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.4e-07/0.9601, allocations: 0 / 0.955 GB, free: 3.836 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003216/0.9604, allocations: 39.44 kB / 0.9551 GB, free: 3.824 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.0003399/0.9607, allocations: 154.6 kB / 0.9552 GB, free: 3.715 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002465/0.961, allocations: 79.19 kB / 0.9553 GB, free: 3.68 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.961, allocations: 0 / 0.9553 GB, free: 3.68 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 9.469e-05/0.9611, allocations: 32.47 kB / 0.9553 GB, free: 3.668 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002615/0.9614, allocations: 14.86 kB / 0.9553 GB, free: 3.656 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003939/0.9618, allocations: 199.8 kB / 0.9555 GB, free: 3.484 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001196/0.9619, allocations: 0.6918 MB / 0.9562 GB, free: 2.777 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.977e-05/0.962, allocations: 11.89 kB / 0.9562 GB, free: 2.77 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.598e-05/0.962, allocations: 14.23 kB / 0.9562 GB, free: 2.758 MB / 0.7169 GB Notification: Performance of SimCode: time 4.31e-07/0.962, allocations: 1.469 kB / 0.9562 GB, free: 2.758 MB / 0.7169 GB Notification: Performance of Templates: time 0.003878/0.9659, allocations: 1.405 MB / 0.9576 GB, free: 2.035 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