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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-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.0009811/0.0009811, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.005262/0.005262, allocations: 169.9 kB / 16.26 MB, free: 6.613 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.357/1.357, allocations: 223.3 MB / 240.3 MB, free: 5.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.549/2.549, allocations: 462.6 MB / 0.7364 GB, free: 15.58 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003683/0.0003684, allocations: 12.91 kB / 0.9029 GB, free: 36.41 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3453/0.3457, allocations: 159.6 MB / 1.059 GB, free: 4.871 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan): time 0.001823/0.3476, allocations: 1.209 MB / 1.06 GB, free: 3.652 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001324/0.3489, allocations: 0.7169 MB / 1.061 GB, free: 2.93 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.258e-05/0.349, allocations: 3.938 kB / 1.061 GB, free: 2.926 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 2.543e-05/0.349, allocations: 7.922 kB / 1.061 GB, free: 2.918 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 5.887e-05/0.3491, allocations: 11.92 kB / 1.061 GB, free: 2.906 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005089/0.3496, allocations: 99.78 kB / 1.061 GB, free: 2.809 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001166/0.3497, allocations: 71.83 kB / 1.061 GB, free: 2.738 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 8.77e-05/0.3498, allocations: 7.984 kB / 1.061 GB, free: 2.73 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 9.439e-05/0.3499, allocations: 31.86 kB / 1.061 GB, free: 2.699 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 6.95e-05/0.35, allocations: 35.83 kB / 1.061 GB, free: 2.664 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.905e-05/0.35, allocations: 4 kB / 1.061 GB, free: 2.66 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001918/0.3502, allocations: 91.91 kB / 1.061 GB, free: 2.57 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.374e-05/0.3503, allocations: 11.92 kB / 1.061 GB, free: 2.559 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 6.076e-05/0.3503, allocations: 53.56 kB / 1.061 GB, free: 2.5 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002171/0.3505, allocations: 151.8 kB / 1.061 GB, free: 2.352 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.166e-06/0.3506, allocations: 0 / 1.061 GB, free: 2.352 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.112e-06/0.3506, allocations: 0 / 1.061 GB, free: 2.352 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 3.697e-06/0.3506, allocations: 3.938 kB / 1.061 GB, free: 2.348 MB / 0.8106 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.0005773/0.3512, allocations: 401 kB / 1.062 GB, free: 1.902 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.297e-05/0.3512, allocations: 15.97 kB / 1.062 GB, free: 1.887 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.625e-05/0.3513, allocations: 38.75 kB / 1.062 GB, free: 1.84 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.3e-05/0.3513, allocations: 8.922 kB / 1.062 GB, free: 1.832 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001104/0.3514, allocations: 172.2 kB / 1.062 GB, free: 1.625 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.997e-05/0.3514, allocations: 384 / 1.062 GB, free: 1.625 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.069e-05/0.3515, allocations: 8.375 kB / 1.062 GB, free: 1.617 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000185/0.3517, allocations: 77.72 kB / 1.062 GB, free: 1.535 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.903e-06/0.3517, allocations: 0 / 1.062 GB, free: 1.535 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.155e-05/0.3517, allocations: 0 / 1.062 GB, free: 1.535 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.943e-06/0.3517, allocations: 0 / 1.062 GB, free: 1.535 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001347/0.3518, allocations: 51.91 kB / 1.062 GB, free: 1.484 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005925/0.3524, allocations: 324.7 kB / 1.062 GB, free: 1.117 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001266/0.3526, allocations: 54.48 kB / 1.062 GB, free: 1.055 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.503e-05/0.3527, allocations: 36.97 kB / 1.062 GB, free: 1.016 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.092e-05/0.3527, allocations: 0 / 1.062 GB, free: 1.016 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001968/0.3529, allocations: 87.36 kB / 1.062 GB, free: 0.918 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=7): time 1.343e-06/0.3529, allocations: 0 / 1.062 GB, free: 0.918 MB / 0.8106 GB Notification: Performance of matching and sorting (n=7): time 0.000406/0.3533, allocations: 141.5 kB / 1.063 GB, free: 0.7734 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.37e-05/0.3534, allocations: 59.34 kB / 1.063 GB, free: 0.7031 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001064/0.3535, allocations: 129.8 kB / 1.063 GB, free: 0.5664 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.907e-05/0.3535, allocations: 25.7 kB / 1.063 GB, free: 0.5352 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 4.852e-05/0.3536, allocations: 88.14 kB / 1.063 GB, free: 456 kB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 3.565e-05/0.3536, allocations: 27.8 kB / 1.063 GB, free: 428 kB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.036e-05/0.3536, allocations: 17.72 kB / 1.063 GB, free: 404 kB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001177/0.3538, allocations: 322.8 kB / 1.063 GB, free: 72 kB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.304e-05/0.3539, allocations: 31.98 kB / 1.063 GB, free: 40 kB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001048/0.354, allocations: 50.56 kB / 1.063 GB, free: 15.98 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001779/0.3542, allocations: 78.48 kB / 1.063 GB, free: 15.89 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.664e-06/0.3542, allocations: 4 kB / 1.063 GB, free: 15.89 MB / 0.8262 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002377/0.3544, allocations: 113.5 kB / 1.063 GB, free: 15.77 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.556e-05/0.3544, allocations: 8 kB / 1.063 GB, free: 15.77 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.408e-06/0.3544, allocations: 0 / 1.063 GB, free: 15.77 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.068e-05/0.3545, allocations: 0 / 1.063 GB, free: 15.77 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.639e-05/0.3546, allocations: 19.98 kB / 1.063 GB, free: 15.75 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.971e-06/0.3546, allocations: 4.062 kB / 1.064 GB, free: 15.74 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.262e-05/0.3547, allocations: 4 kB / 1.064 GB, free: 15.74 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.265e-05/0.3547, allocations: 7.938 kB / 1.064 GB, free: 15.73 MB / 0.8262 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.928e-05/0.3548, allocations: 125.7 kB / 1.064 GB, free: 15.6 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.727e-05/0.3548, allocations: 7.906 kB / 1.064 GB, free: 15.59 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.421e-05/0.3548, allocations: 8.375 kB / 1.064 GB, free: 15.58 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.136e-06/0.3548, allocations: 7.938 kB / 1.064 GB, free: 15.57 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.697e-06/0.3548, allocations: 4 kB / 1.064 GB, free: 15.57 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.925e-06/0.3548, allocations: 0 / 1.064 GB, free: 15.57 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004642/0.3553, allocations: 390.4 kB / 1.064 GB, free: 15.13 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.407e-06/0.3553, allocations: 4 kB / 1.064 GB, free: 15.13 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.135e-05/0.3554, allocations: 11.92 kB / 1.064 GB, free: 15.12 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.635e-06/0.3554, allocations: 0 / 1.064 GB, free: 15.12 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.106e-05/0.3554, allocations: 7.984 kB / 1.064 GB, free: 15.11 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.306e-06/0.3554, allocations: 3.938 kB / 1.064 GB, free: 15.11 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.3554, allocations: 0 / 1.064 GB, free: 15.11 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002832/0.3557, allocations: 211.4 kB / 1.064 GB, free: 14.88 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.064e-05/0.3558, allocations: 89.02 kB / 1.064 GB, free: 14.78 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.735e-05/0.3558, allocations: 4 kB / 1.064 GB, free: 14.77 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.837e-05/0.3559, allocations: 7.938 kB / 1.064 GB, free: 14.77 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.24e-05/0.3559, allocations: 7.984 kB / 1.064 GB, free: 14.76 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.937e-06/0.3559, allocations: 0 / 1.064 GB, free: 14.76 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 5.137e-05/0.356, allocations: 95.27 kB / 1.064 GB, free: 14.66 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.2e-07/0.356, allocations: 0 / 1.064 GB, free: 14.66 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002908/0.3563, allocations: 39.98 kB / 1.064 GB, free: 14.62 MB / 0.8262 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.0008321/0.3571, allocations: 0.8162 MB / 1.065 GB, free: 13.8 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002321/0.3574, allocations: 79.89 kB / 1.065 GB, free: 13.72 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.3574, allocations: 3.938 kB / 1.065 GB, free: 13.72 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 9.7e-05/0.3575, allocations: 35.98 kB / 1.065 GB, free: 13.68 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000255/0.3578, allocations: 11.92 kB / 1.065 GB, free: 13.67 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001649/0.3594, allocations: 1.522 MB / 1.067 GB, free: 12.05 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000264/0.3597, allocations: 0.6887 MB / 1.068 GB, free: 11.34 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.717e-05/0.3597, allocations: 4 kB / 1.068 GB, free: 11.34 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.531e-05/0.3598, allocations: 27.42 kB / 1.068 GB, free: 11.31 MB / 0.8262 GB Notification: Performance of SimCode: time 2.9e-07/0.3598, allocations: 0 / 1.068 GB, free: 11.31 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01331/0.3731, allocations: 2.343 MB / 1.07 GB, free: 9.145 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002186/0.3734, allocations: 285.6 kB / 1.07 GB, free: 8.762 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.754/2.128, allocations: 0 / 1.07 GB, free: 8.762 MB / 0.8262 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