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.001149/0.001149, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00114/0.001141, allocations: 196.7 kB / 16.53 MB, free: 6.699 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.317/1.317, allocations: 222.9 MB / 240.2 MB, free: 4.402 MB / 190.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.272/2.272, allocations: 390.3 MB / 0.6647 GB, free: 476 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001314/0.001314, allocations: 67.89 kB / 0.8127 GB, free: 14.37 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5441/0.5455, allocations: 140.4 MB / 0.9497 GB, free: 9.18 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.LMTDStar): time 0.002206/0.5477, allocations: 1.516 MB / 0.9512 GB, free: 7.984 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0008985/0.5486, allocations: 0.7597 MB / 0.952 GB, free: 7.383 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.45e-05/0.5487, allocations: 1.344 kB / 0.952 GB, free: 7.383 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.676e-05/0.5487, allocations: 7.922 kB / 0.952 GB, free: 7.375 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 5.595e-05/0.5488, allocations: 10.31 kB / 0.952 GB, free: 7.367 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003091/0.5491, allocations: 93.56 kB / 0.9521 GB, free: 7.305 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 7.028e-05/0.5492, allocations: 63.53 kB / 0.9521 GB, free: 7.266 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 8.357e-05/0.5492, allocations: 16.78 kB / 0.9521 GB, free: 7.254 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 7.912e-05/0.5493, allocations: 27.08 kB / 0.9522 GB, free: 7.238 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.903e-05/0.5494, allocations: 19.89 kB / 0.9522 GB, free: 7.227 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.458e-05/0.5494, allocations: 2.969 kB / 0.9522 GB, free: 7.227 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000131/0.5496, allocations: 64.06 kB / 0.9523 GB, free: 7.199 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.463e-05/0.5496, allocations: 17.3 kB / 0.9523 GB, free: 7.184 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.876e-05/0.5496, allocations: 22.56 kB / 0.9523 GB, free: 7.168 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001464/0.5498, allocations: 98.56 kB / 0.9524 GB, free: 7.109 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.244e-06/0.5498, allocations: 0 / 0.9524 GB, free: 7.109 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.041e-06/0.5498, allocations: 0 / 0.9524 GB, free: 7.109 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.539e-06/0.5498, allocations: 0 / 0.9524 GB, free: 7.109 MB / 0.7169 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.0003367/0.5501, allocations: 375.3 kB / 0.9527 GB, free: 6.719 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.366e-05/0.5502, allocations: 9.844 kB / 0.9528 GB, free: 6.719 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.337e-05/0.5502, allocations: 38.69 kB / 0.9528 GB, free: 6.672 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002904/0.5505, allocations: 27 kB / 0.9528 GB, free: 6.66 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.42e-05/0.5506, allocations: 178.8 kB / 0.953 GB, free: 6.449 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.606e-06/0.5506, allocations: 1.5 kB / 0.953 GB, free: 6.449 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.257e-05/0.5506, allocations: 2.875 kB / 0.953 GB, free: 6.449 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002147/0.5508, allocations: 79.48 kB / 0.9531 GB, free: 6.387 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.522e-06/0.5508, allocations: 0 / 0.9531 GB, free: 6.387 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.158e-05/0.5508, allocations: 5.375 kB / 0.9531 GB, free: 6.383 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.118e-06/0.5509, allocations: 0 / 0.9531 GB, free: 6.383 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002525/0.5511, allocations: 67.06 kB / 0.9531 GB, free: 6.352 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003768/0.5515, allocations: 328.9 kB / 0.9534 GB, free: 6.008 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002339/0.5517, allocations: 72.44 kB / 0.9535 GB, free: 5.957 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001307/0.5519, allocations: 39.67 kB / 0.9536 GB, free: 5.934 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.85e-05/0.5519, allocations: 3.984 kB / 0.9536 GB, free: 5.93 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.385e-05/0.5519, allocations: 36.41 kB / 0.9536 GB, free: 5.887 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=3): time 1.112e-06/0.5519, allocations: 0 / 0.9536 GB, free: 5.887 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3): time 0.0005097/0.5524, allocations: 134.5 kB / 0.9537 GB, free: 5.805 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.978e-05/0.5525, allocations: 52.62 kB / 0.9538 GB, free: 5.742 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.101e-05/0.5525, allocations: 125.1 kB / 0.9539 GB, free: 5.625 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.01e-05/0.5526, allocations: 25.7 kB / 0.9539 GB, free: 5.594 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.43e-05/0.5526, allocations: 86.2 kB / 0.954 GB, free: 5.508 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.85e-05/0.5526, allocations: 8.969 kB / 0.954 GB, free: 5.5 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.01e-05/0.5527, allocations: 23.23 kB / 0.954 GB, free: 5.477 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.667e-05/0.5527, allocations: 323.8 kB / 0.9543 GB, free: 5.152 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001311/0.5528, allocations: 28.66 kB / 0.9544 GB, free: 5.141 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001225/0.553, allocations: 42.17 kB / 0.9544 GB, free: 5.117 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002412/0.5532, allocations: 64.88 kB / 0.9545 GB, free: 5.082 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.5532, allocations: 0 / 0.9545 GB, free: 5.082 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002963/0.5535, allocations: 107.7 kB / 0.9546 GB, free: 5.012 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.111e-05/0.5535, allocations: 8.031 kB / 0.9546 GB, free: 5.008 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.017e-06/0.5536, allocations: 1.219 kB / 0.9546 GB, free: 5.008 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.185e-05/0.5536, allocations: 0 / 0.9546 GB, free: 5.008 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001375/0.5537, allocations: 22.38 kB / 0.9546 GB, free: 4.996 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.018e-06/0.5537, allocations: 0 / 0.9546 GB, free: 4.996 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.756e-05/0.5538, allocations: 9.141 kB / 0.9546 GB, free: 4.992 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.123e-05/0.5538, allocations: 1.594 kB / 0.9546 GB, free: 4.992 MB / 0.7169 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 5.43e-05/0.5539, allocations: 115.4 kB / 0.9547 GB, free: 4.871 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.178e-05/0.5539, allocations: 11.25 kB / 0.9547 GB, free: 4.863 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.77e-05/0.554, allocations: 10.73 kB / 0.9547 GB, free: 4.848 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.352e-06/0.554, allocations: 0 / 0.9547 GB, free: 4.848 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.747e-06/0.554, allocations: 1.625 kB / 0.9547 GB, free: 4.848 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.014e-06/0.554, allocations: 0 / 0.9547 GB, free: 4.848 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000137/0.5541, allocations: 195.1 kB / 0.9549 GB, free: 4.621 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.42e-07/0.5541, allocations: 0 / 0.9549 GB, free: 4.621 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001147/0.5543, allocations: 21.3 kB / 0.955 GB, free: 4.609 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.583e-06/0.5543, allocations: 1.906 kB / 0.955 GB, free: 4.609 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.145e-05/0.5543, allocations: 9.516 kB / 0.955 GB, free: 4.602 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.002e-06/0.5543, allocations: 0 / 0.955 GB, free: 4.602 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.12e-07/0.5543, allocations: 0 / 0.955 GB, free: 4.602 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003151/0.5546, allocations: 205.6 kB / 0.9552 GB, free: 4.426 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.611e-05/0.5546, allocations: 78.27 kB / 0.9552 GB, free: 4.332 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.911e-05/0.5547, allocations: 1.312 kB / 0.9552 GB, free: 4.332 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001186/0.5548, allocations: 8.766 kB / 0.9552 GB, free: 4.328 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.85e-05/0.5548, allocations: 1.25 kB / 0.9552 GB, free: 4.328 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.308e-06/0.5548, allocations: 6.359 kB / 0.9552 GB, free: 4.324 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.035e-05/0.5549, allocations: 92.59 kB / 0.9553 GB, free: 4.242 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1e-07/0.5549, allocations: 0 / 0.9553 GB, free: 4.242 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002613/0.5551, allocations: 37.05 kB / 0.9554 GB, free: 4.227 MB / 0.7169 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.0005225/0.5557, allocations: 0.7561 MB / 0.9561 GB, free: 3.516 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003011/0.556, allocations: 74.5 kB / 0.9562 GB, free: 3.48 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.415e-06/0.556, allocations: 1.094 kB / 0.9562 GB, free: 3.48 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001398/0.5561, allocations: 45.22 kB / 0.9562 GB, free: 3.457 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002662/0.5564, allocations: 3.5 kB / 0.9562 GB, free: 3.457 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004891/0.5569, allocations: 212.7 kB / 0.9564 GB, free: 3.262 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.251e-05/0.557, allocations: 0.6848 MB / 0.9571 GB, free: 2.559 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 8.568e-05/0.5571, allocations: 24.89 kB / 0.9571 GB, free: 2.543 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.958e-05/0.5572, allocations: 23.08 kB / 0.9571 GB, free: 2.523 MB / 0.7169 GB Notification: Performance of SimCode: time 2.4e-07/0.5572, allocations: 7.938 kB / 0.9572 GB, free: 2.516 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0174/0.5746, allocations: 2.111 MB / 0.9592 GB, free: 1.367 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.164/7.739, allocations: 11.89 kB / 0.9592 GB, free: 1.359 MB / 0.7169 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