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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.001602/0.001602, allocations: 101.6 kB / 16.37 MB, free: 6.43 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.001938/0.001939, allocations: 195.8 kB / 17.31 MB, free: 5.781 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.402/1.402, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.227/2.227, allocations: 390.3 MB / 0.6655 GB, free: 0.5977 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.002275/0.002275, allocations: 64.12 kB / 0.814 GB, free: 32.59 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2741/0.2764, allocations: 140.4 MB / 0.9511 GB, free: 8.059 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan): time 0.00276/0.2792, allocations: 1.48 MB / 0.9526 GB, free: 6.574 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001289/0.2805, allocations: 0.7323 MB / 0.9533 GB, free: 5.836 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.38e-05/0.2806, allocations: 0 / 0.9533 GB, free: 5.836 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 3.219e-05/0.2807, allocations: 7.922 kB / 0.9533 GB, free: 5.828 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 5.862e-05/0.2807, allocations: 15.8 kB / 0.9533 GB, free: 5.812 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005953/0.2813, allocations: 123.6 kB / 0.9534 GB, free: 5.691 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0001335/0.2815, allocations: 71.84 kB / 0.9535 GB, free: 5.621 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001075/0.2816, allocations: 11.98 kB / 0.9535 GB, free: 5.609 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000106/0.2817, allocations: 39.84 kB / 0.9535 GB, free: 5.57 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 8.334e-05/0.2818, allocations: 43.83 kB / 0.9536 GB, free: 5.527 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 1.866e-05/0.2818, allocations: 4 kB / 0.9536 GB, free: 5.523 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002087/0.282, allocations: 95.91 kB / 0.9537 GB, free: 5.43 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 2.885e-05/0.2821, allocations: 15.86 kB / 0.9537 GB, free: 5.414 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 5.021e-05/0.2821, allocations: 35.84 kB / 0.9537 GB, free: 5.379 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0002714/0.2824, allocations: 143.6 kB / 0.9539 GB, free: 5.238 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 4.008e-06/0.2824, allocations: 0 / 0.9539 GB, free: 5.238 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.523e-06/0.2824, allocations: 0 / 0.9539 GB, free: 5.238 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 5.62e-06/0.2824, allocations: 4 kB / 0.9539 GB, free: 5.234 MB / 0.7325 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.0006714/0.2831, allocations: 412.9 kB / 0.9543 GB, free: 4.777 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.104e-05/0.2832, allocations: 12.03 kB / 0.9543 GB, free: 4.766 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5e-05/0.2832, allocations: 12.83 kB / 0.9543 GB, free: 4.754 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001402/0.2834, allocations: 172.3 kB / 0.9545 GB, free: 4.547 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.597e-05/0.2834, allocations: 4.375 kB / 0.9545 GB, free: 4.543 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.061e-05/0.2834, allocations: 4.375 kB / 0.9545 GB, free: 4.539 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001954/0.2836, allocations: 81.91 kB / 0.9545 GB, free: 4.453 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.556e-06/0.2837, allocations: 0 / 0.9545 GB, free: 4.453 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.177e-05/0.2837, allocations: 0 / 0.9545 GB, free: 4.453 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.969e-06/0.2837, allocations: 0 / 0.9545 GB, free: 4.453 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001303/0.2838, allocations: 39.95 kB / 0.9546 GB, free: 4.414 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006332/0.2845, allocations: 316.7 kB / 0.9549 GB, free: 4.055 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001296/0.2846, allocations: 58.48 kB / 0.9549 GB, free: 3.988 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.266e-05/0.2847, allocations: 36.97 kB / 0.955 GB, free: 3.949 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 2.165e-05/0.2847, allocations: 0 / 0.955 GB, free: 3.949 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002094/0.2849, allocations: 71.38 kB / 0.955 GB, free: 3.867 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=7): time 1.433e-06/0.2849, allocations: 0 / 0.955 GB, free: 3.867 MB / 0.7325 GB Notification: Performance of matching and sorting (n=7): time 0.0004024/0.2854, allocations: 145.6 kB / 0.9552 GB, free: 3.719 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.476e-05/0.2854, allocations: 59.39 kB / 0.9552 GB, free: 3.648 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001027/0.2855, allocations: 121.8 kB / 0.9553 GB, free: 3.52 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.351e-05/0.2856, allocations: 33.7 kB / 0.9554 GB, free: 3.48 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 5.976e-05/0.2856, allocations: 84.14 kB / 0.9555 GB, free: 3.395 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 2.175e-05/0.2857, allocations: 23.73 kB / 0.9555 GB, free: 3.371 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.198e-05/0.2857, allocations: 25.72 kB / 0.9555 GB, free: 3.34 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001054/0.2858, allocations: 326.8 kB / 0.9558 GB, free: 3.012 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.19e-05/0.2859, allocations: 23.98 kB / 0.9558 GB, free: 2.988 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001036/0.286, allocations: 50.55 kB / 0.9559 GB, free: 2.93 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001583/0.2862, allocations: 78.44 kB / 0.956 GB, free: 2.844 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.2862, allocations: 3.938 kB / 0.956 GB, free: 2.84 MB / 0.7325 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002391/0.2864, allocations: 113.5 kB / 0.9561 GB, free: 2.723 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.375e-05/0.2865, allocations: 4 kB / 0.9561 GB, free: 2.719 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.468e-06/0.2865, allocations: 0 / 0.9561 GB, free: 2.719 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.219e-05/0.2865, allocations: 0 / 0.9561 GB, free: 2.719 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.394e-05/0.2866, allocations: 15.98 kB / 0.9561 GB, free: 2.703 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.821e-06/0.2866, allocations: 0 / 0.9561 GB, free: 2.703 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.26e-05/0.2867, allocations: 15.95 kB / 0.9561 GB, free: 2.688 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.574e-05/0.2867, allocations: 8 kB / 0.9561 GB, free: 2.68 MB / 0.7325 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.174e-05/0.2868, allocations: 121.7 kB / 0.9562 GB, free: 2.551 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.629e-05/0.2868, allocations: 4 kB / 0.9562 GB, free: 2.547 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.822e-05/0.2869, allocations: 8.375 kB / 0.9562 GB, free: 2.535 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.056e-06/0.2869, allocations: 3.984 kB / 0.9563 GB, free: 2.531 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.998e-06/0.2869, allocations: 0 / 0.9563 GB, free: 2.531 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.518e-06/0.2869, allocations: 7.984 kB / 0.9563 GB, free: 2.523 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004372/0.2873, allocations: 386.3 kB / 0.9566 GB, free: 2.09 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.342e-06/0.2873, allocations: 4 kB / 0.9566 GB, free: 2.086 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.945e-05/0.2874, allocations: 7.938 kB / 0.9566 GB, free: 2.078 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.795e-06/0.2874, allocations: 0 / 0.9566 GB, free: 2.078 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.918e-06/0.2874, allocations: 0 / 0.9566 GB, free: 2.078 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.843e-06/0.2874, allocations: 0 / 0.9566 GB, free: 2.078 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.635e-06/0.2874, allocations: 3.938 kB / 0.9566 GB, free: 2.074 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002695/0.2877, allocations: 216 kB / 0.9568 GB, free: 1.848 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 3.947e-05/0.2877, allocations: 81.02 kB / 0.9569 GB, free: 1.75 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.003e-05/0.2878, allocations: 4 kB / 0.9569 GB, free: 1.746 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.827e-05/0.2879, allocations: 3.984 kB / 0.9569 GB, free: 1.742 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.23e-05/0.2879, allocations: 11.94 kB / 0.9569 GB, free: 1.73 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.101e-05/0.2879, allocations: 7.984 kB / 0.957 GB, free: 1.723 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 4.559e-05/0.288, allocations: 87.28 kB / 0.957 GB, free: 1.637 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.493e-06/0.288, allocations: 0 / 0.957 GB, free: 1.637 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002966/0.2883, allocations: 47.92 kB / 0.9571 GB, free: 1.59 MB / 0.7325 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.0003438/0.2886, allocations: 163 kB / 0.9572 GB, free: 1.434 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0002465/0.2889, allocations: 71.95 kB / 0.9573 GB, free: 1.363 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 3.767e-06/0.2889, allocations: 0 / 0.9573 GB, free: 1.363 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0001502/0.2891, allocations: 40.05 kB / 0.9573 GB, free: 1.324 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002537/0.2893, allocations: 10.06 kB / 0.9574 GB, free: 1.316 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003914/0.2897, allocations: 184.9 kB / 0.9575 GB, free: 1.105 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002276/0.29, allocations: 0.6922 MB / 0.9582 GB, free: 396 kB / 0.7325 GB Notification: Performance of simCode: alias equations: time 4.221e-05/0.29, allocations: 8 kB / 0.9582 GB, free: 388 kB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.67e-05/0.29, allocations: 15.38 kB / 0.9582 GB, free: 372 kB / 0.7325 GB Notification: Performance of SimCode: time 2.6e-07/0.2901, allocations: 0 / 0.9582 GB, free: 372 kB / 0.7325 GB Notification: Performance of Templates: time 0.004324/0.2944, allocations: 1.457 MB / 0.9597 GB, free: 14.91 MB / 0.7481 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 -s gbode -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/jenkins1/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