Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.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_10_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_10_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.001517/0.001517, allocations: 106.8 kB / 16.37 MB, free: 6.477 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.001797/0.001797, allocations: 193.8 kB / 17.31 MB, free: 5.824 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.324/1.324, allocations: 222.9 MB / 241 MB, free: 15.19 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.401/2.401, allocations: 437.1 MB / 0.7112 GB, free: 4.312 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001291/0.001291, allocations: 56.28 kB / 0.8707 GB, free: 1.375 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2689/0.2702, allocations: 151.6 MB / 1.019 GB, free: 9.781 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan): time 0.002412/0.2726, allocations: 1.475 MB / 1.02 GB, free: 8.293 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.001083/0.2737, allocations: 0.7414 MB / 1.021 GB, free: 7.547 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.698e-05/0.2738, allocations: 4 kB / 1.021 GB, free: 7.543 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 2.536e-05/0.2738, allocations: 3.938 kB / 1.021 GB, free: 7.539 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 4.753e-05/0.2739, allocations: 11.86 kB / 1.021 GB, free: 7.527 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004779/0.2743, allocations: 123.6 kB / 1.021 GB, free: 7.406 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0001092/0.2745, allocations: 67.83 kB / 1.021 GB, free: 7.34 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 8.441e-05/0.2746, allocations: 16 kB / 1.021 GB, free: 7.324 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 8.098e-05/0.2746, allocations: 47.77 kB / 1.021 GB, free: 7.277 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 6.47e-05/0.2747, allocations: 35.91 kB / 1.021 GB, free: 7.242 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 2.186e-05/0.2747, allocations: 8 kB / 1.021 GB, free: 7.234 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001689/0.2749, allocations: 83.91 kB / 1.021 GB, free: 7.152 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 2.569e-05/0.275, allocations: 19.92 kB / 1.021 GB, free: 7.133 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 4.647e-05/0.275, allocations: 39.78 kB / 1.021 GB, free: 7.094 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0002015/0.2752, allocations: 143.6 kB / 1.022 GB, free: 6.953 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 3.206e-06/0.2752, allocations: 0 / 1.022 GB, free: 6.953 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.463e-06/0.2752, allocations: 4 kB / 1.022 GB, free: 6.949 MB / 0.795 GB Notification: Performance of Transformations before backend: time 3.837e-06/0.2752, allocations: 0 / 1.022 GB, free: 6.949 MB / 0.795 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.0005751/0.2758, allocations: 420.9 kB / 1.022 GB, free: 6.484 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 3.781e-05/0.2759, allocations: 8.625 kB / 1.022 GB, free: 6.477 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.259e-05/0.2759, allocations: 8.844 kB / 1.022 GB, free: 6.469 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000107/0.276, allocations: 172.2 kB / 1.022 GB, free: 6.262 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.498e-05/0.2761, allocations: 12.36 kB / 1.022 GB, free: 6.25 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.837e-05/0.2761, allocations: 8.375 kB / 1.022 GB, free: 6.242 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001697/0.2763, allocations: 73.91 kB / 1.022 GB, free: 6.164 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.552e-06/0.2763, allocations: 0 / 1.022 GB, free: 6.164 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.46e-05/0.2763, allocations: 8 kB / 1.022 GB, free: 6.156 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.159e-06/0.2763, allocations: 0 / 1.022 GB, free: 6.156 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001207/0.2764, allocations: 35.97 kB / 1.022 GB, free: 6.121 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005584/0.277, allocations: 312.8 kB / 1.023 GB, free: 5.766 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001189/0.2771, allocations: 54.5 kB / 1.023 GB, free: 5.703 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.848e-05/0.2772, allocations: 32.97 kB / 1.023 GB, free: 5.668 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 1.926e-05/0.2772, allocations: 4 kB / 1.023 GB, free: 5.664 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000215/0.2774, allocations: 71.38 kB / 1.023 GB, free: 5.582 MB / 0.795 GB Notification: Performance of pre-optimization done (n=7): time 1.523e-06/0.2775, allocations: 4 kB / 1.023 GB, free: 5.578 MB / 0.795 GB Notification: Performance of matching and sorting (n=7): time 0.0003675/0.2778, allocations: 153.5 kB / 1.023 GB, free: 5.422 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.108e-05/0.2779, allocations: 51.41 kB / 1.023 GB, free: 5.359 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.889e-05/0.278, allocations: 117.8 kB / 1.023 GB, free: 5.234 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 1.957e-05/0.278, allocations: 29.7 kB / 1.023 GB, free: 5.199 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 6.505e-05/0.2781, allocations: 92.12 kB / 1.023 GB, free: 5.105 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 2.149e-05/0.2781, allocations: 19.75 kB / 1.023 GB, free: 5.086 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.774e-05/0.2782, allocations: 29.7 kB / 1.023 GB, free: 5.051 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001112/0.2783, allocations: 322.8 kB / 1.023 GB, free: 4.727 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.361e-05/0.2784, allocations: 27.98 kB / 1.024 GB, free: 4.699 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.507e-05/0.2785, allocations: 50.88 kB / 1.024 GB, free: 4.641 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001468/0.2786, allocations: 78.48 kB / 1.024 GB, free: 4.555 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.2786, allocations: 0 / 1.024 GB, free: 4.555 MB / 0.795 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002229/0.2789, allocations: 113.5 kB / 1.024 GB, free: 4.438 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 1.301e-05/0.2789, allocations: 8 kB / 1.024 GB, free: 4.43 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.429e-06/0.2789, allocations: 0 / 1.024 GB, free: 4.43 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.959e-06/0.2789, allocations: 0 / 1.024 GB, free: 4.43 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.645e-05/0.279, allocations: 11.98 kB / 1.024 GB, free: 4.418 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.193e-06/0.279, allocations: 4 kB / 1.024 GB, free: 4.414 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.515e-05/0.2791, allocations: 11.97 kB / 1.024 GB, free: 4.402 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.122e-05/0.2791, allocations: 0 / 1.024 GB, free: 4.402 MB / 0.795 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.942e-05/0.2792, allocations: 134.4 kB / 1.024 GB, free: 4.262 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.348e-05/0.2792, allocations: 0 / 1.024 GB, free: 4.262 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.613e-05/0.2793, allocations: 8.375 kB / 1.024 GB, free: 4.254 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.503e-06/0.2793, allocations: 0 / 1.024 GB, free: 4.254 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.148e-06/0.2793, allocations: 0 / 1.024 GB, free: 4.254 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.866e-06/0.2793, allocations: 0 / 1.024 GB, free: 4.254 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004272/0.2797, allocations: 390.7 kB / 1.024 GB, free: 3.816 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.793e-06/0.2797, allocations: 0 / 1.024 GB, free: 3.816 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.25e-05/0.2798, allocations: 7.938 kB / 1.024 GB, free: 3.809 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.148e-06/0.2798, allocations: 3.984 kB / 1.024 GB, free: 3.805 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.146e-05/0.2798, allocations: 4 kB / 1.024 GB, free: 3.801 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.432e-06/0.2798, allocations: 0 / 1.024 GB, free: 3.801 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.355e-06/0.2798, allocations: 4.016 kB / 1.024 GB, free: 3.797 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002623/0.2801, allocations: 215.4 kB / 1.025 GB, free: 3.57 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 3.932e-05/0.2801, allocations: 85.09 kB / 1.025 GB, free: 3.469 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.789e-05/0.2802, allocations: 4 kB / 1.025 GB, free: 3.465 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.028e-05/0.2802, allocations: 4 kB / 1.025 GB, free: 3.461 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.941e-05/0.2803, allocations: 19.84 kB / 1.025 GB, free: 3.441 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.745e-06/0.2803, allocations: 0 / 1.025 GB, free: 3.441 MB / 0.795 GB Notification: Performance of sorting global known variables: time 4.995e-05/0.2804, allocations: 95.27 kB / 1.025 GB, free: 3.348 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.41e-07/0.2804, allocations: 4 kB / 1.025 GB, free: 3.344 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0002769/0.2807, allocations: 40 kB / 1.025 GB, free: 3.305 MB / 0.795 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.0002853/0.2809, allocations: 153.2 kB / 1.025 GB, free: 3.16 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0002171/0.2812, allocations: 67.95 kB / 1.025 GB, free: 3.094 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 3.868e-06/0.2812, allocations: 4.125 kB / 1.025 GB, free: 3.09 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 9.416e-05/0.2813, allocations: 35.92 kB / 1.025 GB, free: 3.055 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002376/0.2815, allocations: 12.53 kB / 1.025 GB, free: 3.043 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003477/0.2819, allocations: 176.9 kB / 1.025 GB, free: 2.84 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002255/0.2821, allocations: 0.6885 MB / 1.026 GB, free: 2.125 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 3.464e-05/0.2822, allocations: 8 kB / 1.026 GB, free: 2.117 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.726e-05/0.2822, allocations: 11.42 kB / 1.026 GB, free: 2.105 MB / 0.795 GB Notification: Performance of SimCode: time 2.61e-07/0.2822, allocations: 3.938 kB / 1.026 GB, free: 2.102 MB / 0.795 GB Notification: Performance of Templates: time 0.003732/0.2859, allocations: 1.472 MB / 1.027 GB, free: 0.6445 MB / 0.795 GB make -j1 -f Buildings_10_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan.makefile (rm -f Buildings_10_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan.pipe ; mkfifo Buildings_10_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan.pipe ; head -c 1048576 < Buildings_10_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan.pipe >> ../files/Buildings_10_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan.sim & ./Buildings_10_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Occupants_Residential_Heating_Validation_Nicol2001HeatingPakistan.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_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