Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.Topology.Tests.TestJunction.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.Topology.Tests.TestJunction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|junctionN.outlet.m_flow|source.outlet.m_flow|source1.outlet.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.Topology.Tests.TestJunction") translateModel(ThermofluidStream.Topology.Tests.TestJunction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|junctionN.outlet.m_flow|source.outlet.m_flow|source1.outlet.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.Topology.Tests.TestJunction") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001646/0.001646, allocations: 112.6 kB / 16.37 MB, free: 6 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.001853/0.001854, allocations: 196 kB / 17.31 MB, free: 5.613 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.328/1.328, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6461/0.6461, allocations: 89.49 MB / 380.7 MB, free: 8.684 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001459/0.001459, allocations: 79.88 kB / 459.7 MB, free: 10.6 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1187/0.1202, allocations: 67.3 MB / 0.5146 GB, free: 7.215 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Topology.Tests.TestJunction): time 0.3586/0.4789, allocations: 144.3 MB / 0.6556 GB, free: 6.953 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.004726/0.4836, allocations: 4.5 MB / 0.66 GB, free: 2.453 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001698/0.4838, allocations: 7.938 kB / 0.66 GB, free: 2.445 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0005693/0.4844, allocations: 194.8 kB / 0.6602 GB, free: 2.254 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0005961/0.4851, allocations: 242.6 kB / 0.6604 GB, free: 2.016 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009159/0.486, allocations: 431.1 kB / 0.6608 GB, free: 1.594 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0005668/0.4866, allocations: 0.5769 MB / 0.6614 GB, free: 1.016 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001915/0.4868, allocations: 106.2 kB / 0.6615 GB, free: 0.9141 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005145/0.4873, allocations: 306.9 kB / 0.6618 GB, free: 0.6133 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004063/0.4877, allocations: 303.1 kB / 0.6621 GB, free: 324 kB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 4.504e-05/0.4878, allocations: 32 kB / 0.6621 GB, free: 292 kB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007958/0.4886, allocations: 471.1 kB / 0.6625 GB, free: 15.82 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 8.25e-05/0.4887, allocations: 88.28 kB / 0.6626 GB, free: 15.74 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.0001584/0.4889, allocations: 179.2 kB / 0.6628 GB, free: 15.56 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.0006145/0.4895, allocations: 0.5275 MB / 0.6633 GB, free: 15.04 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 2.846e-06/0.4895, allocations: 0 / 0.6633 GB, free: 15.04 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.413e-06/0.4895, allocations: 0 / 0.6633 GB, free: 15.04 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 6.231e-06/0.4895, allocations: 0 / 0.6633 GB, free: 15.04 MB / 0.5137 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 65 * Number of variables: 65 Notification: Performance of Generate backend data structure: time 0.001248/0.4908, allocations: 0.6951 MB / 0.664 GB, free: 14.3 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 3.394e-05/0.4908, allocations: 12.03 kB / 0.664 GB, free: 14.29 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.623e-05/0.4909, allocations: 36.56 kB / 0.664 GB, free: 14.25 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003421/0.4912, allocations: 298.4 kB / 0.6643 GB, free: 13.93 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.911e-05/0.4913, allocations: 20.94 kB / 0.6643 GB, free: 13.91 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.976e-05/0.4913, allocations: 30.39 kB / 0.6644 GB, free: 13.88 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006112/0.4919, allocations: 441.5 kB / 0.6648 GB, free: 13.43 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.748e-06/0.492, allocations: 0 / 0.6648 GB, free: 13.43 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.098e-05/0.492, allocations: 12 kB / 0.6648 GB, free: 13.42 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.938e-05/0.492, allocations: 20.55 kB / 0.6648 GB, free: 13.4 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000691/0.4927, allocations: 486.8 kB / 0.6653 GB, free: 12.92 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0019/0.4946, allocations: 1.407 MB / 0.6667 GB, free: 11.43 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004175/0.4951, allocations: 247.6 kB / 0.6669 GB, free: 11.18 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003039/0.4954, allocations: 212.8 kB / 0.6671 GB, free: 10.97 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002559/0.4957, allocations: 332.9 kB / 0.6674 GB, free: 10.57 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.158e-05/0.4957, allocations: 34.56 kB / 0.6674 GB, free: 10.53 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=32): time 1.513e-06/0.4957, allocations: 0 / 0.6674 GB, free: 10.53 MB / 0.5137 GB Notification: Performance of matching and sorting (n=33): time 0.002466/0.4982, allocations: 1.496 MB / 0.6689 GB, free: 8.922 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.156e-05/0.4982, allocations: 55.41 kB / 0.669 GB, free: 8.855 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002445/0.4985, allocations: 267.9 kB / 0.6692 GB, free: 8.586 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 2.861e-05/0.4985, allocations: 33.7 kB / 0.6692 GB, free: 8.547 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 8.352e-05/0.4986, allocations: 144.6 kB / 0.6694 GB, free: 8.402 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 9.008e-05/0.4987, allocations: 110.3 kB / 0.6695 GB, free: 8.293 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001104/0.4988, allocations: 65.67 kB / 0.6696 GB, free: 8.223 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001095/0.4989, allocations: 342.8 kB / 0.6699 GB, free: 7.879 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002281/0.4991, allocations: 143.9 kB / 0.67 GB, free: 7.738 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002298/0.4994, allocations: 148.5 kB / 0.6702 GB, free: 7.594 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005137/0.4999, allocations: 349 kB / 0.6705 GB, free: 7.25 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.152e-06/0.4999, allocations: 0.75 kB / 0.6705 GB, free: 7.25 MB / 0.5137 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0008592/0.5008, allocations: 0.5053 MB / 0.671 GB, free: 6.734 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 1.635e-05/0.5008, allocations: 8 kB / 0.671 GB, free: 6.727 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.322e-06/0.5008, allocations: 0.625 kB / 0.671 GB, free: 6.727 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003516/0.5012, allocations: 108.8 kB / 0.6711 GB, free: 6.617 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002587/0.5014, allocations: 59.88 kB / 0.6712 GB, free: 6.559 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002348/0.5038, allocations: 2.331 MB / 0.6734 GB, free: 4.094 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001817/0.504, allocations: 11.88 kB / 0.6734 GB, free: 4.082 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.59e-05/0.504, allocations: 20.59 kB / 0.6735 GB, free: 4.062 MB / 0.5137 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * 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 (25): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(3,9,77.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001601/0.5042, allocations: 164.9 kB / 0.6736 GB, free: 3.895 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.568e-05/0.5043, allocations: 31.62 kB / 0.6736 GB, free: 3.863 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009841/0.5053, allocations: 0.642 MB / 0.6743 GB, free: 3.199 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.181e-06/0.5053, allocations: 7.984 kB / 0.6743 GB, free: 3.191 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.765e-06/0.5053, allocations: 0 / 0.6743 GB, free: 3.191 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.527e-06/0.5053, allocations: 0 / 0.6743 GB, free: 3.191 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003845/0.5057, allocations: 405.8 kB / 0.6747 GB, free: 2.746 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-06/0.5057, allocations: 0 / 0.6747 GB, free: 2.746 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001877/0.5059, allocations: 35.89 kB / 0.6747 GB, free: 2.711 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003179/0.5062, allocations: 124 kB / 0.6748 GB, free: 2.59 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.257e-05/0.5063, allocations: 13.95 kB / 0.6748 GB, free: 2.578 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002304/0.5086, allocations: 2.341 MB / 0.6771 GB, free: 100 kB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.323e-06/0.5086, allocations: 0 / 0.6771 GB, free: 100 kB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009891/0.5096, allocations: 0.6321 MB / 0.6777 GB, free: 15.44 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 6.576e-05/0.5097, allocations: 96.83 kB / 0.6778 GB, free: 15.33 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.963e-05/0.5097, allocations: 8 kB / 0.6778 GB, free: 15.32 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001742/0.5099, allocations: 4.875 kB / 0.6778 GB, free: 15.32 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.791e-05/0.51, allocations: 27.95 kB / 0.6779 GB, free: 15.29 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.557e-05/0.51, allocations: 12.48 kB / 0.6779 GB, free: 15.28 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0002166/0.5102, allocations: 231.1 kB / 0.6781 GB, free: 15.05 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.3e-07/0.5102, allocations: 0 / 0.6781 GB, free: 15.05 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.000481/0.5107, allocations: 104 kB / 0.6782 GB, free: 14.95 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (source.outlet.m_flow,source1.outlet.m_flow,source2.outlet.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 (13): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(4,8,62.5%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002433/0.511, allocations: 189 kB / 0.6784 GB, free: 14.77 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.0008745/0.5119, allocations: 0.514 MB / 0.6789 GB, free: 14.24 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.5119, allocations: 0 / 0.6789 GB, free: 14.24 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.0005859/0.5125, allocations: 377.7 kB / 0.6792 GB, free: 13.86 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005291/0.513, allocations: 100.1 kB / 0.6793 GB, free: 13.78 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001303/0.5143, allocations: 0.7952 MB / 0.6801 GB, free: 12.97 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003109/0.5146, allocations: 0.7989 MB / 0.6809 GB, free: 12.14 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.000202/0.5149, allocations: 74.41 kB / 0.681 GB, free: 12.09 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.935e-05/0.5149, allocations: 35.41 kB / 0.681 GB, free: 12.05 MB / 0.5294 GB Notification: Performance of SimCode: time 3.4e-07/0.5149, allocations: 0 / 0.681 GB, free: 12.05 MB / 0.5294 GB Notification: Performance of Templates: time 0.01088/0.5258, allocations: 6.747 MB / 0.6876 GB, free: 5.465 MB / 0.5294 GB make -j1 -f ThermofluidStream_ThermofluidStream.Topology.Tests.TestJunction.makefile (rm -f ThermofluidStream_ThermofluidStream.Topology.Tests.TestJunction.pipe ; mkfifo ThermofluidStream_ThermofluidStream.Topology.Tests.TestJunction.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.Topology.Tests.TestJunction.pipe >> ../files/ThermofluidStream_ThermofluidStream.Topology.Tests.TestJunction.sim & ./ThermofluidStream_ThermofluidStream.Topology.Tests.TestJunction -abortSlowSimulation -alarm=1200 -s cvode -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.Topology.Tests.TestJunction.pipe 2>&1) diffSimulationResults("ThermofluidStream_ThermofluidStream.Topology.Tests.TestJunction_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Topology.Tests.TestJunction_ref.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.Topology.Tests.TestJunction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches