Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 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.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate,fileNamePrefix="Buildings_10_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_NormalizedHeatFlowRate",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate,fileNamePrefix="Buildings_10_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.009878/0.009878, allocations: 103.2 kB / 15.73 MB, free: 6.004 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.002001/0.002001, allocations: 190.6 kB / 16.67 MB, free: 5.93 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.389/1.389, allocations: 222.9 MB / 240.4 MB, free: 15.14 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.516/2.516, allocations: 437.1 MB / 0.7105 GB, free: 4.363 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001502/0.001502, allocations: 60.12 kB / 1.018 GB, free: 9.879 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8008/0.8023, allocations: 151.6 MB / 1.166 GB, free: 3.75 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate): time 0.003095/0.8055, allocations: 1.987 MB / 1.168 GB, free: 1.754 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.001122/0.8066, allocations: 0.6942 MB / 1.169 GB, free: 1.051 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.581e-05/0.8067, allocations: 0 / 1.169 GB, free: 1.051 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.0001214/0.8069, allocations: 27.73 kB / 1.169 GB, free: 1.023 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 9.234e-05/0.807, allocations: 23.78 kB / 1.169 GB, free: 1 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003091/0.8073, allocations: 87.78 kB / 1.169 GB, free: 0.9141 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0001693/0.8075, allocations: 143.7 kB / 1.169 GB, free: 0.7734 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001652/0.8076, allocations: 84.59 kB / 1.169 GB, free: 0.6914 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001021/0.8077, allocations: 71.64 kB / 1.169 GB, free: 0.6211 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001087/0.8079, allocations: 63.7 kB / 1.169 GB, free: 0.5586 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 2.88e-05/0.8079, allocations: 16 kB / 1.169 GB, free: 0.543 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001349/0.808, allocations: 55.95 kB / 1.169 GB, free: 500 kB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 8.621e-05/0.8081, allocations: 79.67 kB / 1.169 GB, free: 420 kB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 8.078e-05/0.8082, allocations: 91.41 kB / 1.169 GB, free: 328 kB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0002813/0.8085, allocations: 269.3 kB / 1.17 GB, free: 60 kB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 4.438e-06/0.8085, allocations: 3.938 kB / 1.17 GB, free: 56 kB / 0.8887 GB Notification: Performance of FrontEnd: time 1.212e-06/0.8085, allocations: 0 / 1.17 GB, free: 56 kB / 0.8887 GB Notification: Performance of Transformations before backend: time 5.3e-06/0.8085, allocations: 0 / 1.17 GB, free: 56 kB / 0.8887 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.0007315/0.8093, allocations: 0.5297 MB / 1.17 GB, free: 15.48 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 3.98e-05/0.8093, allocations: 12.92 kB / 1.17 GB, free: 15.46 MB / 0.9044 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.059e-05/0.8094, allocations: 42.75 kB / 1.17 GB, free: 15.41 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001662/0.811, allocations: 427.8 kB / 1.171 GB, free: 15 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004223/0.8115, allocations: 319.7 kB / 1.171 GB, free: 14.65 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.844e-05/0.8116, allocations: 72.19 kB / 1.171 GB, free: 14.57 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.974e-05/0.8116, allocations: 8.375 kB / 1.171 GB, free: 14.56 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008049/0.8124, allocations: 386.9 kB / 1.171 GB, free: 14.18 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.628e-06/0.8125, allocations: 4 kB / 1.171 GB, free: 14.17 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.226e-05/0.8125, allocations: 4 kB / 1.171 GB, free: 14.17 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.823e-06/0.8125, allocations: 4 kB / 1.171 GB, free: 14.16 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001189/0.8137, allocations: 0.5346 MB / 1.172 GB, free: 13.63 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00154/0.8152, allocations: 0.9974 MB / 1.173 GB, free: 12.57 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006314/0.8159, allocations: 294.3 kB / 1.173 GB, free: 12.28 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005906/0.8165, allocations: 276.8 kB / 1.174 GB, free: 12 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 1.983e-05/0.8165, allocations: 3.984 kB / 1.174 GB, free: 12 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.122e-05/0.8166, allocations: 34.56 kB / 1.174 GB, free: 11.96 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=7): time 2.906e-06/0.8166, allocations: 0 / 1.174 GB, free: 11.96 MB / 0.9044 GB Notification: Performance of matching and sorting (n=7): time 0.001852/0.8184, allocations: 0.7935 MB / 1.174 GB, free: 11.16 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.362e-05/0.8185, allocations: 51.41 kB / 1.174 GB, free: 11.09 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002745/0.8187, allocations: 298.7 kB / 1.175 GB, free: 10.8 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 2.257e-05/0.8188, allocations: 25.7 kB / 1.175 GB, free: 10.77 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 8.965e-05/0.8189, allocations: 156 kB / 1.175 GB, free: 10.61 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 4.12e-05/0.8189, allocations: 27.62 kB / 1.175 GB, free: 10.58 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.428e-05/0.819, allocations: 37.69 kB / 1.175 GB, free: 10.54 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001066/0.8191, allocations: 342.8 kB / 1.175 GB, free: 10.2 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005771/0.8197, allocations: 251.8 kB / 1.175 GB, free: 9.949 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005639/0.8203, allocations: 259.8 kB / 1.176 GB, free: 9.695 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001004/0.8213, allocations: 440.3 kB / 1.176 GB, free: 9.262 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.8213, allocations: 0 / 1.176 GB, free: 9.262 MB / 0.9044 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.001191/0.8225, allocations: 0.5322 MB / 1.177 GB, free: 8.723 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.612e-05/0.8225, allocations: 4 kB / 1.177 GB, free: 8.719 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.85e-06/0.8225, allocations: 0 / 1.177 GB, free: 8.719 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.404e-05/0.8226, allocations: 4 kB / 1.177 GB, free: 8.715 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003955/0.823, allocations: 91.83 kB / 1.177 GB, free: 8.625 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.344e-06/0.823, allocations: 0.5469 kB / 1.177 GB, free: 8.625 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003055/0.8233, allocations: 83.7 kB / 1.177 GB, free: 8.543 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.585e-05/0.8233, allocations: 7.984 kB / 1.177 GB, free: 8.535 MB / 0.9044 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.0001255/0.8235, allocations: 149.7 kB / 1.177 GB, free: 8.379 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.51e-05/0.8235, allocations: 19.8 kB / 1.177 GB, free: 8.359 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.136e-05/0.8236, allocations: 21.72 kB / 1.177 GB, free: 8.336 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.845e-06/0.8236, allocations: 4 kB / 1.177 GB, free: 8.332 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.839e-06/0.8236, allocations: 3.984 kB / 1.177 GB, free: 8.328 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.274e-06/0.8236, allocations: 0 / 1.177 GB, free: 8.328 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004201/0.824, allocations: 444.2 kB / 1.177 GB, free: 7.848 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-06/0.824, allocations: 0 / 1.177 GB, free: 7.848 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003603/0.8244, allocations: 99.83 kB / 1.178 GB, free: 7.75 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.154e-06/0.8244, allocations: 0 / 1.178 GB, free: 7.75 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.29e-05/0.8244, allocations: 7.984 kB / 1.178 GB, free: 7.742 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.403e-06/0.8244, allocations: 0 / 1.178 GB, free: 7.742 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.8244, allocations: 0 / 1.178 GB, free: 7.742 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001228/0.8257, allocations: 0.6355 MB / 1.178 GB, free: 7.09 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 6.079e-05/0.8257, allocations: 100.8 kB / 1.178 GB, free: 6.973 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.13e-05/0.8258, allocations: 0 / 1.178 GB, free: 6.973 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003285/0.8261, allocations: 75.86 kB / 1.178 GB, free: 6.898 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.825e-05/0.8262, allocations: 7.984 kB / 1.178 GB, free: 6.891 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.189e-05/0.8262, allocations: 7.984 kB / 1.178 GB, free: 6.883 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.0001939/0.8264, allocations: 217.9 kB / 1.179 GB, free: 6.672 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.1e-07/0.8264, allocations: 0 / 1.179 GB, free: 6.672 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0002996/0.8267, allocations: 43.89 kB / 1.179 GB, free: 6.629 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: 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.001486/0.8282, allocations: 1.173 MB / 1.18 GB, free: 5.43 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.001162/0.8294, allocations: 0.5307 MB / 1.18 GB, free: 4.898 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.8294, allocations: 4 kB / 1.18 GB, free: 4.895 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0006061/0.83, allocations: 275.7 kB / 1.181 GB, free: 4.625 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000279/0.8303, allocations: 16.11 kB / 1.181 GB, free: 4.613 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005691/0.836, allocations: 3.886 MB / 1.184 GB, free: 0.6484 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002685/0.8363, allocations: 0.7474 MB / 1.185 GB, free: 15.88 MB / 0.92 GB Notification: Performance of simCode: alias equations: time 0.000179/0.8365, allocations: 61.41 kB / 1.185 GB, free: 15.81 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001509/0.8366, allocations: 79.33 kB / 1.185 GB, free: 15.73 MB / 0.92 GB Notification: Performance of SimCode: time 3.91e-07/0.8366, allocations: 4 kB / 1.185 GB, free: 15.73 MB / 0.92 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02143/0.8581, allocations: 5.068 MB / 1.19 GB, free: 10.8 MB / 0.92 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.638/8.496, allocations: 10.36 kB / 1.19 GB, free: 10.8 MB / 0.92 GB (rm -f Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate.pipe ; mkfifo Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate.pipe >> ../files/Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate_res.mat --tempDir=temp_Buildings_10_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_NormalizedHeatFlowRate_fmu --startTime=0 --stopTime=7200 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_NormalizedHeatFlowRate.fmu > Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_Storage_Ice_BaseClasses_Examples_NormalizedHeatFlowRate.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_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