Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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: "" <> buildModelFMU(Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan,fileNamePrefix="Buildings_latest_Buildings_Occupants_Residential_Heating_Validation_Nicol2001HeatingPakistan",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan,fileNamePrefix="Buildings_latest_Buildings_Occupants_Residential_Heating_Validation_Nicol2001HeatingPakistan",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.004777/0.004777, allocations: 101.4 kB / 15.73 MB, free: 6.012 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.001217/0.001217, allocations: 195.8 kB / 16.67 MB, free: 5.949 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.392/1.392, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.915/2.915, allocations: 461.9 MB / 0.7348 GB, free: 14.61 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001485/0.001485, allocations: 59.89 kB / 1.054 GB, free: 7.691 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3283/0.3298, allocations: 157.4 MB / 1.207 GB, free: 10.19 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan): time 0.004393/0.3343, allocations: 1.475 MB / 1.209 GB, free: 8.703 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001562/0.3359, allocations: 0.7366 MB / 1.209 GB, free: 7.961 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.216e-05/0.336, allocations: 0 / 1.209 GB, free: 7.961 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 4.161e-05/0.3361, allocations: 3.938 kB / 1.209 GB, free: 7.957 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 7.643e-05/0.3362, allocations: 7.875 kB / 1.209 GB, free: 7.949 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007173/0.3369, allocations: 127.5 kB / 1.21 GB, free: 7.824 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0001615/0.3371, allocations: 83.77 kB / 1.21 GB, free: 7.742 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001219/0.3372, allocations: 15.94 kB / 1.21 GB, free: 7.727 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001198/0.3373, allocations: 35.91 kB / 1.21 GB, free: 7.691 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 8.452e-05/0.3374, allocations: 39.83 kB / 1.21 GB, free: 7.652 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 2.085e-05/0.3375, allocations: 4 kB / 1.21 GB, free: 7.648 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000264/0.3377, allocations: 99.84 kB / 1.21 GB, free: 7.551 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 3.757e-05/0.3378, allocations: 15.92 kB / 1.21 GB, free: 7.535 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 6.659e-05/0.3379, allocations: 35.86 kB / 1.21 GB, free: 7.5 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0003173/0.3382, allocations: 135.9 kB / 1.21 GB, free: 7.367 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 9.188e-06/0.3382, allocations: 0 / 1.21 GB, free: 7.367 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.833e-06/0.3382, allocations: 3.938 kB / 1.21 GB, free: 7.363 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 8.596e-06/0.3382, allocations: 4 kB / 1.21 GB, free: 7.359 MB / 0.9669 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.0009175/0.3391, allocations: 414.9 kB / 1.21 GB, free: 6.902 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 5.741e-05/0.3392, allocations: 12.62 kB / 1.21 GB, free: 6.891 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.53e-05/0.3393, allocations: 34.75 kB / 1.21 GB, free: 6.848 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.991e-05/0.3393, allocations: 12.78 kB / 1.21 GB, free: 6.836 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001889/0.3395, allocations: 188.2 kB / 1.211 GB, free: 6.613 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.041e-05/0.3396, allocations: 4.375 kB / 1.211 GB, free: 6.609 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.479e-05/0.3396, allocations: 4.375 kB / 1.211 GB, free: 6.605 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002054/0.3398, allocations: 73.77 kB / 1.211 GB, free: 6.527 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.096e-05/0.3399, allocations: 3.938 kB / 1.211 GB, free: 6.523 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.204e-05/0.3399, allocations: 0 / 1.211 GB, free: 6.523 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.022e-05/0.3399, allocations: 7.984 kB / 1.211 GB, free: 6.516 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001502/0.34, allocations: 39.91 kB / 1.211 GB, free: 6.477 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006651/0.3407, allocations: 316.7 kB / 1.211 GB, free: 6.117 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001315/0.3409, allocations: 50.55 kB / 1.211 GB, free: 6.059 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.253e-05/0.3409, allocations: 32.97 kB / 1.211 GB, free: 6.023 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 2.12e-05/0.341, allocations: 0 / 1.211 GB, free: 6.023 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002595/0.3412, allocations: 87.38 kB / 1.211 GB, free: 5.926 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=7): time 1.763e-06/0.3413, allocations: 0 / 1.211 GB, free: 5.926 MB / 0.9669 GB Notification: Performance of matching and sorting (n=7): time 0.0004037/0.3417, allocations: 133.6 kB / 1.211 GB, free: 5.789 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.045e-05/0.3417, allocations: 51.41 kB / 1.211 GB, free: 5.727 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001187/0.3419, allocations: 125.7 kB / 1.212 GB, free: 5.594 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.053e-05/0.3419, allocations: 25.7 kB / 1.212 GB, free: 5.562 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 6.825e-05/0.342, allocations: 96.14 kB / 1.212 GB, free: 5.465 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 2.121e-05/0.342, allocations: 15.75 kB / 1.212 GB, free: 5.449 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.951e-05/0.3421, allocations: 29.7 kB / 1.212 GB, free: 5.414 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001291/0.3422, allocations: 322.8 kB / 1.212 GB, free: 5.09 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.763e-05/0.3423, allocations: 31.92 kB / 1.212 GB, free: 5.059 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.604e-05/0.3424, allocations: 46.98 kB / 1.212 GB, free: 5.004 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001701/0.3426, allocations: 74.55 kB / 1.212 GB, free: 4.922 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-06/0.3426, allocations: 0 / 1.212 GB, free: 4.922 MB / 0.9669 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002482/0.3428, allocations: 109.5 kB / 1.212 GB, free: 4.809 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.766e-05/0.3429, allocations: 4 kB / 1.212 GB, free: 4.805 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.586e-06/0.3429, allocations: 4 kB / 1.212 GB, free: 4.801 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.526e-05/0.3429, allocations: 8 kB / 1.212 GB, free: 4.793 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.705e-05/0.343, allocations: 19.92 kB / 1.212 GB, free: 4.773 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.683e-06/0.343, allocations: 0 / 1.212 GB, free: 4.773 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.634e-05/0.3431, allocations: 7.984 kB / 1.212 GB, free: 4.766 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.202e-05/0.3431, allocations: 4 kB / 1.212 GB, free: 4.762 MB / 0.9669 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.000106/0.3432, allocations: 117.8 kB / 1.212 GB, free: 4.637 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.886e-05/0.3432, allocations: 7.906 kB / 1.212 GB, free: 4.629 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.326e-05/0.3433, allocations: 16.38 kB / 1.212 GB, free: 4.609 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.214e-06/0.3433, allocations: 0 / 1.212 GB, free: 4.609 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.039e-06/0.3433, allocations: 0 / 1.212 GB, free: 4.609 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.6e-06/0.3433, allocations: 3.984 kB / 1.212 GB, free: 4.605 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004717/0.3438, allocations: 382.4 kB / 1.213 GB, free: 4.176 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.354e-06/0.3438, allocations: 3.938 kB / 1.213 GB, free: 4.172 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.037e-05/0.3438, allocations: 7.984 kB / 1.213 GB, free: 4.164 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.795e-06/0.3439, allocations: 0 / 1.213 GB, free: 4.164 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.155e-05/0.3439, allocations: 0 / 1.213 GB, free: 4.164 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.986e-06/0.3439, allocations: 11.94 kB / 1.213 GB, free: 4.152 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.324e-06/0.3439, allocations: 4 kB / 1.213 GB, free: 4.148 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003076/0.3442, allocations: 207.8 kB / 1.213 GB, free: 3.93 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 5.204e-05/0.3443, allocations: 89.02 kB / 1.213 GB, free: 3.824 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.847e-05/0.3443, allocations: 0 / 1.213 GB, free: 3.824 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.976e-05/0.3444, allocations: 11.92 kB / 1.213 GB, free: 3.812 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.995e-05/0.3444, allocations: 0 / 1.213 GB, free: 3.812 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.106e-05/0.3444, allocations: 8 kB / 1.213 GB, free: 3.805 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 5.633e-05/0.3445, allocations: 95.42 kB / 1.213 GB, free: 3.711 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1e-07/0.3445, allocations: 0 / 1.213 GB, free: 3.711 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0003096/0.3448, allocations: 39.98 kB / 1.213 GB, free: 3.672 MB / 0.9669 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.0008545/0.3457, allocations: 0.8079 MB / 1.214 GB, free: 2.852 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0002425/0.3459, allocations: 79.81 kB / 1.214 GB, free: 2.773 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.346, allocations: 0 / 1.214 GB, free: 2.773 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 9.798e-05/0.3461, allocations: 31.98 kB / 1.214 GB, free: 2.742 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002608/0.3463, allocations: 21.77 kB / 1.214 GB, free: 2.723 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001758/0.3481, allocations: 1.495 MB / 1.216 GB, free: 1.133 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002846/0.3484, allocations: 0.6924 MB / 1.216 GB, free: 424 kB / 0.9669 GB Notification: Performance of simCode: alias equations: time 4.256e-05/0.3484, allocations: 4 kB / 1.216 GB, free: 420 kB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.305e-05/0.3485, allocations: 23.42 kB / 1.216 GB, free: 396 kB / 0.9669 GB Notification: Performance of SimCode: time 4.21e-07/0.3485, allocations: 0 / 1.216 GB, free: 396 kB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0216/0.3701, allocations: 2.682 MB / 1.219 GB, free: 13.85 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.782/8.152, allocations: 9.016 kB / 1.219 GB, free: 13.84 MB / 0.9825 GB (rm -f Buildings_latest_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan.pipe ; mkfifo Buildings_latest_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan.pipe ; head -c 1048576 < Buildings_latest_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan.pipe >> ../files/Buildings_latest_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan_res.mat --tempDir=temp_Buildings_latest_Buildings_Occupants_Residential_Heating_Validation_Nicol2001HeatingPakistan_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Occupants_Residential_Heating_Validation_Nicol2001HeatingPakistan.fmu > Buildings_latest_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Occupants_Residential_Heating_Validation_Nicol2001HeatingPakistan.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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,TOut.y,hea.A,hea.B,hea.TOut,hea.occ,hea.on,hea.p,hea.samplePeriod,hea.seed,occ.startTime,occ.startValue,occ.y,time