Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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.LMTDStar,fileNamePrefix="Buildings_10_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_LMTDStar",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.LMTDStar,fileNamePrefix="Buildings_10_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.001081/0.001081, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001058/0.001058, allocations: 196.8 kB / 16.14 MB, free: 6.711 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.316/1.316, allocations: 222.9 MB / 239.8 MB, free: 4.625 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.456/2.456, allocations: 437 MB / 0.7099 GB, free: 5.387 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001272/0.001272, allocations: 63.91 kB / 0.8687 GB, free: 5.098 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5306/0.5319, allocations: 151.6 MB / 1.017 GB, free: 2.781 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.LMTDStar): time 0.002641/0.5346, allocations: 1.59 MB / 1.018 GB, free: 1.18 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001162/0.5358, allocations: 0.7838 MB / 1.019 GB, free: 396 kB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.66e-05/0.5358, allocations: 4 kB / 1.019 GB, free: 392 kB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 3.81e-05/0.5359, allocations: 0 / 1.019 GB, free: 392 kB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 6.796e-05/0.536, allocations: 11.86 kB / 1.019 GB, free: 380 kB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003462/0.5363, allocations: 71.8 kB / 1.019 GB, free: 308 kB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 7.768e-05/0.5364, allocations: 47.8 kB / 1.019 GB, free: 260 kB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 8.646e-05/0.5365, allocations: 15.98 kB / 1.019 GB, free: 244 kB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 8.879e-05/0.5366, allocations: 23.92 kB / 1.019 GB, free: 220 kB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 6.282e-05/0.5367, allocations: 23.86 kB / 1.019 GB, free: 196 kB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.335e-05/0.5367, allocations: 0 / 1.019 GB, free: 196 kB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001531/0.5368, allocations: 71.92 kB / 1.019 GB, free: 124 kB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 1.764e-05/0.5369, allocations: 0 / 1.019 GB, free: 124 kB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 4.455e-05/0.5369, allocations: 23.86 kB / 1.019 GB, free: 100 kB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0001828/0.5371, allocations: 102 kB / 1.019 GB, free: 0 / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 3.356e-06/0.5371, allocations: 0 / 1.019 GB, free: 0 / 0.7637 GB Notification: Performance of FrontEnd: time 7.11e-07/0.5371, allocations: 0 / 1.019 GB, free: 0 / 0.7637 GB Notification: Performance of Transformations before backend: time 3.868e-06/0.5371, allocations: 0 / 1.019 GB, free: 0 / 0.7637 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.0004601/0.5376, allocations: 383.3 kB / 1.02 GB, free: 15.57 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.849e-05/0.5377, allocations: 8.031 kB / 1.02 GB, free: 15.57 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.318e-05/0.5377, allocations: 30.75 kB / 1.02 GB, free: 15.53 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003127/0.538, allocations: 28.89 kB / 1.02 GB, free: 15.5 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001125/0.5381, allocations: 172.2 kB / 1.02 GB, free: 15.29 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.948e-06/0.5381, allocations: 384 / 1.02 GB, free: 15.29 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.575e-05/0.5382, allocations: 8.375 kB / 1.02 GB, free: 15.29 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000241/0.5384, allocations: 81.75 kB / 1.02 GB, free: 15.2 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.622e-06/0.5384, allocations: 0 / 1.02 GB, free: 15.2 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.144e-05/0.5384, allocations: 0 / 1.02 GB, free: 15.2 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.137e-06/0.5385, allocations: 0 / 1.02 GB, free: 15.2 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002702/0.5387, allocations: 71.89 kB / 1.02 GB, free: 15.13 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004777/0.5392, allocations: 328.5 kB / 1.02 GB, free: 14.76 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002579/0.5395, allocations: 74.47 kB / 1.021 GB, free: 14.68 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001346/0.5396, allocations: 36.94 kB / 1.021 GB, free: 14.64 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.842e-05/0.5397, allocations: 0 / 1.021 GB, free: 14.64 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.478e-05/0.5397, allocations: 46.48 kB / 1.021 GB, free: 14.59 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=3): time 8.52e-07/0.5397, allocations: 0 / 1.021 GB, free: 14.59 MB / 0.7794 GB Notification: Performance of matching and sorting (n=3): time 0.0005206/0.5402, allocations: 133.5 kB / 1.021 GB, free: 14.45 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.948e-05/0.5403, allocations: 51.41 kB / 1.021 GB, free: 14.39 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.832e-05/0.5404, allocations: 125.7 kB / 1.021 GB, free: 14.25 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.505e-05/0.5404, allocations: 25.7 kB / 1.021 GB, free: 14.22 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 5.213e-05/0.5404, allocations: 92.03 kB / 1.021 GB, free: 14.13 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.063e-05/0.5405, allocations: 11.91 kB / 1.021 GB, free: 14.12 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.528e-05/0.5405, allocations: 17.7 kB / 1.021 GB, free: 14.09 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.000115/0.5407, allocations: 326.8 kB / 1.021 GB, free: 13.77 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001349/0.5408, allocations: 31.98 kB / 1.021 GB, free: 13.73 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001253/0.5409, allocations: 27.97 kB / 1.021 GB, free: 13.71 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002506/0.5412, allocations: 72.75 kB / 1.022 GB, free: 13.63 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.5412, allocations: 0 / 1.022 GB, free: 13.63 MB / 0.7794 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003277/0.5415, allocations: 109.5 kB / 1.022 GB, free: 13.52 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.441e-05/0.5415, allocations: 4 kB / 1.022 GB, free: 13.52 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.679e-06/0.5416, allocations: 0 / 1.022 GB, free: 13.52 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.038e-05/0.5416, allocations: 0 / 1.022 GB, free: 13.52 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001446/0.5417, allocations: 23.97 kB / 1.022 GB, free: 13.49 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.869e-06/0.5417, allocations: 0 / 1.022 GB, free: 13.49 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.657e-05/0.5418, allocations: 4 kB / 1.022 GB, free: 13.49 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.371e-05/0.5418, allocations: 3.984 kB / 1.022 GB, free: 13.48 MB / 0.7794 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 7.675e-05/0.5419, allocations: 118.3 kB / 1.022 GB, free: 13.36 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.179e-05/0.542, allocations: 4 kB / 1.022 GB, free: 13.36 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.352e-05/0.542, allocations: 11.91 kB / 1.022 GB, free: 13.34 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.743e-06/0.542, allocations: 0 / 1.022 GB, free: 13.34 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.968e-06/0.542, allocations: 0 / 1.022 GB, free: 13.34 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.318e-06/0.542, allocations: 4 kB / 1.022 GB, free: 13.34 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002003/0.5422, allocations: 197.5 kB / 1.022 GB, free: 13.09 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.5423, allocations: 3.938 kB / 1.022 GB, free: 13.09 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001263/0.5424, allocations: 19.97 kB / 1.022 GB, free: 13.07 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.847e-06/0.5424, allocations: 0 / 1.022 GB, free: 13.07 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.277e-05/0.5424, allocations: 7.922 kB / 1.022 GB, free: 13.06 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.373e-06/0.5424, allocations: 0 / 1.022 GB, free: 13.06 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.5424, allocations: 0 / 1.022 GB, free: 13.06 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00036/0.5428, allocations: 207.3 kB / 1.022 GB, free: 12.84 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.657e-05/0.5428, allocations: 85.38 kB / 1.022 GB, free: 12.74 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.974e-05/0.5429, allocations: 0 / 1.022 GB, free: 12.74 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001177/0.543, allocations: 12 kB / 1.022 GB, free: 12.73 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.215e-05/0.543, allocations: 7.984 kB / 1.022 GB, free: 12.72 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.696e-06/0.543, allocations: 0 / 1.022 GB, free: 12.72 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 5.126e-05/0.5431, allocations: 95.27 kB / 1.022 GB, free: 12.63 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.4e-07/0.5431, allocations: 0 / 1.022 GB, free: 12.63 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002634/0.5434, allocations: 24 kB / 1.022 GB, free: 12.61 MB / 0.7794 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.0007202/0.5441, allocations: 0.763 MB / 1.023 GB, free: 11.81 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0003198/0.5444, allocations: 75.92 kB / 1.023 GB, free: 11.74 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.185e-06/0.5444, allocations: 0 / 1.023 GB, free: 11.74 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001459/0.5446, allocations: 47.91 kB / 1.023 GB, free: 11.69 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002845/0.5449, allocations: 0 / 1.023 GB, free: 11.69 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005429/0.5454, allocations: 222.4 kB / 1.023 GB, free: 11.44 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002604/0.5457, allocations: 0.6848 MB / 1.024 GB, free: 10.73 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 9.42e-05/0.5458, allocations: 19.98 kB / 1.024 GB, free: 10.71 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.512e-05/0.5459, allocations: 19.42 kB / 1.024 GB, free: 10.69 MB / 0.7794 GB Notification: Performance of SimCode: time 2.71e-07/0.5459, allocations: 0 / 1.024 GB, free: 10.69 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2293/0.7752, allocations: 1.948 MB / 1.026 GB, free: 8.84 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.00022/0.7754, allocations: 213.4 kB / 1.026 GB, free: 8.582 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.688/2.463, allocations: 0 / 1.026 GB, free: 8.582 MB / 0.7794 GB (rm -f Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.LMTDStar.pipe ; mkfifo Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.LMTDStar.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.LMTDStar.pipe >> ../files/Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.LMTDStar.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.LMTDStar_res.mat --tempDir=temp_Buildings_10_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_LMTDStar_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_LMTDStar.fmu > Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.LMTDStar.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.LMTDStar_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_Storage_Ice_BaseClasses_Examples_LMTDStar.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.LMTDStar.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches