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: "" <> buildModelFMU(Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan,fileNamePrefix="Buildings_9_Buildings_Occupants_Residential_Heating_Validation_Nicol2001HeatingPakistan",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan,fileNamePrefix="Buildings_9_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.007425/0.007433, allocations: 100.2 kB / 15.73 MB, free: 6.469 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.001598/0.001598, allocations: 193.1 kB / 16.67 MB, free: 6.379 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.453/1.453, allocations: 222.9 MB / 240.4 MB, free: 4.305 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.602/2.602, allocations: 390.2 MB / 0.6648 GB, free: 196 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001494/0.001494, allocations: 62.67 kB / 0.9504 GB, free: 5.984 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3183/0.3198, allocations: 140.4 MB / 1.087 GB, free: 2.012 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan): time 0.00349/0.3233, allocations: 1.477 MB / 1.089 GB, free: 0.5234 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001554/0.3249, allocations: 0.7337 MB / 1.09 GB, free: 15.79 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.425e-05/0.325, allocations: 0 / 1.09 GB, free: 15.79 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 4.14e-05/0.325, allocations: 3.938 kB / 1.09 GB, free: 15.78 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 7.237e-05/0.3252, allocations: 11.88 kB / 1.09 GB, free: 15.77 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007379/0.3259, allocations: 123.6 kB / 1.09 GB, free: 15.65 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001578/0.3261, allocations: 75.77 kB / 1.09 GB, free: 15.57 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001226/0.3262, allocations: 19.97 kB / 1.09 GB, free: 15.55 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001255/0.3263, allocations: 35.84 kB / 1.09 GB, free: 15.52 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 8.865e-05/0.3264, allocations: 35.84 kB / 1.09 GB, free: 15.48 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.432e-05/0.3265, allocations: 11.98 kB / 1.09 GB, free: 15.47 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002479/0.3267, allocations: 87.92 kB / 1.09 GB, free: 15.39 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 3.926e-05/0.3268, allocations: 23.91 kB / 1.09 GB, free: 15.36 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 5.938e-05/0.3268, allocations: 39.8 kB / 1.09 GB, free: 15.32 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0003207/0.3272, allocations: 143 kB / 1.09 GB, free: 15.19 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.328e-06/0.3272, allocations: 0 / 1.09 GB, free: 15.19 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.814e-06/0.3272, allocations: 0 / 1.09 GB, free: 15.19 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 6.603e-06/0.3272, allocations: 0 / 1.09 GB, free: 15.19 MB / 0.8575 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.0008693/0.3281, allocations: 415 kB / 1.091 GB, free: 14.73 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 5.7e-05/0.3281, allocations: 8.031 kB / 1.091 GB, free: 14.72 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.808e-05/0.3282, allocations: 38.75 kB / 1.091 GB, free: 14.68 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.25e-05/0.3283, allocations: 4.844 kB / 1.091 GB, free: 14.67 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001478/0.3284, allocations: 188.1 kB / 1.091 GB, free: 14.45 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.431e-05/0.3284, allocations: 4.375 kB / 1.091 GB, free: 14.45 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.824e-05/0.3285, allocations: 8.312 kB / 1.091 GB, free: 14.44 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000207/0.3287, allocations: 73.78 kB / 1.091 GB, free: 14.36 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.417e-06/0.3287, allocations: 0 / 1.091 GB, free: 14.36 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.202e-05/0.3287, allocations: 0 / 1.091 GB, free: 14.36 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.53e-06/0.3287, allocations: 0 / 1.091 GB, free: 14.36 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001363/0.3289, allocations: 35.97 kB / 1.091 GB, free: 14.32 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006628/0.3296, allocations: 312.8 kB / 1.091 GB, free: 13.97 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001384/0.3297, allocations: 54.5 kB / 1.091 GB, free: 13.91 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.411e-05/0.3298, allocations: 36.95 kB / 1.091 GB, free: 13.87 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.359e-05/0.3298, allocations: 0 / 1.091 GB, free: 13.87 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002425/0.3301, allocations: 79.38 kB / 1.091 GB, free: 13.78 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=7): time 1.463e-06/0.3301, allocations: 0 / 1.091 GB, free: 13.78 MB / 0.8575 GB Notification: Performance of matching and sorting (n=7): time 0.0004246/0.3305, allocations: 141.5 kB / 1.092 GB, free: 13.63 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.023e-05/0.3306, allocations: 55.41 kB / 1.092 GB, free: 13.57 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001111/0.3307, allocations: 129.7 kB / 1.092 GB, free: 13.43 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.003e-05/0.3307, allocations: 29.7 kB / 1.092 GB, free: 13.39 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 6.03e-05/0.3308, allocations: 92.05 kB / 1.092 GB, free: 13.3 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.152e-05/0.3308, allocations: 15.81 kB / 1.092 GB, free: 13.29 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.524e-05/0.3309, allocations: 29.7 kB / 1.092 GB, free: 13.25 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001807/0.3311, allocations: 326.8 kB / 1.092 GB, free: 12.92 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.671e-05/0.3312, allocations: 19.98 kB / 1.092 GB, free: 12.9 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001027/0.3313, allocations: 50.56 kB / 1.092 GB, free: 12.84 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000163/0.3315, allocations: 78.8 kB / 1.092 GB, free: 12.76 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.3315, allocations: 7.875 kB / 1.092 GB, free: 12.75 MB / 0.8575 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002516/0.3317, allocations: 117.6 kB / 1.092 GB, free: 12.63 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.905e-05/0.3317, allocations: 5.719 kB / 1.092 GB, free: 12.62 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.763e-06/0.3318, allocations: 4.062 kB / 1.092 GB, free: 12.62 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.501e-05/0.3318, allocations: 0 / 1.092 GB, free: 12.62 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.61e-05/0.3319, allocations: 15.98 kB / 1.092 GB, free: 12.61 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.302e-06/0.3319, allocations: 0 / 1.092 GB, free: 12.61 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.672e-05/0.332, allocations: 11.91 kB / 1.092 GB, free: 12.59 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.648e-05/0.332, allocations: 7.984 kB / 1.092 GB, free: 12.59 MB / 0.8575 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.0001217/0.3321, allocations: 127.6 kB / 1.093 GB, free: 12.45 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.941e-05/0.3321, allocations: 7.906 kB / 1.093 GB, free: 12.45 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.954e-05/0.3322, allocations: 12.38 kB / 1.093 GB, free: 12.43 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.044e-06/0.3322, allocations: 0 / 1.093 GB, free: 12.43 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.141e-06/0.3322, allocations: 0 / 1.093 GB, free: 12.43 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.948e-06/0.3322, allocations: 0 / 1.093 GB, free: 12.43 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004557/0.3327, allocations: 382.4 kB / 1.093 GB, free: 12 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.424e-06/0.3327, allocations: 0 / 1.093 GB, free: 12 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.387e-05/0.3327, allocations: 7.984 kB / 1.093 GB, free: 12 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.188e-06/0.3327, allocations: 0 / 1.093 GB, free: 12 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.234e-05/0.3328, allocations: 4 kB / 1.093 GB, free: 11.99 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.506e-06/0.3328, allocations: 7.938 kB / 1.093 GB, free: 11.98 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.484e-06/0.3328, allocations: 3.984 kB / 1.093 GB, free: 11.98 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002936/0.3331, allocations: 207.4 kB / 1.093 GB, free: 11.76 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 4.728e-05/0.3331, allocations: 81.02 kB / 1.093 GB, free: 11.66 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.846e-05/0.3332, allocations: 4 kB / 1.093 GB, free: 11.66 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.62e-05/0.3333, allocations: 7.938 kB / 1.093 GB, free: 11.65 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.367e-05/0.3333, allocations: 11.98 kB / 1.093 GB, free: 11.64 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.458e-06/0.3333, allocations: 0 / 1.093 GB, free: 11.64 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 5.162e-05/0.3334, allocations: 95.27 kB / 1.093 GB, free: 11.55 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.502e-06/0.3334, allocations: 3.938 kB / 1.093 GB, free: 11.54 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0003098/0.3337, allocations: 43.92 kB / 1.093 GB, free: 11.5 MB / 0.8575 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.0008134/0.3345, allocations: 0.793 MB / 1.094 GB, free: 10.7 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0002484/0.3348, allocations: 76.19 kB / 1.094 GB, free: 10.62 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.3348, allocations: 0 / 1.094 GB, free: 10.62 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 9.759e-05/0.3349, allocations: 36.12 kB / 1.094 GB, free: 10.59 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000265/0.3352, allocations: 20.05 kB / 1.094 GB, free: 10.57 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001686/0.3369, allocations: 1.49 MB / 1.096 GB, free: 8.98 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000253/0.3371, allocations: 0.6924 MB / 1.096 GB, free: 8.262 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 4.338e-05/0.3372, allocations: 7.75 kB / 1.096 GB, free: 8.254 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.926e-05/0.3373, allocations: 15.42 kB / 1.096 GB, free: 8.238 MB / 0.8575 GB Notification: Performance of SimCode: time 2.11e-07/0.3373, allocations: 0 / 1.096 GB, free: 8.238 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01975/0.357, allocations: 2.676 MB / 1.099 GB, free: 5.707 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.788/8.146, allocations: 23.14 kB / 1.099 GB, free: 5.688 MB / 0.8575 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan_res.mat --tempDir=temp_Buildings_9_Buildings_Occupants_Residential_Heating_Validation_Nicol2001HeatingPakistan_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Occupants_Residential_Heating_Validation_Nicol2001HeatingPakistan.fmu > 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,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