Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_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-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.Topology.Tests.TestConnectors,fileNamePrefix="ThermofluidStream_dev_ThermofluidStream_Undirected_Topology_Tests_TestConnectors",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Undirected.Topology.Tests.TestConnectors,fileNamePrefix="ThermofluidStream_dev_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.001749/0.001749, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001836/0.001836, allocations: 198 kB / 16.53 MB, free: 6.66 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.694/1.694, allocations: 222.9 MB / 240.2 MB, free: 4.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 1.019/1.019, allocations: 93.71 MB / 384.1 MB, free: 6.992 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002763/0.002763, allocations: 78.81 kB / 463.5 MB, free: 22.01 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2306/0.2334, allocations: 68.27 MB / 0.5193 GB, free: 6.922 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Topology.Tests.TestConnectors): time 0.8297/1.063, allocations: 225 MB / 0.7391 GB, free: 9.762 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.05854/1.122, allocations: 30.93 MB / 0.7693 GB, free: 10.74 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.006954/1.129, allocations: 147.1 kB / 0.7694 GB, free: 10.59 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.008814/1.138, allocations: 1.739 MB / 0.7711 GB, free: 8.844 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.01357/1.151, allocations: 2.66 MB / 0.7737 GB, free: 6.168 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.009951/1.161, allocations: 2.592 MB / 0.7762 GB, free: 3.566 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.01026/1.172, allocations: 4.811 MB / 0.7809 GB, free: 14.73 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002631/1.174, allocations: 1.054 MB / 0.782 GB, free: 13.63 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006585/1.181, allocations: 2.354 MB / 0.7843 GB, free: 11.27 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005767/1.187, allocations: 2.296 MB / 0.7865 GB, free: 8.961 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0009257/1.188, allocations: 271.9 kB / 0.7868 GB, free: 8.695 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01179/1.199, allocations: 3.72 MB / 0.7904 GB, free: 4.969 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.001423/1.201, allocations: 0.6226 MB / 0.791 GB, free: 4.344 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.003442/1.204, allocations: 1.555 MB / 0.7925 GB, free: 2.781 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.01495/1.219, allocations: 4.845 MB / 0.7973 GB, free: 13.92 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 1.164e-05/1.219, allocations: 0 / 0.7973 GB, free: 13.92 MB / 0.6075 GB Notification: Performance of FrontEnd: time 2.294e-06/1.219, allocations: 0 / 0.7973 GB, free: 13.92 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 0.0001426/1.219, allocations: 0 / 0.7973 GB, free: 13.92 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.009404/1.229, allocations: 3.575 MB / 0.8007 GB, free: 10.27 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 5.833e-05/1.229, allocations: 8.031 kB / 0.8008 GB, free: 10.26 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004228/1.229, allocations: 287.7 kB / 0.801 GB, free: 9.965 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007557/1.23, allocations: 344.8 kB / 0.8014 GB, free: 9.625 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00388/1.234, allocations: 1.829 MB / 0.8031 GB, free: 7.723 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001691/1.234, allocations: 156.2 kB / 0.8033 GB, free: 7.566 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003535/1.235, allocations: 223.9 kB / 0.8035 GB, free: 7.348 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004837/1.239, allocations: 2.468 MB / 0.8059 GB, free: 4.766 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.946e-05/1.239, allocations: 4 kB / 0.8059 GB, free: 4.762 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001764/1.24, allocations: 84 kB / 0.806 GB, free: 4.68 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.579e-05/1.24, allocations: 52 kB / 0.8061 GB, free: 4.629 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004361/1.244, allocations: 2.23 MB / 0.8082 GB, free: 2.391 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01677/1.261, allocations: 11.28 MB / 0.8192 GB, free: 6.246 MB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004161/1.265, allocations: 1.764 MB / 0.821 GB, free: 4.473 MB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001614/1.267, allocations: 0.9138 MB / 0.8219 GB, free: 3.551 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4002/1.667, allocations: 6.522 MB / 0.8282 GB, free: 236.6 MB / 0.6231 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002409/1.669, allocations: 1.046 MB / 0.8292 GB, free: 236.2 MB / 0.6231 GB Notification: Performance of pre-optimization done (n=183): time 6.242e-06/1.669, allocations: 1.156 kB / 0.8292 GB, free: 236.2 MB / 0.6231 GB Notification: Performance of matching and sorting (n=184): time 0.01508/1.685, allocations: 6.103 MB / 0.8352 GB, free: 232.9 MB / 0.6231 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.068e-05/1.685, allocations: 105.1 kB / 0.8353 GB, free: 232.8 MB / 0.6231 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002827/1.687, allocations: 1.872 MB / 0.8371 GB, free: 232.1 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 0.0001562/1.688, allocations: 56.14 kB / 0.8372 GB, free: 232 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008056/1.688, allocations: 1.093 MB / 0.8383 GB, free: 231.2 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004805/1.689, allocations: 0.6221 MB / 0.8389 GB, free: 230.7 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005023/1.689, allocations: 296.1 kB / 0.8391 GB, free: 230.6 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 0.000107/1.69, allocations: 310.8 kB / 0.8394 GB, free: 230.3 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001282/1.691, allocations: 0.6671 MB / 0.8401 GB, free: 230 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00147/1.692, allocations: 0.8507 MB / 0.8409 GB, free: 229.6 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00284/1.695, allocations: 1.664 MB / 0.8426 GB, free: 228.7 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.332e-06/1.695, allocations: 4.641 kB / 0.8426 GB, free: 228.7 MB / 0.6231 GB Notification: Performance of matching and sorting (n=208) (initialization): time 0.005836/1.701, allocations: 2.556 MB / 0.8451 GB, free: 227.6 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 3.626e-05/1.701, allocations: 34.86 kB / 0.8451 GB, free: 227.5 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.087e-05/1.701, allocations: 3.781 kB / 0.8451 GB, free: 227.5 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002054/1.703, allocations: 0.6285 MB / 0.8457 GB, free: 227.3 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001213/1.704, allocations: 300.4 kB / 0.846 GB, free: 227.3 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01608/1.721, allocations: 16.23 MB / 0.8618 GB, free: 212.7 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002429/1.723, allocations: 96.48 kB / 0.8619 GB, free: 212.7 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004302/1.723, allocations: 76.52 kB / 0.862 GB, free: 212.7 MB / 0.6231 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.001389/1.725, allocations: 433.7 kB / 0.8624 GB, free: 212.4 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006861/1.726, allocations: 260.5 kB / 0.8627 GB, free: 212.2 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006799/1.732, allocations: 3.459 MB / 0.866 GB, free: 210.7 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.316e-05/1.732, allocations: 23.94 kB / 0.8661 GB, free: 210.7 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.616e-05/1.732, allocations: 8.344 kB / 0.8661 GB, free: 210.7 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.105e-05/1.732, allocations: 10.64 kB / 0.8661 GB, free: 210.7 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009658/1.742, allocations: 5.174 MB / 0.8711 GB, free: 207.9 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.16e-05/1.742, allocations: 6.688 kB / 0.8711 GB, free: 207.9 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001083/1.743, allocations: 289.8 kB / 0.8714 GB, free: 207.8 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001842/1.745, allocations: 0.5424 MB / 0.872 GB, free: 207.5 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001803/1.745, allocations: 69.36 kB / 0.872 GB, free: 207.5 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01016/1.755, allocations: 15.25 MB / 0.8869 GB, free: 192.7 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.352e-06/1.756, allocations: 0 / 0.8869 GB, free: 192.7 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007405/1.763, allocations: 3.707 MB / 0.8905 GB, free: 190.6 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001051/1.764, allocations: 336.5 kB / 0.8909 GB, free: 190.3 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003922/1.764, allocations: 52.55 kB / 0.8909 GB, free: 190.2 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00102/1.765, allocations: 59.7 kB / 0.891 GB, free: 190.2 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004447/1.766, allocations: 168.1 kB / 0.8911 GB, free: 190.1 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001447/1.766, allocations: 79.31 kB / 0.8912 GB, free: 190.1 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.001703/1.768, allocations: 1.329 MB / 0.8925 GB, free: 189.4 MB / 0.6231 GB Notification: Performance of sort global known variables: time 3.41e-07/1.768, allocations: 0 / 0.8925 GB, free: 189.4 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.004176/1.772, allocations: 0.8936 MB / 0.8934 GB, free: 189.2 MB / 0.6231 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.007767/1.78, allocations: 5.162 MB / 0.8984 GB, free: 184.9 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.006387/1.786, allocations: 3.251 MB / 0.9016 GB, free: 181.6 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 1.036e-05/1.786, allocations: 0 / 0.9016 GB, free: 181.6 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.003397/1.79, allocations: 2.25 MB / 0.9038 GB, free: 179.2 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004537/1.794, allocations: 0.8293 MB / 0.9046 GB, free: 178.4 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0308/1.825, allocations: 22.59 MB / 0.9267 GB, free: 154 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001049/1.826, allocations: 1.68 MB / 0.9283 GB, free: 152.3 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.002001/1.828, allocations: 0.5249 MB / 0.9288 GB, free: 151.9 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001224/1.829, allocations: 1.159 MB / 0.9299 GB, free: 150.7 MB / 0.6231 GB Notification: Performance of SimCode: time 9.72e-07/1.829, allocations: 0 / 0.9299 GB, free: 150.7 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1586/1.988, allocations: 76.37 MB / 1.005 GB, free: 74.74 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.6/16.59, allocations: 7.688 kB / 1.005 GB, free: 74.73 MB / 0.6231 GB (rm -f ThermofluidStream_dev_ThermofluidStream.Undirected.Topology.Tests.TestConnectors.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.Undirected.Topology.Tests.TestConnectors.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.Undirected.Topology.Tests.TestConnectors.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.Undirected.Topology.Tests.TestConnectors.sim & python3 -m fmpy simulate --output-file ThermofluidStream_dev_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_dev_ThermofluidStream_Undirected_Topology_Tests_TestConnectors.fmu > ThermofluidStream_dev_ThermofluidStream.Undirected.Topology.Tests.TestConnectors.pipe 2>&1) diffSimulationResults("ThermofluidStream_dev_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_dev_ThermofluidStream.Undirected.Topology.Tests.TestConnectors.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches