Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingEU.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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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.Nicol2001HeatingEU,fileNamePrefix="Buildings_10_Buildings_Occupants_Residential_Heating_Validation_Nicol2001HeatingEU",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingEU,fileNamePrefix="Buildings_10_Buildings_Occupants_Residential_Heating_Validation_Nicol2001HeatingEU",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.005312/0.005312, allocations: 101.7 kB / 15.73 MB, free: 5.586 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.001215/0.001215, allocations: 192.2 kB / 16.67 MB, free: 5.523 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.351/1.351, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.492/2.492, allocations: 437 MB / 0.7105 GB, free: 4.402 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001499/0.001499, allocations: 71.88 kB / 1.018 GB, free: 9.957 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8885/0.89, allocations: 151.6 MB / 1.166 GB, free: 3.828 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingEU): time 0.002799/0.8928, allocations: 1.481 MB / 1.168 GB, free: 2.34 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.001318/0.8942, allocations: 0.7323 MB / 1.168 GB, free: 1.602 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.507e-05/0.8942, allocations: 0 / 1.168 GB, free: 1.602 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 3.39e-05/0.8943, allocations: 7.938 kB / 1.168 GB, free: 1.594 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 6.647e-05/0.8944, allocations: 11.86 kB / 1.168 GB, free: 1.582 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005851/0.895, allocations: 127.6 kB / 1.168 GB, free: 1.457 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0001204/0.8951, allocations: 75.77 kB / 1.168 GB, free: 1.383 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001029/0.8952, allocations: 15.98 kB / 1.169 GB, free: 1.367 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00011/0.8953, allocations: 31.86 kB / 1.169 GB, free: 1.336 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 7.068e-05/0.8954, allocations: 39.83 kB / 1.169 GB, free: 1.297 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 2.308e-05/0.8954, allocations: 8 kB / 1.169 GB, free: 1.289 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002198/0.8957, allocations: 95.89 kB / 1.169 GB, free: 1.195 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 3.298e-05/0.8957, allocations: 15.98 kB / 1.169 GB, free: 1.18 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 5.032e-05/0.8958, allocations: 39.73 kB / 1.169 GB, free: 1.141 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0002723/0.896, allocations: 149.9 kB / 1.169 GB, free: 0.9961 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 4.349e-06/0.896, allocations: 0 / 1.169 GB, free: 0.9961 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.332e-06/0.8961, allocations: 0 / 1.169 GB, free: 0.9961 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 6.512e-06/0.8961, allocations: 0 / 1.169 GB, free: 0.9961 MB / 0.8887 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.0006498/0.8967, allocations: 412.9 kB / 1.169 GB, free: 0.5391 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 4.179e-05/0.8968, allocations: 8.922 kB / 1.169 GB, free: 0.5312 MB / 0.8887 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.886e-05/0.8968, allocations: 38.73 kB / 1.169 GB, free: 496 kB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.623e-05/0.8969, allocations: 12.84 kB / 1.169 GB, free: 484 kB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001162/0.897, allocations: 168.3 kB / 1.169 GB, free: 276 kB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.29e-05/0.897, allocations: 4.375 kB / 1.169 GB, free: 272 kB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.903e-05/0.897, allocations: 8.312 kB / 1.169 GB, free: 264 kB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001885/0.8972, allocations: 73.78 kB / 1.17 GB, free: 184 kB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.806e-06/0.8973, allocations: 0 / 1.17 GB, free: 184 kB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.16e-05/0.8973, allocations: 0 / 1.17 GB, free: 184 kB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.212e-06/0.8973, allocations: 3.984 kB / 1.17 GB, free: 180 kB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001286/0.8974, allocations: 31.98 kB / 1.17 GB, free: 148 kB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006136/0.898, allocations: 324.7 kB / 1.17 GB, free: 15.78 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001323/0.8982, allocations: 50.5 kB / 1.17 GB, free: 15.72 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.231e-05/0.8983, allocations: 32.97 kB / 1.17 GB, free: 15.68 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 1.853e-05/0.8983, allocations: 0 / 1.17 GB, free: 15.68 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002196/0.8985, allocations: 79.28 kB / 1.17 GB, free: 15.59 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=7): time 1.293e-06/0.8985, allocations: 3.938 kB / 1.17 GB, free: 15.59 MB / 0.9044 GB Notification: Performance of matching and sorting (n=7): time 0.0003979/0.8989, allocations: 137.6 kB / 1.17 GB, free: 15.45 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.978e-05/0.899, allocations: 55.41 kB / 1.17 GB, free: 15.38 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.293e-05/0.8991, allocations: 121.7 kB / 1.17 GB, free: 15.25 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 1.876e-05/0.8991, allocations: 37.7 kB / 1.17 GB, free: 15.21 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 4.584e-05/0.8992, allocations: 84.14 kB / 1.17 GB, free: 15.12 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 2.175e-05/0.8992, allocations: 23.86 kB / 1.171 GB, free: 15.1 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.06e-05/0.8993, allocations: 33.64 kB / 1.171 GB, free: 15.06 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001056/0.8994, allocations: 318.8 kB / 1.171 GB, free: 14.74 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.897e-05/0.8995, allocations: 23.98 kB / 1.171 GB, free: 14.72 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.343e-05/0.8996, allocations: 58.92 kB / 1.171 GB, free: 14.65 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001531/0.8997, allocations: 74.8 kB / 1.171 GB, free: 14.57 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.8997, allocations: 0 / 1.171 GB, free: 14.57 MB / 0.9044 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002346/0.9, allocations: 113.5 kB / 1.171 GB, free: 14.45 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.653e-05/0.9, allocations: 7.984 kB / 1.171 GB, free: 14.45 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.23e-06/0.9, allocations: 4.062 kB / 1.171 GB, free: 14.44 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.398e-05/0.9, allocations: 0 / 1.171 GB, free: 14.44 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.312e-05/0.9001, allocations: 12 kB / 1.171 GB, free: 14.43 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.045e-06/0.9001, allocations: 4 kB / 1.171 GB, free: 14.43 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.868e-05/0.9002, allocations: 11.92 kB / 1.171 GB, free: 14.41 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.477e-05/0.9002, allocations: 8 kB / 1.171 GB, free: 14.41 MB / 0.9044 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.622e-05/0.9003, allocations: 123.2 kB / 1.171 GB, free: 14.28 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.681e-05/0.9003, allocations: 7.906 kB / 1.171 GB, free: 14.27 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.747e-05/0.9004, allocations: 16.36 kB / 1.171 GB, free: 14.25 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.196e-06/0.9004, allocations: 0 / 1.171 GB, free: 14.25 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.588e-06/0.9004, allocations: 3.938 kB / 1.171 GB, free: 14.25 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.178e-06/0.9004, allocations: 7.984 kB / 1.171 GB, free: 14.24 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004292/0.9008, allocations: 378.4 kB / 1.172 GB, free: 13.82 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.654e-06/0.9009, allocations: 0 / 1.172 GB, free: 13.82 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.109e-05/0.9009, allocations: 4 kB / 1.172 GB, free: 13.81 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.745e-06/0.9009, allocations: 0 / 1.172 GB, free: 13.81 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.167e-05/0.9009, allocations: 7.984 kB / 1.172 GB, free: 13.8 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.865e-06/0.9009, allocations: 3.938 kB / 1.172 GB, free: 13.8 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.403e-06/0.9009, allocations: 0 / 1.172 GB, free: 13.8 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002595/0.9012, allocations: 207.4 kB / 1.172 GB, free: 13.58 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 3.583e-05/0.9013, allocations: 81.02 kB / 1.172 GB, free: 13.48 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.964e-05/0.9013, allocations: 7.984 kB / 1.172 GB, free: 13.48 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.675e-05/0.9014, allocations: 3.938 kB / 1.172 GB, free: 13.47 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.202e-05/0.9014, allocations: 12 kB / 1.172 GB, free: 13.46 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.123e-05/0.9014, allocations: 7.984 kB / 1.172 GB, free: 13.45 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 5.251e-05/0.9015, allocations: 91.27 kB / 1.172 GB, free: 13.36 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.41e-07/0.9015, allocations: 3.938 kB / 1.172 GB, free: 13.36 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0002985/0.9018, allocations: 39.94 kB / 1.172 GB, free: 13.32 MB / 0.9044 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.0007606/0.9026, allocations: 0.801 MB / 1.173 GB, free: 12.51 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0002197/0.9028, allocations: 68.22 kB / 1.173 GB, free: 12.44 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.9028, allocations: 0 / 1.173 GB, free: 12.44 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0001045/0.9029, allocations: 40.25 kB / 1.173 GB, free: 12.4 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002464/0.9032, allocations: 18.3 kB / 1.173 GB, free: 12.39 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001485/0.9047, allocations: 1.489 MB / 1.174 GB, free: 10.8 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002666/0.905, allocations: 0.6924 MB / 1.175 GB, free: 10.08 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 3.528e-05/0.905, allocations: 3.984 kB / 1.175 GB, free: 10.08 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.362e-05/0.905, allocations: 19.44 kB / 1.175 GB, free: 10.06 MB / 0.9044 GB Notification: Performance of SimCode: time 2.084e-06/0.9051, allocations: 0 / 1.175 GB, free: 10.06 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02087/0.9259, allocations: 2.667 MB / 1.178 GB, free: 7.531 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.811/8.737, allocations: 11.08 kB / 1.178 GB, free: 7.523 MB / 0.9044 GB (rm -f Buildings_10_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingEU.pipe ; mkfifo Buildings_10_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingEU.pipe ; head -c 1048576 < Buildings_10_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingEU.pipe >> ../files/Buildings_10_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingEU.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingEU_res.mat --tempDir=temp_Buildings_10_Buildings_Occupants_Residential_Heating_Validation_Nicol2001HeatingEU_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Occupants_Residential_Heating_Validation_Nicol2001HeatingEU.fmu > Buildings_10_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingEU.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingEU_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Occupants_Residential_Heating_Validation_Nicol2001HeatingEU.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingEU.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