Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.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/ThermofluidStream 1.1.0-main/package.mo", uses=false) Using package ThermofluidStream with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/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(ThermofluidStream.Undirected.Boundaries.Tests.Reservoir,fileNamePrefix="ThermofluidStream_ThermofluidStream_Undirected_Boundaries_Tests_Reservoir",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Undirected.Boundaries.Tests.Reservoir,fileNamePrefix="ThermofluidStream_ThermofluidStream_Undirected_Boundaries_Tests_Reservoir",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.0052/0.0052, allocations: 103.5 kB / 15.73 MB, free: 6.492 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.001136/0.001136, allocations: 188.1 kB / 16.67 MB, free: 6.379 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.314/1.314, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6466/0.6466, allocations: 91.2 MB / 381.7 MB, free: 9.324 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001652/0.001652, allocations: 75.88 kB / 0.5164 GB, free: 9.5 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1163/0.1179, allocations: 67.7 MB / 0.5825 GB, free: 5.723 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Boundaries.Tests.Reservoir): time 0.2898/0.4077, allocations: 41.1 MB / 0.6226 GB, free: 0.7969 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.008233/0.416, allocations: 5.333 MB / 0.6278 GB, free: 12.97 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001454/0.4175, allocations: 39.41 kB / 0.6279 GB, free: 12.95 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001574/0.4191, allocations: 0.5503 MB / 0.6284 GB, free: 12.62 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004057/0.4232, allocations: 1.328 MB / 0.6297 GB, free: 11.81 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002457/0.4257, allocations: 0.8799 MB / 0.6306 GB, free: 11.34 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.00291/0.4286, allocations: 2.12 MB / 0.6326 GB, free: 10.31 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004902/0.4291, allocations: 273 kB / 0.6329 GB, free: 10.2 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00284/0.4319, allocations: 1.319 MB / 0.6342 GB, free: 9.582 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001324/0.4333, allocations: 0.7668 MB / 0.6349 GB, free: 9.223 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002775/0.4336, allocations: 99.56 kB / 0.635 GB, free: 9.223 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002469/0.436, allocations: 0.7375 MB / 0.6357 GB, free: 9.012 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003304/0.4364, allocations: 276.6 kB / 0.636 GB, free: 8.82 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000993/0.4374, allocations: 0.6466 MB / 0.6366 GB, free: 8.395 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0034/0.4408, allocations: 1.847 MB / 0.6384 GB, free: 7.199 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.108e-06/0.4408, allocations: 0 / 0.6384 GB, free: 7.199 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.203e-06/0.4408, allocations: 4 kB / 0.6384 GB, free: 7.195 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.422e-05/0.4409, allocations: 0 / 0.6384 GB, free: 7.195 MB / 494.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 230 * Number of variables: 230 Notification: Performance of Generate backend data structure: time 0.003632/0.4445, allocations: 1.646 MB / 0.6401 GB, free: 5.961 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.741e-05/0.4446, allocations: 9.438 kB / 0.6401 GB, free: 5.961 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001902/0.4448, allocations: 141.4 kB / 0.6402 GB, free: 5.844 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004736/0.4452, allocations: 156.4 kB / 0.6403 GB, free: 5.766 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001543/0.4468, allocations: 0.8603 MB / 0.6412 GB, free: 5.082 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.808e-05/0.4468, allocations: 73.91 kB / 0.6413 GB, free: 5.043 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001404/0.447, allocations: 98.31 kB / 0.6413 GB, free: 5.008 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001724/0.4487, allocations: 1.074 MB / 0.6424 GB, free: 4.34 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.972e-05/0.4488, allocations: 1.156 kB / 0.6424 GB, free: 4.34 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001062/0.4489, allocations: 46.06 kB / 0.6424 GB, free: 4.305 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.652e-05/0.4489, allocations: 22.47 kB / 0.6425 GB, free: 4.305 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001765/0.4507, allocations: 1.004 MB / 0.6434 GB, free: 3.824 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005744/0.4564, allocations: 4.744 MB / 0.6481 GB, free: 15.46 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001767/0.4582, allocations: 0.9411 MB / 0.649 GB, free: 14.94 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008152/0.459, allocations: 0.4972 MB / 0.6495 GB, free: 14.68 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004459/0.4635, allocations: 3.462 MB / 0.6529 GB, free: 11.27 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.427e-05/0.4636, allocations: 52.72 kB / 0.6529 GB, free: 11.21 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=108): time 3.897e-06/0.4636, allocations: 1.156 kB / 0.6529 GB, free: 11.21 MB / 0.4981 GB Notification: Performance of matching and sorting (n=122): time 0.01048/0.4741, allocations: 4.437 MB / 0.6572 GB, free: 8.355 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.135e-05/0.4741, allocations: 95.45 kB / 0.6573 GB, free: 8.258 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000949/0.4751, allocations: 0.7527 MB / 0.6581 GB, free: 7.832 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 8.926e-05/0.4752, allocations: 47.08 kB / 0.6581 GB, free: 7.785 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003232/0.4755, allocations: 480.5 kB / 0.6586 GB, free: 7.363 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003003/0.4758, allocations: 417.8 kB / 0.659 GB, free: 6.996 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003026/0.4762, allocations: 203.2 kB / 0.6592 GB, free: 6.875 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001444/0.4763, allocations: 352.1 kB / 0.6595 GB, free: 6.535 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008415/0.4772, allocations: 408.9 kB / 0.6599 GB, free: 6.344 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009371/0.4781, allocations: 0.5679 MB / 0.6604 GB, free: 5.957 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001856/0.48, allocations: 1.052 MB / 0.6615 GB, free: 5.328 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.378e-06/0.48, allocations: 1.844 kB / 0.6615 GB, free: 5.328 MB / 0.4981 GB Notification: Performance of matching and sorting (n=144) (initialization): time 0.003325/0.4833, allocations: 1.501 MB / 0.6629 GB, free: 4.512 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 2.215e-05/0.4833, allocations: 6.875 kB / 0.6629 GB, free: 4.512 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.16e-05/0.4834, allocations: 4.812 kB / 0.663 GB, free: 4.512 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001021/0.4844, allocations: 299.6 kB / 0.6632 GB, free: 4.328 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009317/0.4853, allocations: 243.7 kB / 0.6635 GB, free: 4.25 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008979/0.4943, allocations: 12.14 MB / 0.6753 GB, free: 7.004 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001015/0.4954, allocations: 43.97 kB / 0.6754 GB, free: 6.961 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001111/0.4955, allocations: 47.98 kB / 0.6754 GB, free: 6.914 MB / 0.5137 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (124): * Single equations (assignments): 116 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 8 systems {(1,2,100.0%), (1,2,100.0%), (2,5,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004943/0.496, allocations: 265.6 kB / 0.6757 GB, free: 6.648 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000244/0.4962, allocations: 122.6 kB / 0.6758 GB, free: 6.527 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003805/0.5001, allocations: 1.863 MB / 0.6776 GB, free: 4.613 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.07e-05/0.5001, allocations: 12 kB / 0.6776 GB, free: 4.602 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.057e-05/0.5001, allocations: 7.938 kB / 0.6776 GB, free: 4.594 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.516e-05/0.5001, allocations: 11.92 kB / 0.6776 GB, free: 4.582 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005043/0.5052, allocations: 2.882 MB / 0.6804 GB, free: 1.609 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.071e-06/0.5052, allocations: 0 / 0.6804 GB, free: 1.609 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009113/0.5061, allocations: 207.7 kB / 0.6806 GB, free: 1.406 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009972/0.5071, allocations: 326.5 kB / 0.681 GB, free: 1.062 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.659e-05/0.5072, allocations: 39.97 kB / 0.681 GB, free: 1.023 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009033/0.5163, allocations: 12.14 MB / 0.6929 GB, free: 3.762 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.913e-06/0.5163, allocations: 7.938 kB / 0.6929 GB, free: 3.754 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004245/0.5206, allocations: 2.171 MB / 0.695 GB, free: 1.527 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002945/0.5209, allocations: 179.7 kB / 0.6952 GB, free: 1.332 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001624/0.521, allocations: 31.92 kB / 0.6952 GB, free: 1.301 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007376/0.5218, allocations: 51.95 kB / 0.6952 GB, free: 1.25 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002206/0.522, allocations: 112.9 kB / 0.6953 GB, free: 1.141 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.685e-05/0.5221, allocations: 43.97 kB / 0.6954 GB, free: 1.098 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0007015/0.5228, allocations: 0.559 MB / 0.6959 GB, free: 0.5273 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.1e-07/0.5228, allocations: 0 / 0.6959 GB, free: 0.5273 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.001525/0.5244, allocations: 439.9 kB / 0.6963 GB, free: 100 kB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 8 (reservoir.M,reservoir.U_med,flowResistance1.rear.m_flow,flowResistance2.rear.m_flow,reservoir2.M,reservoir2.U_med,flowResistance4.inlet.m_flow,flowResistance5.inlet.m_flow) * 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 (104): * Single equations (assignments): 96 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 6 systems {(1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (2,5,100.0%), (1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,2), (1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.004932/0.5293, allocations: 3.031 MB / 0.6993 GB, free: 13 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.003483/0.5328, allocations: 2.079 MB / 0.7013 GB, free: 10.82 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 6.683e-06/0.5328, allocations: 4 kB / 0.7013 GB, free: 10.82 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.002379/0.5352, allocations: 1.605 MB / 0.7029 GB, free: 9.109 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001735/0.537, allocations: 355.4 kB / 0.7032 GB, free: 8.766 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0167/0.5537, allocations: 10.05 MB / 0.7131 GB, free: 14.43 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006567/0.5544, allocations: 1.099 MB / 0.7141 GB, free: 13.3 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0008393/0.5552, allocations: 235.5 kB / 0.7144 GB, free: 13.08 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006404/0.5559, allocations: 499.2 kB / 0.7148 GB, free: 12.59 MB / 0.5606 GB Notification: Performance of SimCode: time 7.21e-07/0.5559, allocations: 0 / 0.7148 GB, free: 12.59 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07917/0.635, allocations: 36.28 MB / 0.7503 GB, free: 8.625 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.26/15.89, allocations: 11.78 kB / 0.7503 GB, free: 8.613 MB / 0.5919 GB (rm -f ThermofluidStream_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.pipe ; mkfifo ThermofluidStream_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.pipe >> ../files/ThermofluidStream_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ThermofluidStream_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir_res.mat --tempDir=temp_ThermofluidStream_ThermofluidStream_Undirected_Boundaries_Tests_Reservoir_fmu --startTime=0 --stopTime=10 --timeout=1200 --tolerance=1e-06 ThermofluidStream_ThermofluidStream_Undirected_Boundaries_Tests_Reservoir.fmu > ThermofluidStream_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.pipe 2>&1) diffSimulationResults("ThermofluidStream_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Undirected.Boundaries.Tests.Reservoir_ref.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches