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/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ObsoleteModelica4 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.0.0-main/package.mo", uses=false) Using package ThermofluidStream with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.0.0-main/package.mo) Using package ObsoleteModelica4 with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ObsoleteModelica4 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) 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) Running command: translateModel(ThermofluidStream.Undirected.Topology.Tests.TestConnectors,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|boundary_fore1.rear.m_flow|boundary_fore2.rear.m_flow|boundary_fore3.rear.m_flow|boundary_fore5.rear.m_flow|boundary_rear.fore.m_flow|connectRearOutlet.rear.m_flow|flowResistance2.rear.m_flow|pulse.T_start|pulse.count|sink3.inlet.m_flow|source1.outlet.m_flow|source2.outlet.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.Undirected.Topology.Tests.TestConnectors") translateModel(ThermofluidStream.Undirected.Topology.Tests.TestConnectors,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|boundary_fore1.rear.m_flow|boundary_fore2.rear.m_flow|boundary_fore3.rear.m_flow|boundary_fore5.rear.m_flow|boundary_rear.fore.m_flow|connectRearOutlet.rear.m_flow|flowResistance2.rear.m_flow|pulse.T_start|pulse.count|sink3.inlet.m_flow|source1.outlet.m_flow|source2.outlet.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.Undirected.Topology.Tests.TestConnectors") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001017/0.001017, allocations: 176.2 kB / 7.649 MB, free: 1.422 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.381/1.381, allocations: 221.5 MB / 229.6 MB, free: 7.512 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001165/0.001165, allocations: 89.73 kB / 280.5 MB, free: 5.266 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ObsoleteModelica4 4.0.0+maint.om/package.mo): time 0.00961/0.00961, allocations: 1.567 MB / 332.8 MB, free: 13.54 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.0.0-main/package.mo): time 0.7372/0.7372, allocations: 90.04 MB / 474 MB, free: 13.04 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 1.805e-05/1.807e-05, allocations: 2.906 kB / 0.5375 GB, free: 33.12 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1514/0.1514, allocations: 69.37 MB / 0.6052 GB, free: 124 kB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.205/1.356, allocations: 444.8 MB / 1.04 GB, free: 113 MB / 0.6042 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002227/1.356, allocations: 93.44 kB / 1.04 GB, free: 113 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 2.023/3.379, allocations: 0.5956 GB / 1.635 GB, free: 3.465 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.084e-06/3.379, allocations: 0 / 1.635 GB, free: 3.465 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 0.0001616/3.38, allocations: 63.97 kB / 1.635 GB, free: 3.402 MB / 0.6198 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.007645/3.387, allocations: 2.802 MB / 1.638 GB, free: 0.5352 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.848e-05/3.387, allocations: 8.031 kB / 1.638 GB, free: 0.5273 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008852/3.388, allocations: 288.9 kB / 1.638 GB, free: 248 kB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.5415/3.93, allocations: 1.148 MB / 1.64 GB, free: 51.9 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002773/3.93, allocations: 67.11 kB / 1.64 GB, free: 51.9 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001203/3.931, allocations: 132.6 kB / 1.64 GB, free: 51.9 MB / 0.6198 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006684/3.938, allocations: 2.084 MB / 1.642 GB, free: 51.88 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00438/3.942, allocations: 2.116 MB / 1.644 GB, free: 51.74 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.513e-05/3.942, allocations: 0.625 kB / 1.644 GB, free: 51.74 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001448/3.943, allocations: 0 / 1.644 GB, free: 51.74 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.187e-05/3.943, allocations: 62.33 kB / 1.644 GB, free: 51.74 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01912/3.962, allocations: 11.71 MB / 1.655 GB, free: 44.96 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004618/3.967, allocations: 2.417 MB / 1.658 GB, free: 44.62 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001878/3.968, allocations: 0.9899 MB / 1.659 GB, free: 44.6 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01098/3.979, allocations: 6.552 MB / 1.665 GB, free: 41.32 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001751/3.981, allocations: 1.097 MB / 1.666 GB, free: 41.24 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=211): time 8.286e-06/3.981, allocations: 0 / 1.666 GB, free: 41.24 MB / 0.6198 GB Notification: Performance of matching and sorting (n=212): time 0.0134/3.995, allocations: 4.558 MB / 1.671 GB, free: 40.34 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.649e-05/3.995, allocations: 98.02 kB / 1.671 GB, free: 40.24 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001363/3.996, allocations: 0.6743 MB / 1.671 GB, free: 40.1 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 0.0001675/3.996, allocations: 29.33 kB / 1.671 GB, free: 40.07 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 0.00086/3.997, allocations: 0.7867 MB / 1.672 GB, free: 39.81 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007176/3.998, allocations: 0.6849 MB / 1.673 GB, free: 39.45 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001224/3.998, allocations: 2.5 kB / 1.673 GB, free: 39.45 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 0.0001333/3.998, allocations: 376.3 kB / 1.673 GB, free: 39.14 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001127/3.999, allocations: 0.7033 MB / 1.674 GB, free: 39.14 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001237/4.001, allocations: 0.8805 MB / 1.675 GB, free: 39.01 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004027/4.005, allocations: 1.234 MB / 1.676 GB, free: 38.99 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.116e-05/4.005, allocations: 3.844 kB / 1.676 GB, free: 38.99 MB / 0.6198 GB Notification: Performance of matching and sorting (n=235) (initialization): time 0.007061/4.012, allocations: 2.801 MB / 1.679 GB, free: 38.75 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 5.156e-05/4.012, allocations: 33.02 kB / 1.679 GB, free: 38.71 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.693e-05/4.012, allocations: 3.969 kB / 1.679 GB, free: 38.71 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00185/4.014, allocations: 0.5833 MB / 1.679 GB, free: 38.64 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001048/4.015, allocations: 283.8 kB / 1.68 GB, free: 38.64 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009294/4.024, allocations: 11.33 MB / 1.691 GB, free: 29.21 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002006/4.026, allocations: 144.3 kB / 1.691 GB, free: 29.18 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003621/4.026, allocations: 79.33 kB / 1.691 GB, free: 29.18 MB / 0.6198 GB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: connectRearOutlet1.r_rear:VARIABLE(unit = "Pa" protected = true ) type: Real $DER.connectRearOutlet1.outlet.m_flow:VARIABLE(flow=true unit = "kg/s" ) "Mass flow rate" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: $DER.connectorInletOutletFore.junctionRFF2_1.junctionMN.rears[1].m_flow:DUMMY_DER(flow=true fixed = false ) "mass flow rate" type: Real [1] $DER.sink3.inlet.m_flow:VARIABLE(flow=true unit = "kg/s" ) "mass flow rate" type: Real connectorInletOutletFore.junctionRFF2_1.junctionMN.r_mix:VARIABLE(unit = "Pa" protected = true ) "mixed r assuming positive massflow" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (174): * Single equations (assignments): 148 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 16 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(1,100.0%) 4,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 4,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 2} * Non-linear torn systems: 2 {3 18,2 7} Notification: Performance of prepare postOptimizeDAE: time 0.0006199/4.027, allocations: 144.8 kB / 1.691 GB, free: 29.07 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006272/4.028, allocations: 156 kB / 1.691 GB, free: 28.99 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008326/4.036, allocations: 3.294 MB / 1.694 GB, free: 28.73 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.46e-05/4.036, allocations: 28.88 kB / 1.694 GB, free: 28.73 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.823e-05/4.036, allocations: 8.656 kB / 1.694 GB, free: 28.73 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.033e-05/4.036, allocations: 14.27 kB / 1.694 GB, free: 28.73 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01114/4.047, allocations: 5.38 MB / 1.7 GB, free: 28.14 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.125e-05/4.047, allocations: 0 / 1.7 GB, free: 28.14 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001071/4.048, allocations: 308 kB / 1.7 GB, free: 28.14 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00152/4.05, allocations: 0.5221 MB / 1.7 GB, free: 28.06 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001902/4.05, allocations: 61.12 kB / 1.7 GB, free: 28.05 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0107/4.061, allocations: 13.67 MB / 1.714 GB, free: 33.05 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.854e-06/4.061, allocations: 11.89 kB / 1.714 GB, free: 33.05 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01076/4.072, allocations: 4.25 MB / 1.718 GB, free: 32.46 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001156/4.073, allocations: 241.8 kB / 1.718 GB, free: 32.26 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007281/4.074, allocations: 13.34 kB / 1.718 GB, free: 32.26 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002255/4.076, allocations: 115.5 kB / 1.718 GB, free: 32.24 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007121/4.077, allocations: 191.9 kB / 1.718 GB, free: 32.24 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003551/4.077, allocations: 84.59 kB / 1.719 GB, free: 32.24 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 0.001198/4.078, allocations: 0.5134 MB / 1.719 GB, free: 32.13 MB / 0.6355 GB Notification: Performance of sort global known variables: time 2.054e-06/4.078, allocations: 0 / 1.719 GB, free: 32.13 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.004976/4.083, allocations: 0.9084 MB / 1.72 GB, free: 32.11 MB / 0.6355 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 10 (connectRearRear.rear_a.m_flow,connectForeFore.fore_a.m_flow,connectInletFore.fore.m_flow,connectRearOutlet.outlet.m_flow,source1.outlet.m_flow,boundary_rear3.fore.m_flow,connectRearOutlet1.outlet.m_flow,flowResistance2.rear.m_flow,boundary_fore5.rear.m_flow,sink3.inlet.m_flow) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (186): * Single equations (assignments): 159 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 16 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 9 {(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 4,(1,100.0%) 4,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 2,(1,100.0%) 8,(3,77.8%) 18} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004108/4.087, allocations: 2.031 MB / 1.722 GB, free: 31.34 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.005149/4.093, allocations: 3.091 MB / 1.725 GB, free: 30.25 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 5.21e-06/4.093, allocations: 0 / 1.725 GB, free: 30.25 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 0.003578/4.096, allocations: 2.515 MB / 1.727 GB, free: 29.03 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002885/4.099, allocations: 445.5 kB / 1.728 GB, free: 29.03 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00766/4.107, allocations: 3.468 MB / 1.731 GB, free: 28.18 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001812/4.109, allocations: 1.55 MB / 1.733 GB, free: 27.45 MB / 0.6355 GB Notification: Performance of simCode: alias equations: time 0.002164/4.111, allocations: 368 kB / 1.733 GB, free: 27.43 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000686/4.111, allocations: 158.9 kB / 1.733 GB, free: 27.43 MB / 0.6355 GB Notification: Performance of SimCode: time 1.483e-06/4.111, allocations: 0 / 1.733 GB, free: 27.43 MB / 0.6355 GB Notification: Performance of Templates: time 0.07254/4.184, allocations: 43.76 MB / 1.776 GB, free: 23.96 MB / 0.6355 GB make -j1 -f ThermofluidStream_ThermofluidStream.Undirected.Topology.Tests.TestConnectors.makefile (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 & ./ThermofluidStream_ThermofluidStream.Undirected.Topology.Tests.TestConnectors -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.Undirected.Topology.Tests.TestConnectors.pipe 2>&1) diffSimulationResults("ThermofluidStream_ThermofluidStream.Undirected.Topology.Tests.TestConnectors_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Undirected.Topology.Tests.TestConnectors_ref.mat","../files/ThermofluidStream_ThermofluidStream.Undirected.Topology.Tests.TestConnectors.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches