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.007588/0.007588, allocations: 99.81 kB / 15.73 MB, free: 6.062 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.001308/0.001308, allocations: 195.1 kB / 16.67 MB, free: 5.973 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.323/1.323, allocations: 222.9 MB / 240.4 MB, free: 15.13 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.163/2.163, allocations: 390.3 MB / 0.6648 GB, free: 0.6094 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.00136/0.001361, allocations: 59.91 kB / 0.9504 GB, free: 8.145 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7365/0.7379, allocations: 140.4 MB / 1.087 GB, free: 5.266 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.LMTDStar): time 0.002333/0.7403, allocations: 1.543 MB / 1.089 GB, free: 4.191 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001004/0.7413, allocations: 0.7514 MB / 1.09 GB, free: 3.664 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.849e-05/0.7413, allocations: 0.9688 kB / 1.09 GB, free: 3.664 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.001e-05/0.7414, allocations: 5.297 kB / 1.09 GB, free: 3.66 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 6.393e-05/0.7415, allocations: 15.69 kB / 1.09 GB, free: 3.648 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003393/0.7418, allocations: 87.67 kB / 1.09 GB, free: 3.605 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 7.9e-05/0.7419, allocations: 50.89 kB / 1.09 GB, free: 3.582 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 8.794e-05/0.742, allocations: 15.14 kB / 1.09 GB, free: 3.574 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 8.543e-05/0.7421, allocations: 30.39 kB / 1.09 GB, free: 3.559 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 7.545e-05/0.7422, allocations: 25.28 kB / 1.09 GB, free: 3.547 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.52e-05/0.7422, allocations: 3.094 kB / 1.09 GB, free: 3.547 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001508/0.7423, allocations: 69.16 kB / 1.09 GB, free: 3.527 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 1.461e-05/0.7424, allocations: 11.36 kB / 1.09 GB, free: 3.52 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 3.255e-05/0.7424, allocations: 20.25 kB / 1.09 GB, free: 3.508 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001839/0.7426, allocations: 100.3 kB / 1.09 GB, free: 3.473 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.7426, allocations: 1.156 kB / 1.09 GB, free: 3.473 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.263e-06/0.7426, allocations: 4 kB / 1.09 GB, free: 3.469 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 4.248e-06/0.7426, allocations: 0 / 1.09 GB, free: 3.469 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.0003766/0.743, allocations: 376.1 kB / 1.09 GB, free: 3.086 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.476e-05/0.743, allocations: 10.23 kB / 1.091 GB, free: 3.086 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.542e-05/0.7431, allocations: 35.75 kB / 1.091 GB, free: 3.043 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003128/0.7434, allocations: 27.16 kB / 1.091 GB, free: 3.039 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.92e-05/0.7435, allocations: 177.3 kB / 1.091 GB, free: 2.832 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.069e-05/0.7435, allocations: 5.812 kB / 1.091 GB, free: 2.828 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.553e-05/0.7435, allocations: 1.875 kB / 1.091 GB, free: 2.828 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002603/0.7438, allocations: 79.75 kB / 1.091 GB, free: 2.785 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.612e-06/0.7438, allocations: 7.875 kB / 1.091 GB, free: 2.777 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.289e-05/0.7438, allocations: 8 kB / 1.091 GB, free: 2.77 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.789e-06/0.7438, allocations: 1.062 kB / 1.091 GB, free: 2.77 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002798/0.7441, allocations: 65.7 kB / 1.091 GB, free: 2.754 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004387/0.7446, allocations: 326.1 kB / 1.091 GB, free: 2.445 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002684/0.7448, allocations: 75.25 kB / 1.091 GB, free: 2.402 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001434/0.745, allocations: 42.75 kB / 1.091 GB, free: 2.383 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.622e-05/0.745, allocations: 4.875 kB / 1.091 GB, free: 2.379 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.23e-05/0.745, allocations: 31.86 kB / 1.091 GB, free: 2.34 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=3): time 1.092e-06/0.745, allocations: 0 / 1.091 GB, free: 2.34 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3): time 0.0005354/0.7456, allocations: 137 kB / 1.091 GB, free: 2.281 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.892e-05/0.7456, allocations: 52.88 kB / 1.092 GB, free: 2.219 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.069e-05/0.7457, allocations: 117 kB / 1.092 GB, free: 2.113 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.136e-05/0.7457, allocations: 25.7 kB / 1.092 GB, free: 2.082 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 2.749e-05/0.7457, allocations: 92.98 kB / 1.092 GB, free: 1.992 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.131e-05/0.7458, allocations: 14.33 kB / 1.092 GB, free: 1.98 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.244e-05/0.7458, allocations: 22.72 kB / 1.092 GB, free: 1.961 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 3.901e-05/0.7459, allocations: 321.9 kB / 1.092 GB, free: 1.641 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001398/0.746, allocations: 36.28 kB / 1.092 GB, free: 1.629 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001401/0.7461, allocations: 32.06 kB / 1.092 GB, free: 1.621 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002542/0.7464, allocations: 69.67 kB / 1.092 GB, free: 1.594 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.443e-06/0.7464, allocations: 0.8438 kB / 1.092 GB, free: 1.594 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003223/0.7467, allocations: 100.9 kB / 1.092 GB, free: 1.547 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.708e-05/0.7468, allocations: 5.531 kB / 1.092 GB, free: 1.547 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.649e-06/0.7468, allocations: 0 / 1.092 GB, free: 1.547 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.42e-05/0.7468, allocations: 4.781 kB / 1.092 GB, free: 1.543 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001465/0.747, allocations: 16.17 kB / 1.092 GB, free: 1.543 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.911e-06/0.747, allocations: 0.8125 kB / 1.092 GB, free: 1.543 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.028e-05/0.7471, allocations: 7.094 kB / 1.092 GB, free: 1.543 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.362e-05/0.7471, allocations: 7.797 kB / 1.092 GB, free: 1.539 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 5.763e-05/0.7471, allocations: 117.1 kB / 1.092 GB, free: 1.418 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.341e-05/0.7472, allocations: 10.48 kB / 1.092 GB, free: 1.41 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.708e-05/0.7472, allocations: 15.56 kB / 1.093 GB, free: 1.391 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.124e-06/0.7472, allocations: 0 / 1.093 GB, free: 1.391 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.629e-06/0.7473, allocations: 1.391 kB / 1.093 GB, free: 1.391 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.635e-06/0.7473, allocations: 0 / 1.093 GB, free: 1.391 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001652/0.7474, allocations: 196.9 kB / 1.093 GB, free: 1.18 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/0.7474, allocations: 0 / 1.093 GB, free: 1.18 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001204/0.7476, allocations: 16.58 kB / 1.093 GB, free: 1.18 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.783e-06/0.7476, allocations: 0 / 1.093 GB, free: 1.18 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.181e-05/0.7476, allocations: 3.719 kB / 1.093 GB, free: 1.18 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.242e-06/0.7476, allocations: 4.656 kB / 1.093 GB, free: 1.176 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.7476, allocations: 0.8438 kB / 1.093 GB, free: 1.176 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003408/0.7479, allocations: 201.1 kB / 1.093 GB, free: 1.023 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 2.072e-05/0.748, allocations: 87.62 kB / 1.093 GB, free: 0.9219 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.154e-05/0.748, allocations: 5.156 kB / 1.093 GB, free: 0.918 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001202/0.7481, allocations: 14.55 kB / 1.093 GB, free: 0.9102 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.425e-05/0.7482, allocations: 3.031 kB / 1.093 GB, free: 0.9102 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.128e-05/0.7482, allocations: 7.938 kB / 1.093 GB, free: 0.9062 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 3.634e-05/0.7482, allocations: 91.75 kB / 1.093 GB, free: 0.8281 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.2e-07/0.7482, allocations: 0.6875 kB / 1.093 GB, free: 0.8281 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002899/0.7485, allocations: 26.25 kB / 1.093 GB, free: 0.8242 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.0006045/0.7491, allocations: 0.7559 MB / 1.094 GB, free: 16.14 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0003271/0.7495, allocations: 80.47 kB / 1.094 GB, free: 16.11 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.7495, allocations: 0 / 1.094 GB, free: 16.11 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0001491/0.7496, allocations: 39.36 kB / 1.094 GB, free: 16.11 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002953/0.7499, allocations: 0.8125 kB / 1.094 GB, free: 16.11 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005681/0.7505, allocations: 206.4 kB / 1.094 GB, free: 15.93 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002148/0.7507, allocations: 0.6879 MB / 1.095 GB, free: 15.23 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 7.924e-05/0.7508, allocations: 16.3 kB / 1.095 GB, free: 15.22 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.757e-05/0.7509, allocations: 19.36 kB / 1.095 GB, free: 15.21 MB / 0.8731 GB Notification: Performance of SimCode: time 2.4e-07/0.7509, allocations: 0.75 kB / 1.095 GB, free: 15.21 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01714/0.7681, allocations: 2.145 MB / 1.097 GB, free: 14.76 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.176/7.944, allocations: 18.55 kB / 1.097 GB, free: 14.75 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