Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 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.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate,fileNamePrefix="Buildings_9_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_NormalizedHeatFlowRate",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate,fileNamePrefix="Buildings_9_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.008983/0.008983, allocations: 106.2 kB / 15.73 MB, free: 5.984 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.001817/0.001817, allocations: 194.8 kB / 16.67 MB, free: 5.906 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.36/1.36, allocations: 222.9 MB / 240.4 MB, free: 15.07 MB / 206.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.212/2.212, allocations: 390.3 MB / 0.6648 GB, free: 0.625 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001369/0.001369, allocations: 67.91 kB / 0.9504 GB, free: 8.129 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7632/0.7646, allocations: 140.4 MB / 1.087 GB, free: 5.25 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate): time 0.002911/0.7676, allocations: 1.973 MB / 1.089 GB, free: 3.871 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001077/0.7687, allocations: 0.6905 MB / 1.09 GB, free: 3.387 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000104/0.7688, allocations: 3.031 kB / 1.09 GB, free: 3.387 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0001293/0.769, allocations: 21.02 kB / 1.09 GB, free: 3.371 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 7.47e-05/0.769, allocations: 21.72 kB / 1.09 GB, free: 3.355 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003351/0.7694, allocations: 90.05 kB / 1.09 GB, free: 3.309 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001821/0.7696, allocations: 147.9 kB / 1.09 GB, free: 3.238 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001727/0.7698, allocations: 89.3 kB / 1.09 GB, free: 3.188 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001086/0.7699, allocations: 60.52 kB / 1.09 GB, free: 3.156 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001113/0.77, allocations: 73.97 kB / 1.091 GB, free: 3.113 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 3.059e-05/0.77, allocations: 14.16 kB / 1.091 GB, free: 3.113 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001481/0.7702, allocations: 67.14 kB / 1.091 GB, free: 3.094 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 8.627e-05/0.7703, allocations: 69.52 kB / 1.091 GB, free: 3.062 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 7.326e-05/0.7704, allocations: 95.66 kB / 1.091 GB, free: 2.992 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0003238/0.7707, allocations: 269.4 kB / 1.091 GB, free: 2.883 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.878e-06/0.7707, allocations: 1.062 kB / 1.091 GB, free: 2.883 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.262e-06/0.7707, allocations: 0 / 1.091 GB, free: 2.883 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 6.452e-06/0.7707, allocations: 0 / 1.091 GB, free: 2.883 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: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.0007296/0.7714, allocations: 0.5348 MB / 1.092 GB, free: 2.406 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.597e-05/0.7715, allocations: 10.03 kB / 1.092 GB, free: 2.406 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.795e-05/0.7715, allocations: 45.98 kB / 1.092 GB, free: 2.359 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001706/0.7732, allocations: 418.8 kB / 1.092 GB, free: 2.336 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004017/0.7737, allocations: 318.2 kB / 1.092 GB, free: 2.062 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.111e-05/0.7738, allocations: 69.39 kB / 1.092 GB, free: 1.996 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.527e-05/0.7738, allocations: 11.53 kB / 1.092 GB, free: 1.992 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008484/0.7747, allocations: 386.6 kB / 1.093 GB, free: 1.883 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.388e-06/0.7747, allocations: 0 / 1.093 GB, free: 1.883 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.323e-05/0.7747, allocations: 5.531 kB / 1.093 GB, free: 1.879 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.151e-06/0.7747, allocations: 2.531 kB / 1.093 GB, free: 1.879 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001288/0.776, allocations: 0.5404 MB / 1.093 GB, free: 1.77 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00174/0.7778, allocations: 1.001 MB / 1.094 GB, free: 1.262 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007095/0.7785, allocations: 291.2 kB / 1.095 GB, free: 1.184 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006359/0.7791, allocations: 279.4 kB / 1.095 GB, free: 1.117 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.158e-05/0.7792, allocations: 8.625 kB / 1.095 GB, free: 1.109 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.326e-05/0.7792, allocations: 32.25 kB / 1.095 GB, free: 1.07 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=7): time 1.402e-06/0.7792, allocations: 0.7188 kB / 1.095 GB, free: 1.07 MB / 0.8575 GB Notification: Performance of matching and sorting (n=7): time 0.001999/0.7812, allocations: 0.7844 MB / 1.096 GB, free: 0.8867 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.284e-05/0.7812, allocations: 53.02 kB / 1.096 GB, free: 0.8242 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003464/0.7816, allocations: 298.1 kB / 1.096 GB, free: 0.6719 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.073e-05/0.7816, allocations: 25.7 kB / 1.096 GB, free: 0.6406 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 7.641e-05/0.7817, allocations: 159 kB / 1.096 GB, free: 0.5039 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 3.194e-05/0.7817, allocations: 19.27 kB / 1.096 GB, free: 500 kB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.114e-05/0.7818, allocations: 40.03 kB / 1.096 GB, free: 476 kB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 5.582e-05/0.7819, allocations: 336.4 kB / 1.097 GB, free: 144 kB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006108/0.7825, allocations: 255.5 kB / 1.097 GB, free: 96 kB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005886/0.7831, allocations: 264.7 kB / 1.097 GB, free: 40 kB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001131/0.7843, allocations: 442.4 kB / 1.097 GB, free: 15.95 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.236e-06/0.7843, allocations: 0 / 1.097 GB, free: 15.95 MB / 0.8731 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.001382/0.7857, allocations: 0.5348 MB / 1.098 GB, free: 15.81 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 1.947e-05/0.7857, allocations: 4.75 kB / 1.098 GB, free: 15.81 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.8e-06/0.7857, allocations: 1.203 kB / 1.098 GB, free: 15.81 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.498e-05/0.7857, allocations: 0.6875 kB / 1.098 GB, free: 15.81 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004147/0.7861, allocations: 96.94 kB / 1.098 GB, free: 15.8 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.972e-06/0.7862, allocations: 5.156 kB / 1.098 GB, free: 15.8 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003284/0.7865, allocations: 74.23 kB / 1.098 GB, free: 15.79 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.919e-05/0.7865, allocations: 7.875 kB / 1.098 GB, free: 15.79 MB / 0.8731 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.7867, allocations: 142.3 kB / 1.098 GB, free: 15.66 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.314e-05/0.7868, allocations: 21.75 kB / 1.098 GB, free: 15.65 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.579e-05/0.7868, allocations: 24.62 kB / 1.098 GB, free: 15.64 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.825e-06/0.7868, allocations: 1.25 kB / 1.098 GB, free: 15.64 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.544e-06/0.7869, allocations: 9.297 kB / 1.098 GB, free: 15.63 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.817e-06/0.7869, allocations: 0.7031 kB / 1.098 GB, free: 15.63 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005348/0.7874, allocations: 436.5 kB / 1.099 GB, free: 15.36 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.352e-06/0.7874, allocations: 0 / 1.099 GB, free: 15.36 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003842/0.7878, allocations: 93.39 kB / 1.099 GB, free: 15.35 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.789e-06/0.7878, allocations: 4.609 kB / 1.099 GB, free: 15.35 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.763e-05/0.7879, allocations: 11.78 kB / 1.099 GB, free: 15.34 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.733e-06/0.7879, allocations: 0 / 1.099 GB, free: 15.34 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.894e-06/0.7879, allocations: 1.828 kB / 1.099 GB, free: 15.34 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001399/0.7893, allocations: 0.6316 MB / 1.099 GB, free: 15.1 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 9.675e-05/0.7894, allocations: 103.7 kB / 1.1 GB, free: 14.99 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.504e-05/0.7894, allocations: 1.828 kB / 1.1 GB, free: 14.99 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003531/0.7898, allocations: 76.14 kB / 1.1 GB, free: 14.98 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.401e-05/0.7898, allocations: 5.75 kB / 1.1 GB, free: 14.98 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.886e-05/0.7899, allocations: 8.703 kB / 1.1 GB, free: 14.98 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0003004/0.7902, allocations: 218.1 kB / 1.1 GB, free: 14.87 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.4e-07/0.7902, allocations: 0 / 1.1 GB, free: 14.87 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0003433/0.7905, allocations: 36.78 kB / 1.1 GB, free: 14.86 MB / 0.8731 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.001737/0.7923, allocations: 1.181 MB / 1.101 GB, free: 14.09 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.001326/0.7936, allocations: 0.5204 MB / 1.102 GB, free: 13.99 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.7936, allocations: 4 kB / 1.102 GB, free: 13.99 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0006582/0.7943, allocations: 274.4 kB / 1.102 GB, free: 13.94 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003205/0.7946, allocations: 22.09 kB / 1.102 GB, free: 13.92 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006723/0.8014, allocations: 3.888 MB / 1.106 GB, free: 12.05 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004082/0.8018, allocations: 0.7503 MB / 1.106 GB, free: 11.35 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.000224/0.8021, allocations: 55.25 kB / 1.106 GB, free: 11.33 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001874/0.8023, allocations: 82.94 kB / 1.107 GB, free: 11.28 MB / 0.8731 GB Notification: Performance of SimCode: time 1.412e-06/0.8023, allocations: 0 / 1.107 GB, free: 11.28 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02558/0.8279, allocations: 5.146 MB / 1.112 GB, free: 10.67 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.982/8.81, allocations: 5.5 kB / 1.112 GB, free: 10.66 MB / 0.8731 GB (rm -f Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate.pipe ; mkfifo Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate.pipe >> ../files/Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_NormalizedHeatFlowRate_fmu --startTime=0 --stopTime=7200 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_NormalizedHeatFlowRate.fmu > Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Storage_Ice_BaseClasses_Examples_NormalizedHeatFlowRate.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_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