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.001425/0.001425, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001364/0.001364, allocations: 192.2 kB / 16.25 MB, free: 6.633 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.322/1.322, allocations: 222.9 MB / 239.9 MB, free: 4.523 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.287/2.287, allocations: 390.2 MB / 0.6644 GB, free: 0.582 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001332/0.001332, allocations: 67.89 kB / 0.8122 GB, free: 14.67 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6424/0.6437, allocations: 140.4 MB / 0.9492 GB, free: 9.195 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan): time 0.00268/0.6465, allocations: 1.527 MB / 0.9507 GB, free: 7.996 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001126/0.6476, allocations: 0.7256 MB / 0.9514 GB, free: 7.434 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.369e-05/0.6477, allocations: 3.938 kB / 0.9514 GB, free: 7.43 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 4.08e-05/0.6477, allocations: 1.375 kB / 0.9514 GB, free: 7.43 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 6.758e-05/0.6478, allocations: 5.312 kB / 0.9514 GB, free: 7.426 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005276/0.6483, allocations: 110.1 kB / 0.9515 GB, free: 7.352 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001084/0.6485, allocations: 83.62 kB / 0.9516 GB, free: 7.301 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001086/0.6486, allocations: 25.81 kB / 0.9517 GB, free: 7.281 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 8.33e-05/0.6487, allocations: 29.27 kB / 0.9517 GB, free: 7.266 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 6.423e-05/0.6487, allocations: 43.31 kB / 0.9517 GB, free: 7.234 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.177e-05/0.6488, allocations: 7.5 kB / 0.9517 GB, free: 7.234 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001729/0.6489, allocations: 96.97 kB / 0.9518 GB, free: 7.184 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.416e-05/0.649, allocations: 15.73 kB / 0.9518 GB, free: 7.172 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.31e-05/0.649, allocations: 31.58 kB / 0.9519 GB, free: 7.148 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001997/0.6492, allocations: 136.3 kB / 0.952 GB, free: 7.062 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.671e-06/0.6492, allocations: 5.406 kB / 0.952 GB, free: 7.059 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.154e-06/0.6493, allocations: 0 / 0.952 GB, free: 7.059 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.852e-06/0.6493, allocations: 3.938 kB / 0.952 GB, free: 7.055 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.0005639/0.6498, allocations: 428.2 kB / 0.9524 GB, free: 6.613 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.186e-05/0.6499, allocations: 9 kB / 0.9524 GB, free: 6.613 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.336e-05/0.6499, allocations: 32.62 kB / 0.9525 GB, free: 6.574 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.772e-05/0.65, allocations: 4.469 kB / 0.9525 GB, free: 6.574 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.888e-05/0.6501, allocations: 176.4 kB / 0.9526 GB, free: 6.367 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.827e-05/0.6501, allocations: 6.562 kB / 0.9526 GB, free: 6.363 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.597e-05/0.6501, allocations: 8.625 kB / 0.9526 GB, free: 6.359 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001735/0.6503, allocations: 67.72 kB / 0.9527 GB, free: 6.305 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.977e-06/0.6503, allocations: 0 / 0.9527 GB, free: 6.305 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.401e-05/0.6503, allocations: 4.906 kB / 0.9527 GB, free: 6.301 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.881e-06/0.6503, allocations: 1.375 kB / 0.9527 GB, free: 6.301 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001237/0.6505, allocations: 39.69 kB / 0.9528 GB, free: 6.281 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005244/0.651, allocations: 321.6 kB / 0.9531 GB, free: 5.949 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001153/0.6511, allocations: 49 kB / 0.9531 GB, free: 5.91 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.586e-05/0.6512, allocations: 32.09 kB / 0.9531 GB, free: 5.891 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.342e-05/0.6512, allocations: 9.391 kB / 0.9531 GB, free: 5.883 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001775/0.6514, allocations: 72.67 kB / 0.9532 GB, free: 5.816 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 2.355e-06/0.6514, allocations: 0 / 0.9532 GB, free: 5.816 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0003876/0.6518, allocations: 144.2 kB / 0.9534 GB, free: 5.73 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.391e-05/0.6519, allocations: 54 kB / 0.9534 GB, free: 5.668 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.986e-05/0.652, allocations: 116.8 kB / 0.9535 GB, free: 5.559 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.63e-05/0.652, allocations: 34.84 kB / 0.9535 GB, free: 5.52 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.899e-05/0.652, allocations: 94.52 kB / 0.9536 GB, free: 5.426 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.046e-05/0.652, allocations: 18.17 kB / 0.9537 GB, free: 5.41 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.381e-05/0.6521, allocations: 26.39 kB / 0.9537 GB, free: 5.387 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.485e-05/0.6522, allocations: 325.6 kB / 0.954 GB, free: 5.062 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.551e-05/0.6522, allocations: 25.77 kB / 0.954 GB, free: 5.051 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.998e-05/0.6523, allocations: 44.53 kB / 0.9541 GB, free: 5.016 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001398/0.6525, allocations: 77.27 kB / 0.9541 GB, free: 4.961 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.936e-06/0.6525, allocations: 1 kB / 0.9541 GB, free: 4.961 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002086/0.6527, allocations: 112.5 kB / 0.9542 GB, free: 4.891 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.544e-05/0.6527, allocations: 5.531 kB / 0.9542 GB, free: 4.891 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.021e-06/0.6527, allocations: 1.344 kB / 0.9542 GB, free: 4.891 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.433e-05/0.6527, allocations: 5.156 kB / 0.9542 GB, free: 4.887 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.491e-05/0.6528, allocations: 16.64 kB / 0.9543 GB, free: 4.879 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.923e-06/0.6529, allocations: 1.469 kB / 0.9543 GB, free: 4.879 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.183e-05/0.6529, allocations: 7.969 kB / 0.9543 GB, free: 4.875 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.329e-05/0.6529, allocations: 2.562 kB / 0.9543 GB, free: 4.875 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 7.668e-05/0.653, allocations: 123.4 kB / 0.9544 GB, free: 4.75 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.763e-05/0.653, allocations: 10.78 kB / 0.9544 GB, free: 4.742 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.395e-05/0.6531, allocations: 5.875 kB / 0.9544 GB, free: 4.738 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.004e-06/0.6531, allocations: 5.406 kB / 0.9544 GB, free: 4.734 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.32e-06/0.6531, allocations: 0 / 0.9544 GB, free: 4.734 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.208e-06/0.6531, allocations: 4 kB / 0.9544 GB, free: 4.73 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003687/0.6535, allocations: 387.2 kB / 0.9548 GB, free: 4.355 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.292e-06/0.6535, allocations: 0 / 0.9548 GB, free: 4.355 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.776e-05/0.6535, allocations: 7.484 kB / 0.9548 GB, free: 4.352 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.405e-06/0.6535, allocations: 1.312 kB / 0.9548 GB, free: 4.352 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.074e-05/0.6536, allocations: 0 / 0.9548 GB, free: 4.352 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.437e-06/0.6536, allocations: 9.656 kB / 0.9548 GB, free: 4.344 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.01e-07/0.6536, allocations: 3.938 kB / 0.9548 GB, free: 4.34 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000237/0.6538, allocations: 214 kB / 0.955 GB, free: 4.164 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.507e-05/0.6538, allocations: 82.36 kB / 0.9551 GB, free: 4.066 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.882e-05/0.6539, allocations: 5.344 kB / 0.9551 GB, free: 4.062 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.459e-05/0.654, allocations: 6.781 kB / 0.9551 GB, free: 4.059 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.952e-05/0.654, allocations: 10.47 kB / 0.9551 GB, free: 4.051 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.297e-06/0.654, allocations: 6.438 kB / 0.9551 GB, free: 4.047 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.851e-05/0.6541, allocations: 101.4 kB / 0.9552 GB, free: 3.957 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.3e-07/0.6541, allocations: 0 / 0.9552 GB, free: 3.957 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002967/0.6544, allocations: 44.23 kB / 0.9553 GB, free: 3.941 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.0006665/0.655, allocations: 0.7858 MB / 0.956 GB, free: 3.227 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002439/0.6553, allocations: 75.33 kB / 0.9561 GB, free: 3.195 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.783e-06/0.6553, allocations: 0 / 0.9561 GB, free: 3.195 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 9.15e-05/0.6554, allocations: 35.98 kB / 0.9561 GB, free: 3.18 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000256/0.6557, allocations: 18.03 kB / 0.9562 GB, free: 3.168 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001327/0.657, allocations: 1.502 MB / 0.9576 GB, free: 1.773 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001194/0.6571, allocations: 0.6878 MB / 0.9583 GB, free: 1.07 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.703e-05/0.6572, allocations: 3.312 kB / 0.9583 GB, free: 1.07 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.313e-05/0.6572, allocations: 23.05 kB / 0.9583 GB, free: 1.051 MB / 0.7169 GB Notification: Performance of SimCode: time 2.71e-07/0.6572, allocations: 0 / 0.9583 GB, free: 1.051 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01367/0.6709, allocations: 2.494 MB / 0.9608 GB, free: 15.82 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002445/0.6712, allocations: 277.5 kB / 0.961 GB, free: 15.46 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.714/2.386, allocations: 1.094 kB / 0.961 GB, free: 15.46 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