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-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: 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001087/0.001087, allocations: 104.1 kB / 16.35 MB, free: 5.828 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.001079/0.001079, allocations: 190.5 kB / 17.29 MB, free: 5.484 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.326/1.326, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6686/0.6686, allocations: 89.49 MB / 380.6 MB, free: 8.645 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001492/0.001492, allocations: 80.22 kB / 459.7 MB, free: 10.6 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1108/0.1123, allocations: 67.3 MB / 0.5146 GB, free: 7.215 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Topology.Tests.TestConnectors): time 0.3963/0.5086, allocations: 224.3 MB / 0.7337 GB, free: 6.77 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.2797/0.7883, allocations: 30.61 MB / 0.7636 GB, free: 1.066 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002002/0.7904, allocations: 46.47 kB / 0.7636 GB, free: 1.066 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.004045/0.7944, allocations: 1.694 MB / 0.7653 GB, free: 1.02 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.006259/0.8007, allocations: 2.434 MB / 0.7677 GB, free: 0.957 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.006578/0.8073, allocations: 2.59 MB / 0.7702 GB, free: 0.8945 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.005837/0.8132, allocations: 4.257 MB / 0.7743 GB, free: 0.8789 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001948/0.8151, allocations: 0.9723 MB / 0.7753 GB, free: 16.7 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00431/0.8195, allocations: 2.086 MB / 0.7773 GB, free: 16.68 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003884/0.8234, allocations: 2.201 MB / 0.7795 GB, free: 16.68 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0008524/0.8242, allocations: 270 kB / 0.7797 GB, free: 16.68 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00885/0.8331, allocations: 3.719 MB / 0.7834 GB, free: 16.62 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0008885/0.834, allocations: 0.5958 MB / 0.7839 GB, free: 16.62 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.003082/0.8371, allocations: 1.404 MB / 0.7853 GB, free: 16.29 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.008739/0.8459, allocations: 4.445 MB / 0.7897 GB, free: 15.7 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 5.39e-06/0.8459, allocations: 2.312 kB / 0.7897 GB, free: 15.7 MB / 0.5919 GB Notification: Performance of FrontEnd: time 2.755e-06/0.8459, allocations: 1.031 kB / 0.7897 GB, free: 15.7 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 0.0001137/0.846, allocations: 0 / 0.7897 GB, free: 15.7 MB / 0.5919 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.007757/0.8538, allocations: 3.034 MB / 0.7926 GB, free: 14.35 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.357e-05/0.8538, allocations: 7.875 kB / 0.7926 GB, free: 14.35 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007309/0.8546, allocations: 267.1 kB / 0.7929 GB, free: 14.22 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002078/0.8567, allocations: 1.17 MB / 0.794 GB, free: 13.8 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.656e-05/0.8568, allocations: 154 kB / 0.7942 GB, free: 13.79 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003589/0.8571, allocations: 225.4 kB / 0.7944 GB, free: 13.79 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004138/0.8613, allocations: 2.477 MB / 0.7968 GB, free: 13.5 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.521e-05/0.8614, allocations: 3.125 kB / 0.7968 GB, free: 13.5 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001768/0.8615, allocations: 85.09 kB / 0.7969 GB, free: 13.5 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.506e-05/0.8616, allocations: 55.97 kB / 0.7969 GB, free: 13.5 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003567/0.8652, allocations: 2.225 MB / 0.7991 GB, free: 13.47 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01317/0.8783, allocations: 11.02 MB / 0.8099 GB, free: 7.656 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003178/0.8815, allocations: 1.759 MB / 0.8116 GB, free: 7.57 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001357/0.8829, allocations: 0.9062 MB / 0.8125 GB, free: 7.555 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.007901/0.8908, allocations: 6.545 MB / 0.8189 GB, free: 2.449 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001761/0.8926, allocations: 1.039 MB / 0.8199 GB, free: 2.152 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=183): time 4.338e-06/0.8926, allocations: 0.75 kB / 0.8199 GB, free: 2.152 MB / 0.5919 GB Notification: Performance of matching and sorting (n=184): time 0.01155/0.9042, allocations: 5.843 MB / 0.8256 GB, free: 15.75 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.644e-05/0.9043, allocations: 98.92 kB / 0.8257 GB, free: 15.65 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001622/0.9059, allocations: 1.32 MB / 0.827 GB, free: 15.29 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 0.0001782/0.9061, allocations: 55.8 kB / 0.827 GB, free: 15.26 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005841/0.9067, allocations: 0.814 MB / 0.8278 GB, free: 14.89 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.00057/0.9073, allocations: 0.6233 MB / 0.8284 GB, free: 14.37 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005195/0.9078, allocations: 293.5 kB / 0.8287 GB, free: 14.2 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001119/0.9079, allocations: 306.6 kB / 0.829 GB, free: 13.9 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00128/0.9092, allocations: 0.6665 MB / 0.8297 GB, free: 13.56 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001494/0.9107, allocations: 0.8549 MB / 0.8305 GB, free: 13.04 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003015/0.9137, allocations: 1.672 MB / 0.8321 GB, free: 11.35 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.113e-06/0.9138, allocations: 0 / 0.8321 GB, free: 11.35 MB / 0.6075 GB Notification: Performance of matching and sorting (n=208) (initialization): time 0.005414/0.9192, allocations: 2.484 MB / 0.8345 GB, free: 8.867 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 4.632e-05/0.9193, allocations: 41.69 kB / 0.8346 GB, free: 8.82 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.229e-05/0.9193, allocations: 4 kB / 0.8346 GB, free: 8.816 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002044/0.9213, allocations: 0.6206 MB / 0.8352 GB, free: 8.176 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001205/0.9226, allocations: 295.6 kB / 0.8355 GB, free: 7.902 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01753/0.9401, allocations: 16.23 MB / 0.8513 GB, free: 6.523 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001547/0.9417, allocations: 93.94 kB / 0.8514 GB, free: 6.434 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003392/0.942, allocations: 75.98 kB / 0.8515 GB, free: 6.359 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.0009891/0.943, allocations: 397.4 kB / 0.8519 GB, free: 5.977 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005512/0.9436, allocations: 193.6 kB / 0.8521 GB, free: 5.785 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006739/0.9503, allocations: 3.397 MB / 0.8554 GB, free: 2.461 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.433e-05/0.9504, allocations: 20 kB / 0.8554 GB, free: 2.441 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.88e-05/0.9504, allocations: 12 kB / 0.8554 GB, free: 2.43 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.265e-05/0.9504, allocations: 11.91 kB / 0.8554 GB, free: 2.418 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009247/0.9597, allocations: 4.977 MB / 0.8603 GB, free: 13.41 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.16e-05/0.9597, allocations: 8.016 kB / 0.8603 GB, free: 13.41 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001116/0.9609, allocations: 287.5 kB / 0.8606 GB, free: 13.14 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001806/0.9627, allocations: 0.5403 MB / 0.8611 GB, free: 12.58 MB / 0.6387 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002242/0.9629, allocations: 67.95 kB / 0.8611 GB, free: 12.51 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01296/0.9759, allocations: 15.25 MB / 0.876 GB, free: 12.12 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.202e-06/0.9759, allocations: 11.11 kB / 0.8761 GB, free: 12.11 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007252/0.9832, allocations: 3.633 MB / 0.8796 GB, free: 8.445 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005994/0.9838, allocations: 270.5 kB / 0.8799 GB, free: 8.16 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004233/0.9842, allocations: 55.84 kB / 0.8799 GB, free: 8.105 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001144/0.9854, allocations: 59.89 kB / 0.88 GB, free: 8.047 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003697/0.9858, allocations: 180.9 kB / 0.8801 GB, free: 7.875 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001837/0.986, allocations: 67.97 kB / 0.8802 GB, free: 7.809 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.001447/0.9874, allocations: 0.9713 MB / 0.8812 GB, free: 6.844 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.61e-07/0.9874, allocations: 0 / 0.8812 GB, free: 6.844 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.002886/0.9903, allocations: 0.8787 MB / 0.882 GB, free: 5.965 MB / 0.6544 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.001707/0.992, allocations: 1.016 MB / 0.883 GB, free: 5.066 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.005315/0.9974, allocations: 3.076 MB / 0.886 GB, free: 1.898 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 5.701e-06/0.9974, allocations: 4 kB / 0.886 GB, free: 1.895 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.003492/1.001, allocations: 2.246 MB / 0.8882 GB, free: 15.57 MB / 0.67 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003645/1.005, allocations: 0.7777 MB / 0.889 GB, free: 14.88 MB / 0.67 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00728/1.012, allocations: 4.302 MB / 0.8932 GB, free: 10.57 MB / 0.67 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001183/1.013, allocations: 1.487 MB / 0.8946 GB, free: 9.043 MB / 0.67 GB Notification: Performance of simCode: alias equations: time 0.001659/1.015, allocations: 470.5 kB / 0.8951 GB, free: 8.656 MB / 0.67 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005235/1.015, allocations: 179.4 kB / 0.8952 GB, free: 8.48 MB / 0.67 GB Notification: Performance of SimCode: time 5.91e-07/1.015, allocations: 0 / 0.8952 GB, free: 8.48 MB / 0.67 GB Notification: Performance of Templates: time 0.07768/1.093, allocations: 50.02 MB / 0.9441 GB, free: 6.984 MB / 0.7169 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 -s gbode -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","/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