Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.LMTDStar.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.LMTDStar,fileNamePrefix="Buildings_9_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_LMTDStar",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.LMTDStar,fileNamePrefix="Buildings_9_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_LMTDStar",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.008406/0.008406, allocations: 101.7 kB / 15.73 MB, free: 5.59 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.001888/0.001888, allocations: 191.7 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.357/1.357, 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 9.1.3-maint.9.1.x/package.mo): time 2.179/2.179, allocations: 390.3 MB / 0.6648 GB, free: 0.6758 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.00185/0.00185, allocations: 59.91 kB / 0.9504 GB, free: 8.195 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7448/0.7467, allocations: 140.4 MB / 1.087 GB, free: 5.293 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.LMTDStar): time 0.003191/0.7499, allocations: 1.538 MB / 1.089 GB, free: 4.23 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001385/0.7513, allocations: 0.7502 MB / 1.09 GB, free: 3.703 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.925e-05/0.7514, allocations: 0.8125 kB / 1.09 GB, free: 3.703 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.919e-05/0.7515, allocations: 5.25 kB / 1.09 GB, free: 3.699 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 9.892e-05/0.7516, allocations: 11.69 kB / 1.09 GB, free: 3.691 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005099/0.7521, allocations: 98.95 kB / 1.09 GB, free: 3.637 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001177/0.7522, allocations: 48.67 kB / 1.09 GB, free: 3.617 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000116/0.7524, allocations: 14.78 kB / 1.09 GB, free: 3.609 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001202/0.7525, allocations: 21.75 kB / 1.09 GB, free: 3.602 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 9.196e-05/0.7526, allocations: 29.73 kB / 1.09 GB, free: 3.586 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.848e-05/0.7526, allocations: 3.281 kB / 1.09 GB, free: 3.586 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002251/0.7528, allocations: 64.95 kB / 1.09 GB, free: 3.57 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.19e-05/0.7529, allocations: 10.98 kB / 1.09 GB, free: 3.562 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 4.232e-05/0.7529, allocations: 24.75 kB / 1.09 GB, free: 3.547 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002647/0.7532, allocations: 101.7 kB / 1.09 GB, free: 3.508 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 6.032e-06/0.7532, allocations: 5.703 kB / 1.09 GB, free: 3.504 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.222e-06/0.7532, allocations: 0 / 1.09 GB, free: 3.504 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.541e-06/0.7532, allocations: 0 / 1.09 GB, free: 3.504 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: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0005136/0.7538, allocations: 372.6 kB / 1.09 GB, free: 3.125 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.874e-05/0.7538, allocations: 9.906 kB / 1.09 GB, free: 3.125 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.258e-05/0.7539, allocations: 33.16 kB / 1.091 GB, free: 3.086 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004342/0.7543, allocations: 36 kB / 1.091 GB, free: 3.074 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001055/0.7544, allocations: 176.8 kB / 1.091 GB, free: 2.867 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.278e-06/0.7544, allocations: 384 / 1.091 GB, free: 2.867 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.38e-05/0.7545, allocations: 5.844 kB / 1.091 GB, free: 2.863 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003288/0.7548, allocations: 86.64 kB / 1.091 GB, free: 2.812 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.318e-06/0.7548, allocations: 1.188 kB / 1.091 GB, free: 2.812 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.452e-05/0.7549, allocations: 4 kB / 1.091 GB, free: 2.809 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.683e-06/0.7549, allocations: 1.125 kB / 1.091 GB, free: 2.809 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003864/0.7553, allocations: 69.02 kB / 1.091 GB, free: 2.789 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005418/0.7558, allocations: 322 kB / 1.091 GB, free: 2.484 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003348/0.7562, allocations: 75.97 kB / 1.091 GB, free: 2.441 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001905/0.7564, allocations: 37.66 kB / 1.091 GB, free: 2.426 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.939e-05/0.7564, allocations: 1.422 kB / 1.091 GB, free: 2.426 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.57e-05/0.7564, allocations: 39.78 kB / 1.091 GB, free: 2.379 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=3): time 1.343e-06/0.7564, allocations: 0 / 1.091 GB, free: 2.379 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3): time 0.0007512/0.7572, allocations: 136.6 kB / 1.091 GB, free: 2.32 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.466e-05/0.7572, allocations: 52.75 kB / 1.092 GB, free: 2.258 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.294e-05/0.7573, allocations: 113.7 kB / 1.092 GB, free: 2.156 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.466e-05/0.7573, allocations: 33.7 kB / 1.092 GB, free: 2.117 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 4.016e-05/0.7574, allocations: 92.34 kB / 1.092 GB, free: 2.027 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.935e-05/0.7574, allocations: 6.688 kB / 1.092 GB, free: 2.023 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.39e-05/0.7575, allocations: 22.73 kB / 1.092 GB, free: 2.004 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 4.836e-05/0.7576, allocations: 318.3 kB / 1.092 GB, free: 1.688 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001982/0.7578, allocations: 31.92 kB / 1.092 GB, free: 1.68 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000191/0.758, allocations: 45.56 kB / 1.092 GB, free: 1.66 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003463/0.7583, allocations: 69.03 kB / 1.092 GB, free: 1.633 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.384e-06/0.7583, allocations: 0 / 1.092 GB, free: 1.633 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0004586/0.7588, allocations: 105.1 kB / 1.092 GB, free: 1.582 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.722e-05/0.7588, allocations: 5.125 kB / 1.092 GB, free: 1.582 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.562e-06/0.7588, allocations: 0.6562 kB / 1.092 GB, free: 1.582 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.711e-05/0.7589, allocations: 1 kB / 1.092 GB, free: 1.582 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001872/0.7591, allocations: 20.78 kB / 1.092 GB, free: 1.578 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.925e-06/0.7591, allocations: 3.984 kB / 1.092 GB, free: 1.574 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001184/0.7592, allocations: 11 kB / 1.092 GB, free: 1.57 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.788e-05/0.7592, allocations: 3.281 kB / 1.092 GB, free: 1.57 MB / 0.8575 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 3 * 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 6.577e-05/0.7593, allocations: 125.3 kB / 1.092 GB, free: 1.441 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.575e-05/0.7594, allocations: 6.75 kB / 1.092 GB, free: 1.438 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.848e-05/0.7594, allocations: 11.56 kB / 1.093 GB, free: 1.422 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.665e-06/0.7594, allocations: 1 kB / 1.093 GB, free: 1.422 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.559e-06/0.7594, allocations: 0 / 1.093 GB, free: 1.422 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.256e-06/0.7594, allocations: 1.703 kB / 1.093 GB, free: 1.422 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000215/0.7597, allocations: 192 kB / 1.093 GB, free: 1.215 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.704e-06/0.7597, allocations: 0 / 1.093 GB, free: 1.215 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001528/0.7598, allocations: 19.7 kB / 1.093 GB, free: 1.211 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.507e-06/0.7599, allocations: 1.453 kB / 1.093 GB, free: 1.211 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.546e-05/0.7599, allocations: 6.672 kB / 1.093 GB, free: 1.207 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.633e-06/0.7599, allocations: 0.8438 kB / 1.093 GB, free: 1.207 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.263e-06/0.7599, allocations: 0 / 1.093 GB, free: 1.207 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004557/0.7604, allocations: 205.2 kB / 1.093 GB, free: 1.051 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 3.072e-05/0.7604, allocations: 83.08 kB / 1.093 GB, free: 0.9531 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.462e-05/0.7604, allocations: 1.594 kB / 1.093 GB, free: 0.9531 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001692/0.7606, allocations: 7.188 kB / 1.093 GB, free: 0.9531 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.332e-05/0.7607, allocations: 7.031 kB / 1.093 GB, free: 0.9492 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.634e-05/0.7607, allocations: 3.281 kB / 1.093 GB, free: 0.9492 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 4.685e-05/0.7607, allocations: 92.2 kB / 1.093 GB, free: 0.8711 MB / 0.8575 GB Notification: Performance of sort global known variables: time 2.41e-07/0.7608, allocations: 0 / 1.093 GB, free: 0.8711 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0004724/0.7612, allocations: 35.03 kB / 1.093 GB, free: 0.8594 MB / 0.8575 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * 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.0008092/0.7621, allocations: 0.7475 MB / 1.094 GB, free: 16.18 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0004596/0.7625, allocations: 80.94 kB / 1.094 GB, free: 16.16 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.355e-06/0.7625, allocations: 0 / 1.094 GB, free: 16.16 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0002111/0.7628, allocations: 38.02 kB / 1.094 GB, free: 16.15 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003965/0.7632, allocations: 9.953 kB / 1.094 GB, free: 16.14 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000735/0.7639, allocations: 208.1 kB / 1.094 GB, free: 15.96 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002966/0.7642, allocations: 0.6828 MB / 1.095 GB, free: 15.27 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0001083/0.7644, allocations: 21.56 kB / 1.095 GB, free: 15.26 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.63e-05/0.7644, allocations: 23.22 kB / 1.095 GB, free: 15.24 MB / 0.8731 GB Notification: Performance of SimCode: time 3.71e-07/0.7644, allocations: 0 / 1.095 GB, free: 15.24 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01803/0.7825, allocations: 2.138 MB / 1.097 GB, free: 14.8 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.137/7.92, allocations: 16.06 kB / 1.097 GB, free: 14.79 MB / 0.8731 GB (rm -f Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.LMTDStar.pipe ; mkfifo Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.LMTDStar.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.LMTDStar.pipe >> ../files/Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.LMTDStar.sim & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.LMTDStar_res.csv --start-time 0 --stop-time 3600 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1.44 Buildings_9_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_LMTDStar.fmu > Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.LMTDStar.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.LMTDStar_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Storage_Ice_BaseClasses_Examples_LMTDStar.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.LMTDStar.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "Warning: Resultfile and Reference have different end time points! Reffile[501]=3600.000000 File[1204]=2249.280000 " Variables in the reference:time,lmtdSta.lmtdSta,TIn.y,TOut.y Variables in the result:time,TIn.y,TOut.y,lmtdSta.lmtdSta,TIn.amplitude,TIn.f