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: "" <> 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.00123/0.00123, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001275/0.001275, allocations: 193.2 kB / 16.14 MB, free: 6.652 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.256/1.256, allocations: 222.9 MB / 239.8 MB, free: 4.598 MB / 190.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.119/2.119, allocations: 390.2 MB / 0.6643 GB, free: 0.6719 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001202/0.001202, allocations: 67.89 kB / 0.812 GB, free: 14.82 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4859/0.4871, allocations: 140.4 MB / 0.949 GB, free: 9.148 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan): time 0.0023/0.4894, allocations: 1.534 MB / 0.9505 GB, free: 7.941 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001004/0.4905, allocations: 0.7287 MB / 0.9513 GB, free: 7.383 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.785e-05/0.4905, allocations: 1.594 kB / 0.9513 GB, free: 7.383 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.073e-05/0.4906, allocations: 3.938 kB / 0.9513 GB, free: 7.379 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 4.733e-05/0.4906, allocations: 5.688 kB / 0.9513 GB, free: 7.375 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004233/0.491, allocations: 112 kB / 0.9514 GB, free: 7.293 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 8.313e-05/0.4911, allocations: 75.89 kB / 0.9514 GB, free: 7.25 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 7.592e-05/0.4912, allocations: 16.73 kB / 0.9515 GB, free: 7.238 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 7.718e-05/0.4913, allocations: 38.59 kB / 0.9515 GB, free: 7.215 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.267e-05/0.4914, allocations: 35.17 kB / 0.9515 GB, free: 7.191 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.765e-05/0.4914, allocations: 4.094 kB / 0.9515 GB, free: 7.191 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001595/0.4915, allocations: 84.97 kB / 0.9516 GB, free: 7.148 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.009e-05/0.4916, allocations: 14.67 kB / 0.9516 GB, free: 7.137 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.722e-05/0.4916, allocations: 33.42 kB / 0.9517 GB, free: 7.113 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001772/0.4918, allocations: 135.1 kB / 0.9518 GB, free: 7.027 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.835e-06/0.4918, allocations: 0 / 0.9518 GB, free: 7.027 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.422e-06/0.4918, allocations: 5.062 kB / 0.9518 GB, free: 7.023 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.517e-06/0.4918, allocations: 7.938 kB / 0.9518 GB, free: 7.016 MB / 0.7169 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.0004807/0.4923, allocations: 423.6 kB / 0.9522 GB, free: 6.578 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.623e-05/0.4924, allocations: 10.03 kB / 0.9522 GB, free: 6.578 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.708e-05/0.4924, allocations: 36.06 kB / 0.9523 GB, free: 6.535 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.302e-05/0.4924, allocations: 4.906 kB / 0.9523 GB, free: 6.535 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.993e-05/0.4925, allocations: 171.8 kB / 0.9524 GB, free: 6.332 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.143e-05/0.4925, allocations: 3.062 kB / 0.9524 GB, free: 6.332 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.659e-05/0.4925, allocations: 3.438 kB / 0.9524 GB, free: 6.332 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001577/0.4927, allocations: 80.78 kB / 0.9525 GB, free: 6.266 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.555e-06/0.4927, allocations: 0 / 0.9525 GB, free: 6.266 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.849e-06/0.4927, allocations: 0 / 0.9525 GB, free: 6.266 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.376e-06/0.4927, allocations: 1.125 kB / 0.9525 GB, free: 6.266 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001201/0.4929, allocations: 36.41 kB / 0.9525 GB, free: 6.25 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004727/0.4933, allocations: 326.3 kB / 0.9529 GB, free: 5.914 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001103/0.4935, allocations: 48.47 kB / 0.9529 GB, free: 5.875 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.507e-05/0.4935, allocations: 35.36 kB / 0.9529 GB, free: 5.852 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.639e-05/0.4936, allocations: 1.656 kB / 0.9529 GB, free: 5.852 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000154/0.4937, allocations: 85.47 kB / 0.953 GB, free: 5.773 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.363e-06/0.4937, allocations: 0 / 0.953 GB, free: 5.773 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0003469/0.4941, allocations: 135.9 kB / 0.9531 GB, free: 5.695 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.638e-05/0.4941, allocations: 53.81 kB / 0.9532 GB, free: 5.633 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.255e-05/0.4942, allocations: 124.5 kB / 0.9533 GB, free: 5.516 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.23e-05/0.4942, allocations: 27.55 kB / 0.9533 GB, free: 5.484 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.805e-05/0.4942, allocations: 90.64 kB / 0.9534 GB, free: 5.395 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.672e-05/0.4943, allocations: 14.5 kB / 0.9534 GB, free: 5.383 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.138e-05/0.4943, allocations: 34.73 kB / 0.9535 GB, free: 5.352 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.991e-05/0.4944, allocations: 324 kB / 0.9538 GB, free: 5.027 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.082e-05/0.4944, allocations: 22.58 kB / 0.9538 GB, free: 5.02 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.896e-05/0.4945, allocations: 44.12 kB / 0.9538 GB, free: 4.984 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000137/0.4947, allocations: 81.56 kB / 0.9539 GB, free: 4.926 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.4947, allocations: 0 / 0.9539 GB, free: 4.926 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.000212/0.4949, allocations: 113.2 kB / 0.954 GB, free: 4.855 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.313e-05/0.4949, allocations: 6.438 kB / 0.954 GB, free: 4.855 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.927e-06/0.4949, allocations: 0 / 0.954 GB, free: 4.855 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.097e-05/0.4949, allocations: 1.219 kB / 0.954 GB, free: 4.855 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.13e-05/0.495, allocations: 16.84 kB / 0.9541 GB, free: 4.848 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.54e-06/0.495, allocations: 5.125 kB / 0.9541 GB, free: 4.844 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.507e-05/0.4951, allocations: 12.19 kB / 0.9541 GB, free: 4.836 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.159e-05/0.4951, allocations: 2.531 kB / 0.9541 GB, free: 4.836 MB / 0.7169 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 5.853e-05/0.4952, allocations: 130.4 kB / 0.9542 GB, free: 4.707 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.67e-05/0.4952, allocations: 7.531 kB / 0.9542 GB, free: 4.703 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.049e-05/0.4952, allocations: 13.69 kB / 0.9542 GB, free: 4.691 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.625e-06/0.4952, allocations: 1.312 kB / 0.9542 GB, free: 4.691 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.596e-06/0.4953, allocations: 0 / 0.9542 GB, free: 4.691 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.545e-06/0.4953, allocations: 4 kB / 0.9542 GB, free: 4.688 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003405/0.4956, allocations: 378.8 kB / 0.9546 GB, free: 4.32 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.4956, allocations: 1.531 kB / 0.9546 GB, free: 4.32 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.899e-05/0.4957, allocations: 10.17 kB / 0.9546 GB, free: 4.312 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.944e-06/0.4957, allocations: 1.156 kB / 0.9546 GB, free: 4.312 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.103e-05/0.4957, allocations: 5.031 kB / 0.9546 GB, free: 4.309 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.955e-06/0.4957, allocations: 5.344 kB / 0.9546 GB, free: 4.305 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.4957, allocations: 3.938 kB / 0.9546 GB, free: 4.301 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002266/0.4959, allocations: 209.8 kB / 0.9548 GB, free: 4.129 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2e-05/0.496, allocations: 83.55 kB / 0.9549 GB, free: 4.031 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.685e-05/0.496, allocations: 0 / 0.9549 GB, free: 4.031 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.785e-05/0.4961, allocations: 7.5 kB / 0.9549 GB, free: 4.027 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.212e-05/0.4961, allocations: 10.42 kB / 0.9549 GB, free: 4.02 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.808e-06/0.4961, allocations: 6.375 kB / 0.9549 GB, free: 4.016 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.191e-05/0.4962, allocations: 96.7 kB / 0.955 GB, free: 3.93 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1e-07/0.4962, allocations: 0 / 0.955 GB, free: 3.93 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002858/0.4965, allocations: 43.64 kB / 0.955 GB, free: 3.914 MB / 0.7169 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.0005675/0.497, allocations: 0.8008 MB / 0.9558 GB, free: 3.188 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002054/0.4972, allocations: 73.42 kB / 0.9559 GB, free: 3.156 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.473e-06/0.4973, allocations: 0 / 0.9559 GB, free: 3.156 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 8.816e-05/0.4974, allocations: 32.86 kB / 0.9559 GB, free: 3.145 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00024/0.4976, allocations: 18.92 kB / 0.9559 GB, free: 3.129 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001214/0.4988, allocations: 1.496 MB / 0.9574 GB, free: 1.742 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.641e-05/0.4989, allocations: 0.6891 MB / 0.9581 GB, free: 1.039 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.654e-05/0.499, allocations: 7.266 kB / 0.9581 GB, free: 1.035 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.819e-05/0.499, allocations: 22.89 kB / 0.9581 GB, free: 1.016 MB / 0.7169 GB Notification: Performance of SimCode: time 2.4e-07/0.499, allocations: 0 / 0.9581 GB, free: 1.016 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5472/1.046, allocations: 2.433 MB / 0.9605 GB, free: 15.81 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000276/1.047, allocations: 271 kB / 0.9607 GB, free: 15.45 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.597/2.643, allocations: 0 / 0.9607 GB, free: 15.45 MB / 0.7325 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