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.006975/0.006975, allocations: 101.8 kB / 15.73 MB, free: 6.016 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.001467/0.001467, allocations: 184.6 kB / 16.67 MB, free: 5.949 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.374/1.374, allocations: 222.9 MB / 240.4 MB, free: 4.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6689/0.6689, allocations: 91.21 MB / 381.7 MB, free: 9.355 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001584/0.001584, allocations: 79.88 kB / 0.5164 GB, free: 9.508 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1459/0.1475, allocations: 67.7 MB / 0.5825 GB, free: 5.73 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Boundaries.Tests.Reservoir): time 0.3563/0.5038, allocations: 41.09 MB / 0.6226 GB, free: 0.9609 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.01058/0.5144, allocations: 5.333 MB / 0.6278 GB, free: 13.13 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002059/0.5165, allocations: 39 kB / 0.6279 GB, free: 13.12 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002226/0.5188, allocations: 0.5468 MB / 0.6284 GB, free: 12.79 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005217/0.5241, allocations: 1.334 MB / 0.6297 GB, free: 11.97 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003288/0.5274, allocations: 0.8847 MB / 0.6306 GB, free: 11.5 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.003667/0.5311, allocations: 2.114 MB / 0.6326 GB, free: 10.47 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000678/0.5318, allocations: 274.2 kB / 0.6329 GB, free: 10.36 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003677/0.5355, allocations: 1.31 MB / 0.6342 GB, free: 9.75 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001719/0.5372, allocations: 0.771 MB / 0.6349 GB, free: 9.387 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003889/0.5376, allocations: 100.2 kB / 0.635 GB, free: 9.387 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003456/0.5411, allocations: 0.7422 MB / 0.6357 GB, free: 9.168 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005643/0.5417, allocations: 266.6 kB / 0.636 GB, free: 8.945 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001641/0.5433, allocations: 0.6467 MB / 0.6366 GB, free: 8.52 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004882/0.5482, allocations: 1.847 MB / 0.6384 GB, free: 7.324 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.073e-06/0.5482, allocations: 0 / 0.6384 GB, free: 7.324 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.635e-06/0.5483, allocations: 5.438 kB / 0.6384 GB, free: 7.32 MB / 494.1 MB Notification: Performance of Transformations before backend: time 7.845e-05/0.5483, allocations: 0 / 0.6384 GB, free: 7.32 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.005244/0.5536, allocations: 1.647 MB / 0.64 GB, free: 6.082 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.679e-05/0.5536, allocations: 10.31 kB / 0.6401 GB, free: 6.082 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002622/0.5539, allocations: 141.5 kB / 0.6402 GB, free: 5.965 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007416/0.5547, allocations: 155.5 kB / 0.6403 GB, free: 5.887 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00238/0.5571, allocations: 0.8638 MB / 0.6412 GB, free: 5.199 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.815e-05/0.5571, allocations: 71.38 kB / 0.6413 GB, free: 5.164 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001701/0.5573, allocations: 106.7 kB / 0.6414 GB, free: 5.121 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002134/0.5595, allocations: 1.071 MB / 0.6424 GB, free: 4.457 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.459e-05/0.5595, allocations: 3.938 kB / 0.6424 GB, free: 4.453 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.098e-05/0.5596, allocations: 43.31 kB / 0.6424 GB, free: 4.422 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.213e-05/0.5596, allocations: 24.56 kB / 0.6425 GB, free: 4.418 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001954/0.5616, allocations: 1.005 MB / 0.6434 GB, free: 3.938 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007201/0.5688, allocations: 4.746 MB / 0.6481 GB, free: 15.57 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0019/0.5707, allocations: 0.944 MB / 0.649 GB, free: 15.05 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009162/0.5717, allocations: 0.4961 MB / 0.6495 GB, free: 14.8 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.005214/0.5769, allocations: 3.464 MB / 0.6529 GB, free: 11.39 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.53e-05/0.577, allocations: 48.45 kB / 0.6529 GB, free: 11.34 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=108): time 3.216e-06/0.577, allocations: 0 / 0.6529 GB, free: 11.34 MB / 0.4981 GB Notification: Performance of matching and sorting (n=122): time 0.0116/0.5886, allocations: 4.437 MB / 0.6573 GB, free: 8.477 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.331e-05/0.5887, allocations: 95.06 kB / 0.6573 GB, free: 8.379 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001362/0.5901, allocations: 0.7454 MB / 0.6581 GB, free: 7.961 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0001041/0.5902, allocations: 51.67 kB / 0.6581 GB, free: 7.91 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004189/0.5906, allocations: 480.2 kB / 0.6586 GB, free: 7.488 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003645/0.591, allocations: 421.5 kB / 0.659 GB, free: 7.117 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003161/0.5913, allocations: 195.4 kB / 0.6592 GB, free: 7.004 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001391/0.5915, allocations: 356 kB / 0.6595 GB, free: 6.66 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009125/0.5924, allocations: 408.5 kB / 0.6599 GB, free: 6.469 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009985/0.5934, allocations: 0.577 MB / 0.6605 GB, free: 6.074 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002069/0.5955, allocations: 1.04 MB / 0.6615 GB, free: 5.457 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.023e-06/0.5955, allocations: 0 / 0.6615 GB, free: 5.457 MB / 0.4981 GB Notification: Performance of matching and sorting (n=144) (initialization): time 0.003492/0.599, allocations: 1.506 MB / 0.6629 GB, free: 4.637 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 2.543e-05/0.5991, allocations: 10.98 kB / 0.663 GB, free: 4.633 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.07e-05/0.5991, allocations: 2.812 kB / 0.663 GB, free: 4.633 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001237/0.6003, allocations: 305.2 kB / 0.6632 GB, free: 4.445 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009902/0.6013, allocations: 245 kB / 0.6635 GB, free: 4.355 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01074/0.6121, allocations: 12.13 MB / 0.6753 GB, free: 7.113 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001405/0.6135, allocations: 43.97 kB / 0.6754 GB, free: 7.07 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000233/0.6138, allocations: 51.98 kB / 0.6754 GB, free: 7.02 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.000661/0.6144, allocations: 261.8 kB / 0.6757 GB, free: 6.758 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004245/0.6149, allocations: 114.6 kB / 0.6758 GB, free: 6.645 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004407/0.6193, allocations: 1.863 MB / 0.6776 GB, free: 4.727 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.256e-05/0.6193, allocations: 12 kB / 0.6776 GB, free: 4.715 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.56e-05/0.6193, allocations: 7.938 kB / 0.6776 GB, free: 4.707 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.535e-05/0.6194, allocations: 7.969 kB / 0.6776 GB, free: 4.699 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006077/0.6254, allocations: 2.894 MB / 0.6805 GB, free: 1.715 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.474e-06/0.6255, allocations: 4 kB / 0.6805 GB, free: 1.711 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00088/0.6264, allocations: 211.7 kB / 0.6807 GB, free: 1.504 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001022/0.6274, allocations: 318.8 kB / 0.681 GB, free: 1.168 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001119/0.6275, allocations: 35.98 kB / 0.681 GB, free: 1.133 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0103/0.6378, allocations: 12.15 MB / 0.6929 GB, free: 3.863 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.981e-06/0.6379, allocations: 7.969 kB / 0.6929 GB, free: 3.855 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004934/0.6428, allocations: 2.167 MB / 0.695 GB, free: 1.633 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005474/0.6434, allocations: 179.7 kB / 0.6952 GB, free: 1.438 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003603/0.6438, allocations: 31.94 kB / 0.6952 GB, free: 1.406 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001028/0.6448, allocations: 51.95 kB / 0.6952 GB, free: 1.355 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003795/0.6452, allocations: 108.9 kB / 0.6953 GB, free: 1.25 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001384/0.6454, allocations: 47.98 kB / 0.6954 GB, free: 1.203 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0008791/0.6463, allocations: 0.5551 MB / 0.6959 GB, free: 0.6367 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.5e-07/0.6463, allocations: 0 / 0.6959 GB, free: 0.6367 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.002033/0.6483, allocations: 447.8 kB / 0.6964 GB, free: 204 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.005648/0.654, allocations: 3.027 MB / 0.6993 GB, free: 13.1 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.003779/0.6578, allocations: 2.075 MB / 0.7013 GB, free: 10.93 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 6.181e-06/0.6578, allocations: 0 / 0.7013 GB, free: 10.93 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.002498/0.6603, allocations: 1.617 MB / 0.7029 GB, free: 9.211 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002115/0.6625, allocations: 349.6 kB / 0.7032 GB, free: 8.871 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01866/0.6811, allocations: 10.05 MB / 0.7131 GB, free: 14.54 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008075/0.682, allocations: 1.099 MB / 0.7141 GB, free: 13.41 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0009976/0.683, allocations: 255.7 kB / 0.7144 GB, free: 13.18 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007293/0.6838, allocations: 495.3 kB / 0.7148 GB, free: 12.69 MB / 0.5606 GB Notification: Performance of SimCode: time 1.002e-06/0.6838, allocations: 0 / 0.7148 GB, free: 12.69 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08941/0.7732, allocations: 36.27 MB / 0.7503 GB, free: 8.727 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.08/14.86, allocations: 10.53 kB / 0.7503 GB, free: 8.719 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