Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate.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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate,fileNamePrefix="Buildings_latest_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_NormalizedHeatFlowRate",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate,fileNamePrefix="Buildings_latest_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_NormalizedHeatFlowRate",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.007792/0.007792, allocations: 102.9 kB / 15.73 MB, free: 6.043 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.001689/0.001689, allocations: 188.4 kB / 16.67 MB, free: 5.961 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.431/1.431, 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 11.0.1-master/package.mo): time 2.736/2.736, allocations: 461.9 MB / 0.7348 GB, free: 11.01 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001395/0.001395, allocations: 59.91 kB / 1.054 GB, free: 8.137 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7891/0.7906, allocations: 157.4 MB / 1.207 GB, free: 13.54 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate): time 0.003374/0.794, allocations: 1.976 MB / 1.209 GB, free: 11.56 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.00138/0.7954, allocations: 0.6896 MB / 1.21 GB, free: 10.86 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001502/0.7956, allocations: 0 / 1.21 GB, free: 10.86 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.0001343/0.7957, allocations: 27.73 kB / 1.21 GB, free: 10.84 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 9.234e-05/0.7958, allocations: 19.81 kB / 1.21 GB, free: 10.82 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003537/0.7962, allocations: 87.77 kB / 1.21 GB, free: 10.73 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0001966/0.7964, allocations: 139.7 kB / 1.21 GB, free: 10.59 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001857/0.7966, allocations: 84.59 kB / 1.21 GB, free: 10.51 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001288/0.7967, allocations: 67.66 kB / 1.21 GB, free: 10.44 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000139/0.7969, allocations: 63.69 kB / 1.21 GB, free: 10.38 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 3.043e-05/0.7969, allocations: 12 kB / 1.21 GB, free: 10.37 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000156/0.7971, allocations: 67.94 kB / 1.21 GB, free: 10.3 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 9.945e-05/0.7972, allocations: 75.75 kB / 1.21 GB, free: 10.23 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 8.817e-05/0.7973, allocations: 95.34 kB / 1.211 GB, free: 10.13 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0003261/0.7976, allocations: 265.3 kB / 1.211 GB, free: 9.875 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.7976, allocations: 0 / 1.211 GB, free: 9.875 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.563e-06/0.7976, allocations: 0 / 1.211 GB, free: 9.875 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 9.668e-06/0.7977, allocations: 3.938 kB / 1.211 GB, free: 9.871 MB / 0.9356 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.0008695/0.7985, allocations: 0.5335 MB / 1.211 GB, free: 9.289 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.026e-05/0.7986, allocations: 16.03 kB / 1.211 GB, free: 9.273 MB / 0.9356 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.759e-05/0.7986, allocations: 46.73 kB / 1.211 GB, free: 9.219 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001728/0.8004, allocations: 419.8 kB / 1.212 GB, free: 8.809 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003962/0.8008, allocations: 311.9 kB / 1.212 GB, free: 8.469 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001125/0.8009, allocations: 72.12 kB / 1.212 GB, free: 8.387 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.222e-05/0.8009, allocations: 20.31 kB / 1.212 GB, free: 8.367 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008484/0.8018, allocations: 379.1 kB / 1.213 GB, free: 7.992 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.756e-06/0.8018, allocations: 0 / 1.213 GB, free: 7.992 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.721e-05/0.8019, allocations: 11.98 kB / 1.213 GB, free: 7.98 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.442e-06/0.8019, allocations: 3.984 kB / 1.213 GB, free: 7.977 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001204/0.8031, allocations: 0.5429 MB / 1.213 GB, free: 7.434 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001857/0.8049, allocations: 0.9937 MB / 1.214 GB, free: 6.387 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006741/0.8056, allocations: 294.3 kB / 1.214 GB, free: 6.09 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006104/0.8063, allocations: 272.6 kB / 1.215 GB, free: 5.82 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 2.379e-05/0.8063, allocations: 0 / 1.215 GB, free: 5.82 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.978e-05/0.8063, allocations: 34.56 kB / 1.215 GB, free: 5.777 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=7): time 1.183e-06/0.8064, allocations: 4 kB / 1.215 GB, free: 5.773 MB / 0.9356 GB Notification: Performance of matching and sorting (n=7): time 0.002/0.8084, allocations: 0.7857 MB / 1.215 GB, free: 4.98 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.781e-05/0.8084, allocations: 51.41 kB / 1.215 GB, free: 4.918 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003588/0.8088, allocations: 294.7 kB / 1.216 GB, free: 4.613 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 4.415e-05/0.8088, allocations: 29.7 kB / 1.216 GB, free: 4.578 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001089/0.809, allocations: 168.2 kB / 1.216 GB, free: 4.41 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 3.943e-05/0.809, allocations: 19.66 kB / 1.216 GB, free: 4.391 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.691e-05/0.8091, allocations: 37.67 kB / 1.216 GB, free: 4.348 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001157/0.8092, allocations: 334.8 kB / 1.216 GB, free: 4.012 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005864/0.8098, allocations: 259.7 kB / 1.217 GB, free: 3.758 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005498/0.8104, allocations: 256.1 kB / 1.217 GB, free: 3.508 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001031/0.8114, allocations: 448.5 kB / 1.217 GB, free: 3.066 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.237e-06/0.8114, allocations: 0 / 1.217 GB, free: 3.066 MB / 0.9356 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.001448/0.8129, allocations: 0.5322 MB / 1.218 GB, free: 2.527 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.683e-05/0.8129, allocations: 4 kB / 1.218 GB, free: 2.523 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.811e-06/0.8129, allocations: 0 / 1.218 GB, free: 2.523 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.413e-05/0.8129, allocations: 0 / 1.218 GB, free: 2.523 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004085/0.8134, allocations: 95.83 kB / 1.218 GB, free: 2.43 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.293e-06/0.8134, allocations: 0 / 1.218 GB, free: 2.43 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003355/0.8137, allocations: 71.78 kB / 1.218 GB, free: 2.359 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.853e-05/0.8138, allocations: 15.97 kB / 1.218 GB, free: 2.344 MB / 0.9356 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (not1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 7 * 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.0001773/0.8139, allocations: 145.6 kB / 1.218 GB, free: 2.191 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.775e-05/0.814, allocations: 19.81 kB / 1.218 GB, free: 2.172 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.566e-05/0.8141, allocations: 25.7 kB / 1.218 GB, free: 2.148 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.966e-06/0.8141, allocations: 3.938 kB / 1.218 GB, free: 2.145 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.35e-06/0.8141, allocations: 0 / 1.218 GB, free: 2.145 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.026e-06/0.8141, allocations: 0 / 1.218 GB, free: 2.145 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000475/0.8146, allocations: 448.3 kB / 1.219 GB, free: 1.66 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.244e-06/0.8146, allocations: 0 / 1.219 GB, free: 1.66 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003736/0.815, allocations: 91.83 kB / 1.219 GB, free: 1.57 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.157e-06/0.815, allocations: 4 kB / 1.219 GB, free: 1.566 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.321e-05/0.815, allocations: 7.969 kB / 1.219 GB, free: 1.559 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.385e-06/0.815, allocations: 0 / 1.219 GB, free: 1.559 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.815, allocations: 8 kB / 1.219 GB, free: 1.551 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00132/0.8164, allocations: 0.6199 MB / 1.219 GB, free: 0.9141 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 8.325e-05/0.8165, allocations: 108.8 kB / 1.219 GB, free: 0.7891 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.915e-05/0.8165, allocations: 11.94 kB / 1.219 GB, free: 0.7773 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003558/0.8169, allocations: 63.88 kB / 1.219 GB, free: 0.7148 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.857e-05/0.8169, allocations: 11.98 kB / 1.219 GB, free: 0.7031 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.121e-05/0.817, allocations: 7.984 kB / 1.219 GB, free: 0.6953 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.0002207/0.8172, allocations: 221.9 kB / 1.22 GB, free: 492 kB / 0.9356 GB Notification: Performance of sort global known variables: time 1.1e-07/0.8172, allocations: 0 / 1.22 GB, free: 492 kB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0003114/0.8175, allocations: 43.91 kB / 1.22 GB, free: 448 kB / 0.9356 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (not1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 7 * 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 Backend phase and start with SimCode phase: time 0.001587/0.8191, allocations: 1.169 MB / 1.221 GB, free: 15.24 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.001345/0.8205, allocations: 0.5268 MB / 1.221 GB, free: 14.71 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.8205, allocations: 0 / 1.221 GB, free: 14.71 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0006291/0.8211, allocations: 275.7 kB / 1.222 GB, free: 14.44 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003123/0.8214, allocations: 14.11 kB / 1.222 GB, free: 14.43 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006301/0.8277, allocations: 3.885 MB / 1.225 GB, free: 10.46 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003825/0.8282, allocations: 0.7513 MB / 1.226 GB, free: 9.684 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 0.0001995/0.8284, allocations: 57.41 kB / 1.226 GB, free: 9.629 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000169/0.8286, allocations: 83.38 kB / 1.226 GB, free: 9.547 MB / 0.9512 GB Notification: Performance of SimCode: time 1.874e-06/0.8286, allocations: 0 / 1.226 GB, free: 9.547 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02249/0.8511, allocations: 5.154 MB / 1.231 GB, free: 4.539 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.938/8.789, allocations: 14.52 kB / 1.231 GB, free: 4.531 MB / 0.9512 GB (rm -f Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate.pipe >> ../files/Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_NormalizedHeatFlowRate_fmu --startTime=0 --stopTime=7200 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_NormalizedHeatFlowRate.fmu > Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Storage_Ice_BaseClasses_Examples_NormalizedHeatFlowRate.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,norQSta.qNor,norQSta.canMelt,norQSta.SOC Variables in the result:coeCha[1],coeCha[2],coeCha[3],coeCha[4],coeCha[5],coeCha[6],coeDisCha[1],coeDisCha[2],coeDisCha[3],coeDisCha[4],coeDisCha[5],coeDisCha[6],dt,fra.amplitude,fra.f,fra.offset,fra.phase,fra.startTime,fra.y,greThr.h,greThr.pre_y_start,greThr.t,greThr.u,greThr.y,lmtd.height,lmtd.offset,lmtd.startTime,lmtd.y,norQSta.SOC,norQSta.canFreeze,norQSta.canMelt,norQSta.coeCha[1],norQSta.coeCha[2],norQSta.coeCha[3],norQSta.coeCha[4],norQSta.coeCha[5],norQSta.coeCha[6],norQSta.coeDisCha[1],norQSta.coeDisCha[2],norQSta.coeDisCha[3],norQSta.coeDisCha[4],norQSta.coeDisCha[5],norQSta.coeDisCha[6],norQSta.dtCha,norQSta.dtDisCha,norQSta.lmtdSta,norQSta.qNor,not1.u,not1.y,time