Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.Undirected.Topology.Tests.TestConnectors.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/package.mo", uses=false) Using package ThermofluidStream with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0/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.Topology.Tests.TestConnectors,fileNamePrefix="ThermofluidStream_ThermofluidStream_Undirected_Topology_Tests_TestConnectors",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Undirected.Topology.Tests.TestConnectors,fileNamePrefix="ThermofluidStream_ThermofluidStream_Undirected_Topology_Tests_TestConnectors",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.006602/0.006602, allocations: 99.5 kB / 15.73 MB, free: 6.055 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.001356/0.001356, allocations: 191.9 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.414/1.414, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0/package.mo): time 0.7355/0.7355, allocations: 89.47 MB / 380 MB, free: 8.582 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002213/0.002213, allocations: 79.88 kB / 0.514 GB, free: 7.172 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3058/0.308, allocations: 67.29 MB / 0.5797 GB, free: 15.28 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Topology.Tests.TestConnectors): time 0.5416/0.8496, allocations: 224.3 MB / 0.7987 GB, free: 0.5156 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.0294/0.8791, allocations: 30.64 MB / 0.8286 GB, free: 13.41 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002786/0.8819, allocations: 48.28 kB / 0.8287 GB, free: 13.41 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.005171/0.8871, allocations: 1.695 MB / 0.8303 GB, free: 12.93 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.007757/0.8949, allocations: 2.432 MB / 0.8327 GB, free: 12.13 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.007894/0.9028, allocations: 2.585 MB / 0.8352 GB, free: 10.83 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.006619/0.9095, allocations: 4.262 MB / 0.8394 GB, free: 9.34 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001908/0.9114, allocations: 0.98 MB / 0.8404 GB, free: 8.801 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004861/0.9163, allocations: 2.083 MB / 0.8424 GB, free: 7.078 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004047/0.9203, allocations: 2.198 MB / 0.8445 GB, free: 5.059 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0009427/0.9213, allocations: 268 kB / 0.8448 GB, free: 4.797 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.009663/0.931, allocations: 3.723 MB / 0.8484 GB, free: 1.715 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.001005/0.932, allocations: 0.5985 MB / 0.849 GB, free: 1.145 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.003246/0.9353, allocations: 1.404 MB / 0.8504 GB, free: 15.76 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.01115/0.9464, allocations: 4.452 MB / 0.8547 GB, free: 11.58 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 5.58e-06/0.9465, allocations: 0 / 0.8547 GB, free: 11.58 MB / 0.6075 GB Notification: Performance of FrontEnd: time 2.334e-06/0.9465, allocations: 0 / 0.8547 GB, free: 11.58 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 0.0001313/0.9466, allocations: 0 / 0.8547 GB, free: 11.58 MB / 0.6075 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 532 * Number of variables: 532 Notification: Performance of Generate backend data structure: time 0.00835/0.955, allocations: 3.113 MB / 0.8578 GB, free: 8.426 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 5.564e-05/0.955, allocations: 16.02 kB / 0.8578 GB, free: 8.41 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006999/0.9557, allocations: 291.7 kB / 0.8581 GB, free: 8.113 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009206/0.9567, allocations: 279.2 kB / 0.8583 GB, free: 7.84 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002287/0.959, allocations: 1.176 MB / 0.8595 GB, free: 6.684 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001492/0.9591, allocations: 164.1 kB / 0.8596 GB, free: 6.52 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004591/0.9596, allocations: 219.9 kB / 0.8599 GB, free: 6.305 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005214/0.9648, allocations: 2.471 MB / 0.8623 GB, free: 3.727 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.168e-05/0.9649, allocations: 6.625 kB / 0.8623 GB, free: 3.723 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002221/0.9651, allocations: 84 kB / 0.8624 GB, free: 3.641 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.013e-05/0.9652, allocations: 52 kB / 0.8624 GB, free: 3.59 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00424/0.9694, allocations: 2.226 MB / 0.8646 GB, free: 1.371 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01575/0.9852, allocations: 11.05 MB / 0.8754 GB, free: 5.676 MB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004043/0.9893, allocations: 1.764 MB / 0.8771 GB, free: 3.902 MB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001905/0.9912, allocations: 0.8983 MB / 0.878 GB, free: 3 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00911/1, allocations: 6.541 MB / 0.8844 GB, free: 11.71 MB / 0.6387 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002017/1.002, allocations: 1.039 MB / 0.8854 GB, free: 10.66 MB / 0.6387 GB Notification: Performance of pre-optimization done (n=183): time 5.44e-06/1.002, allocations: 0 / 0.8854 GB, free: 10.66 MB / 0.6387 GB Notification: Performance of matching and sorting (n=184): time 0.01289/1.015, allocations: 5.912 MB / 0.8911 GB, free: 4.512 MB / 0.6387 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.983e-05/1.015, allocations: 97.73 kB / 0.8912 GB, free: 4.398 MB / 0.6387 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002001/1.017, allocations: 1.316 MB / 0.8925 GB, free: 3.074 MB / 0.6387 GB Notification: Performance of collectPreVariables (initialization): time 0.000142/1.018, allocations: 61.69 kB / 0.8926 GB, free: 3.008 MB / 0.6387 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007866/1.018, allocations: 0.8239 MB / 0.8934 GB, free: 2.176 MB / 0.6387 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006434/1.019, allocations: 0.6486 MB / 0.894 GB, free: 1.535 MB / 0.6387 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005349/1.02, allocations: 295.6 kB / 0.8943 GB, free: 1.242 MB / 0.6387 GB Notification: Performance of setup shared object (initialization): time 0.0001201/1.02, allocations: 305.1 kB / 0.8946 GB, free: 0.9414 MB / 0.6387 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001382/1.021, allocations: 0.6677 MB / 0.8952 GB, free: 280 kB / 0.6387 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001621/1.023, allocations: 0.863 MB / 0.8961 GB, free: 15.38 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003095/1.026, allocations: 1.663 MB / 0.8977 GB, free: 13.67 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.881e-06/1.026, allocations: 0 / 0.8977 GB, free: 13.67 MB / 0.6544 GB Notification: Performance of matching and sorting (n=208) (initialization): time 0.005457/1.031, allocations: 2.493 MB / 0.9001 GB, free: 11.18 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 5.112e-05/1.031, allocations: 37.8 kB / 0.9002 GB, free: 11.14 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.241e-05/1.031, allocations: 4 kB / 0.9002 GB, free: 11.14 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002006/1.033, allocations: 0.6227 MB / 0.9008 GB, free: 10.49 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001065/1.035, allocations: 295 kB / 0.9011 GB, free: 10.22 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0178/1.052, allocations: 16.24 MB / 0.9169 GB, free: 8.801 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001322/1.054, allocations: 103.6 kB / 0.917 GB, free: 8.699 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001923/1.054, allocations: 71.97 kB / 0.9171 GB, free: 8.629 MB / 0.67 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 5 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (163): * Single equations (assignments): 153 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 9 systems {(3,18,77.8%), (1,4,100.0%), (1,4,100.0%), (1,2,100.0%), (1,2,100.0%), (1,1,100.0%), (1,1,100.0%), (1,8,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0008395/1.055, allocations: 397.8 kB / 0.9175 GB, free: 8.246 MB / 0.67 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003697/1.055, allocations: 202.7 kB / 0.9177 GB, free: 8.047 MB / 0.67 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006357/1.062, allocations: 3.405 MB / 0.921 GB, free: 4.668 MB / 0.67 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.277e-05/1.062, allocations: 20 kB / 0.921 GB, free: 4.648 MB / 0.67 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.346e-05/1.062, allocations: 15.92 kB / 0.921 GB, free: 4.633 MB / 0.67 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.099e-05/1.062, allocations: 11.91 kB / 0.921 GB, free: 4.621 MB / 0.67 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008433/1.07, allocations: 4.991 MB / 0.9259 GB, free: 15.61 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.453e-06/1.07, allocations: 0 / 0.9259 GB, free: 15.61 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001015/1.071, allocations: 294.6 kB / 0.9262 GB, free: 15.34 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001696/1.073, allocations: 0.5379 MB / 0.9267 GB, free: 14.78 MB / 0.6856 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001463/1.073, allocations: 67.95 kB / 0.9268 GB, free: 14.71 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01381/1.087, allocations: 15.27 MB / 0.9417 GB, free: 14.28 MB / 0.7012 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.709e-06/1.087, allocations: 4 kB / 0.9417 GB, free: 14.27 MB / 0.7012 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007183/1.094, allocations: 3.644 MB / 0.9453 GB, free: 10.59 MB / 0.7012 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007395/1.095, allocations: 287.5 kB / 0.9455 GB, free: 10.29 MB / 0.7012 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002922/1.095, allocations: 55.83 kB / 0.9456 GB, free: 10.24 MB / 0.7012 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008956/1.096, allocations: 63.95 kB / 0.9456 GB, free: 10.18 MB / 0.7012 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004133/1.096, allocations: 164.5 kB / 0.9458 GB, free: 10.02 MB / 0.7012 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001637/1.097, allocations: 75.95 kB / 0.9459 GB, free: 9.945 MB / 0.7012 GB Notification: Performance of sorting global known variables: time 0.001338/1.098, allocations: 0.9674 MB / 0.9468 GB, free: 8.984 MB / 0.7012 GB Notification: Performance of sort global known variables: time 1.3e-07/1.098, allocations: 384 / 0.9468 GB, free: 8.984 MB / 0.7012 GB Notification: Performance of remove unused functions: time 0.00265/1.101, allocations: 0.8935 MB / 0.9477 GB, free: 8.09 MB / 0.7012 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 10 (connectRearRear.rear_a.m_flow,connectForeFore.fore_a.m_flow,connectInletFore.fore.m_flow,connectRearOutlet.rear.m_flow,sink1.inlet.m_flow,boundary_fore3.rear.m_flow,flowResistance.rear.m_flow,flowResistance2.rear.m_flow,flowResistance3.inlet.m_flow,flowResistance4.rear.m_flow) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (158): * Single equations (assignments): 147 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 9 systems {(1,4,100.0%), (1,1,100.0%), (1,4,100.0%), (1,2,100.0%), (1,2,100.0%), (1,1,100.0%), (1,8,100.0%), (1,2,100.0%), (3,18,77.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.008316/1.109, allocations: 5.118 MB / 0.9527 GB, free: 3.023 MB / 0.7012 GB Notification: Performance of simCode: created initialization part: time 0.005205/1.114, allocations: 3.078 MB / 0.9557 GB, free: 15.84 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 4.589e-06/1.114, allocations: 0 / 0.9557 GB, free: 15.84 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.003439/1.118, allocations: 2.259 MB / 0.9579 GB, free: 13.5 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003502/1.121, allocations: 0.7837 MB / 0.9587 GB, free: 12.75 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02838/1.15, allocations: 16.77 MB / 0.975 GB, free: 11.69 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00127/1.151, allocations: 1.483 MB / 0.9765 GB, free: 10.17 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.00157/1.152, allocations: 465.5 kB / 0.9769 GB, free: 9.785 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001178/1.154, allocations: 0.8937 MB / 0.9778 GB, free: 8.891 MB / 0.7325 GB Notification: Performance of SimCode: time 5.61e-07/1.154, allocations: 0 / 0.9778 GB, free: 8.891 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4641/1.618, allocations: 70.23 MB / 1.046 GB, free: 334.5 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.99/15.61, allocations: 11.03 kB / 1.046 GB, free: 334.5 MB / 0.7794 GB (rm -f ThermofluidStream_ThermofluidStream.Undirected.Topology.Tests.TestConnectors.pipe ; mkfifo ThermofluidStream_ThermofluidStream.Undirected.Topology.Tests.TestConnectors.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.Undirected.Topology.Tests.TestConnectors.pipe >> ../files/ThermofluidStream_ThermofluidStream.Undirected.Topology.Tests.TestConnectors.sim & python3 -m fmpy simulate --output-file ThermofluidStream_ThermofluidStream.Undirected.Topology.Tests.TestConnectors_res.csv --start-time 0 --stop-time 10 --timeout 1200 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.01 ThermofluidStream_ThermofluidStream_Undirected_Topology_Tests_TestConnectors.fmu > ThermofluidStream_ThermofluidStream.Undirected.Topology.Tests.TestConnectors.pipe 2>&1) diffSimulationResults("ThermofluidStream_ThermofluidStream.Undirected.Topology.Tests.TestConnectors_res.csv","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Undirected.Topology.Tests.TestConnectors_ref.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.Undirected.Topology.Tests.TestConnectors.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches