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.001293/0.001293, allocations: 100.1 kB / 15.88 MB, free: 12 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.001298/0.001298, allocations: 196.7 kB / 16.79 MB, free: 6.828 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.272/1.272, allocations: 222.9 MB / 240.5 MB, free: 4.609 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6349/0.6349, allocations: 89.52 MB / 380.1 MB, free: 11.23 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001623/0.001623, allocations: 84.89 kB / 458.2 MB, free: 23.91 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1096/0.1112, allocations: 67.31 MB / 0.5132 GB, free: 12.91 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Topology.Tests.TestJunction): time 0.382/0.4933, allocations: 142.5 MB / 0.6524 GB, free: 11.18 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.004693/0.498, allocations: 4.527 MB / 0.6568 GB, free: 7.52 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002842/0.4983, allocations: 13.62 kB / 0.6568 GB, free: 7.512 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006531/0.499, allocations: 164.6 kB / 0.657 GB, free: 7.379 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005623/0.4996, allocations: 230.8 kB / 0.6572 GB, free: 7.199 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009445/0.5006, allocations: 407.1 kB / 0.6576 GB, free: 6.898 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006633/0.5012, allocations: 0.7523 MB / 0.6583 GB, free: 6.484 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001887/0.5014, allocations: 96.16 kB / 0.6584 GB, free: 6.441 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005471/0.502, allocations: 283.5 kB / 0.6587 GB, free: 6.281 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004093/0.5024, allocations: 311.3 kB / 0.659 GB, free: 6.109 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 4.818e-05/0.5025, allocations: 26.62 kB / 0.659 GB, free: 6.105 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007786/0.5033, allocations: 448 kB / 0.6594 GB, free: 5.898 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 8.357e-05/0.5033, allocations: 82.42 kB / 0.6595 GB, free: 5.84 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001627/0.5035, allocations: 165.6 kB / 0.6597 GB, free: 5.738 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004136/0.5039, allocations: 382.4 kB / 0.66 GB, free: 5.504 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.616e-06/0.504, allocations: 0 / 0.66 GB, free: 5.504 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.504, allocations: 4 kB / 0.66 GB, free: 5.5 MB / 478.1 MB Notification: Performance of Transformations before backend: time 6.341e-06/0.504, allocations: 0 / 0.66 GB, free: 5.5 MB / 478.1 MB 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.001495/0.5055, allocations: 0.6992 MB / 0.6607 GB, free: 4.914 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.711e-05/0.5055, allocations: 7.625 kB / 0.6607 GB, free: 4.914 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.564e-05/0.5056, allocations: 33.78 kB / 0.6607 GB, free: 4.898 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003551/0.506, allocations: 298.7 kB / 0.661 GB, free: 4.609 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.443e-05/0.506, allocations: 18.78 kB / 0.661 GB, free: 4.602 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.393e-05/0.5061, allocations: 31.61 kB / 0.6611 GB, free: 4.586 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006316/0.5067, allocations: 445.6 kB / 0.6615 GB, free: 4.297 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.041e-05/0.5067, allocations: 0 / 0.6615 GB, free: 4.297 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.063e-05/0.5068, allocations: 10.69 kB / 0.6615 GB, free: 4.289 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.502e-05/0.5068, allocations: 19.88 kB / 0.6615 GB, free: 4.285 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006589/0.5075, allocations: 479.9 kB / 0.662 GB, free: 4.043 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001853/0.5093, allocations: 1.406 MB / 0.6634 GB, free: 2.871 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004125/0.5098, allocations: 246 kB / 0.6636 GB, free: 2.734 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002828/0.5101, allocations: 206 kB / 0.6638 GB, free: 2.629 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002665/0.5103, allocations: 341 kB / 0.6641 GB, free: 2.234 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.52e-05/0.5104, allocations: 41.05 kB / 0.6642 GB, free: 2.188 MB / 478.1 MB Notification: Performance of pre-optimization done (n=32): time 1.332e-06/0.5104, allocations: 0 / 0.6642 GB, free: 2.188 MB / 478.1 MB Notification: Performance of matching and sorting (n=33): time 0.002392/0.5128, allocations: 1.484 MB / 0.6656 GB, free: 1.094 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.341e-05/0.5128, allocations: 56.31 kB / 0.6657 GB, free: 1.031 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002368/0.5131, allocations: 277 kB / 0.6659 GB, free: 0.8359 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 2.943e-05/0.5131, allocations: 32.77 kB / 0.666 GB, free: 0.8008 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.376e-05/0.5132, allocations: 146.2 kB / 0.6661 GB, free: 0.6641 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.714e-05/0.5133, allocations: 121.8 kB / 0.6662 GB, free: 0.5586 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.699e-05/0.5134, allocations: 59.91 kB / 0.6663 GB, free: 0.5156 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001138/0.5135, allocations: 346.4 kB / 0.6666 GB, free: 180 kB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002208/0.5137, allocations: 141.9 kB / 0.6667 GB, free: 108 kB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002171/0.514, allocations: 144.9 kB / 0.6669 GB, free: 36 kB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005036/0.5145, allocations: 349.8 kB / 0.6672 GB, free: 15.84 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.142e-06/0.5145, allocations: 0 / 0.6672 GB, free: 15.84 MB / 494.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0007992/0.5153, allocations: 0.4995 MB / 0.6677 GB, free: 15.56 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.604e-05/0.5153, allocations: 7.969 kB / 0.6677 GB, free: 15.56 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.26e-06/0.5153, allocations: 4 kB / 0.6677 GB, free: 15.56 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003494/0.5157, allocations: 107.2 kB / 0.6678 GB, free: 15.51 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002472/0.5159, allocations: 63.09 kB / 0.6679 GB, free: 15.48 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002122/0.5181, allocations: 2.115 MB / 0.6699 GB, free: 13.63 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001842/0.5183, allocations: 12.88 kB / 0.6699 GB, free: 13.62 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.298e-05/0.5183, allocations: 15.83 kB / 0.67 GB, free: 13.61 MB / 494.1 MB 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.0001535/0.5185, allocations: 163 kB / 0.6701 GB, free: 13.46 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.886e-05/0.5185, allocations: 31.06 kB / 0.6701 GB, free: 13.45 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009493/0.5195, allocations: 0.6345 MB / 0.6708 GB, free: 13 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.538e-06/0.5195, allocations: 6.312 kB / 0.6708 GB, free: 12.99 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.186e-06/0.5195, allocations: 2.562 kB / 0.6708 GB, free: 12.99 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.146e-06/0.5195, allocations: 0 / 0.6708 GB, free: 12.99 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003769/0.5199, allocations: 407.5 kB / 0.6712 GB, free: 12.64 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.007e-06/0.5199, allocations: 112 / 0.6712 GB, free: 12.64 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001806/0.5201, allocations: 40.14 kB / 0.6712 GB, free: 12.62 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003171/0.5204, allocations: 129.6 kB / 0.6713 GB, free: 12.55 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.93e-05/0.5205, allocations: 10.64 kB / 0.6713 GB, free: 12.54 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002089/0.5226, allocations: 2.128 MB / 0.6734 GB, free: 10.66 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.5226, allocations: 48 / 0.6734 GB, free: 10.66 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009251/0.5235, allocations: 0.6289 MB / 0.674 GB, free: 10.27 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.044e-05/0.5236, allocations: 108.1 kB / 0.6741 GB, free: 10.16 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.138e-05/0.5236, allocations: 14.59 kB / 0.6741 GB, free: 10.14 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001743/0.5238, allocations: 7.969 kB / 0.6742 GB, free: 10.14 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.475e-05/0.5239, allocations: 26.3 kB / 0.6742 GB, free: 10.12 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.208e-05/0.5239, allocations: 8.828 kB / 0.6742 GB, free: 10.12 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0002043/0.5241, allocations: 230.6 kB / 0.6744 GB, free: 9.973 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5241, allocations: 2.562 kB / 0.6744 GB, free: 9.973 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.000445/0.5246, allocations: 106.4 kB / 0.6745 GB, free: 9.957 MB / 494.1 MB 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.0002624/0.5248, allocations: 189 kB / 0.6747 GB, free: 9.816 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0008821/0.5257, allocations: 0.515 MB / 0.6752 GB, free: 9.492 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.5258, allocations: 0 / 0.6752 GB, free: 9.492 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006022/0.5264, allocations: 372.7 kB / 0.6756 GB, free: 9.234 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005822/0.527, allocations: 92.36 kB / 0.6756 GB, free: 9.191 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001468/0.5284, allocations: 0.9159 MB / 0.6765 GB, free: 8.523 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003229/0.5288, allocations: 0.7874 MB / 0.6773 GB, free: 7.777 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001182/0.5289, allocations: 39.28 kB / 0.6773 GB, free: 7.762 MB / 494.1 MB Notification: Performance of SimCode: time 2.7e-07/0.5289, allocations: 96 / 0.6773 GB, free: 7.762 MB / 494.1 MB Notification: Performance of Templates: time 0.009737/0.5386, allocations: 7.259 MB / 0.6844 GB, free: 3.387 MB / 494.1 MB 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 -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