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.001287/0.001287, allocations: 84.22 kB / 15.06 MB, free: 1.09 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.001585/0.001585, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.444/1.444, allocations: 223.3 MB / 240 MB, free: 5.43 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.8072/0.8072, allocations: 89.64 MB / 380.7 MB, free: 11.42 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003833/0.0003833, allocations: 10.25 kB / 460 MB, free: 24.36 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1548/0.1552, allocations: 68.83 MB / 0.5165 GB, free: 11.75 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Topology.Tests.TestJunction): time 0.571/0.7263, allocations: 131.1 MB / 0.6445 GB, free: 1.461 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.006564/0.7329, allocations: 4.204 MB / 0.6486 GB, free: 14.06 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000579/0.7336, allocations: 6.844 kB / 0.6486 GB, free: 14.06 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008294/0.7344, allocations: 169.9 kB / 0.6488 GB, free: 13.92 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001023/0.7355, allocations: 260 kB / 0.649 GB, free: 13.71 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001207/0.7367, allocations: 308.8 kB / 0.6493 GB, free: 13.48 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008908/0.7376, allocations: 0.6397 MB / 0.6499 GB, free: 13.1 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002233/0.7378, allocations: 82.48 kB / 0.65 GB, free: 13.06 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007216/0.7386, allocations: 262.6 kB / 0.6503 GB, free: 12.92 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005992/0.7392, allocations: 285.2 kB / 0.6505 GB, free: 12.77 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 7.841e-05/0.7393, allocations: 16.66 kB / 0.6506 GB, free: 12.77 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009362/0.7402, allocations: 368.3 kB / 0.6509 GB, free: 12.61 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001289/0.7403, allocations: 70.48 kB / 0.651 GB, free: 12.56 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001622/0.7405, allocations: 87.17 kB / 0.6511 GB, free: 12.5 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005936/0.7411, allocations: 348.6 kB / 0.6514 GB, free: 12.28 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.964e-06/0.7411, allocations: 2.875 kB / 0.6514 GB, free: 12.28 MB / 478.1 MB Notification: Performance of FrontEnd: time 2.485e-06/0.7411, allocations: 0 / 0.6514 GB, free: 12.28 MB / 478.1 MB Notification: Performance of Transformations before backend: time 1.834e-05/0.7412, allocations: 4 kB / 0.6514 GB, free: 12.28 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.001593/0.7428, allocations: 0.6282 MB / 0.652 GB, free: 11.75 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.408e-05/0.7428, allocations: 18.8 kB / 0.652 GB, free: 11.74 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001377/0.743, allocations: 32.44 kB / 0.6521 GB, free: 11.72 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000438/0.7434, allocations: 283.1 kB / 0.6523 GB, free: 11.45 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.007e-05/0.7435, allocations: 23.92 kB / 0.6524 GB, free: 11.43 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.245e-05/0.7435, allocations: 31.91 kB / 0.6524 GB, free: 11.41 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007422/0.7443, allocations: 432.6 kB / 0.6528 GB, free: 11.14 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.263e-05/0.7443, allocations: 0 / 0.6528 GB, free: 11.14 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.351e-05/0.7444, allocations: 14.94 kB / 0.6528 GB, free: 11.12 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.588e-05/0.7444, allocations: 15.19 kB / 0.6528 GB, free: 11.12 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007292/0.7451, allocations: 482.4 kB / 0.6533 GB, free: 10.88 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002152/0.7473, allocations: 1.424 MB / 0.6547 GB, free: 9.691 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004594/0.7478, allocations: 235.2 kB / 0.6549 GB, free: 9.562 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003124/0.7481, allocations: 213.9 kB / 0.6551 GB, free: 9.453 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003231/0.7484, allocations: 330.2 kB / 0.6554 GB, free: 9.07 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.933e-05/0.7485, allocations: 38.22 kB / 0.6555 GB, free: 9.027 MB / 478.1 MB Notification: Performance of pre-optimization done (n=32): time 1.533e-06/0.7485, allocations: 4 kB / 0.6555 GB, free: 9.023 MB / 478.1 MB Notification: Performance of matching and sorting (n=33): time 0.002553/0.751, allocations: 1.494 MB / 0.6569 GB, free: 7.922 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.222e-05/0.7511, allocations: 54.34 kB / 0.657 GB, free: 7.859 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002795/0.7514, allocations: 267 kB / 0.6572 GB, free: 7.676 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 3.056e-05/0.7514, allocations: 36.48 kB / 0.6573 GB, free: 7.637 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001078/0.7515, allocations: 155 kB / 0.6574 GB, free: 7.492 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001199/0.7517, allocations: 120.5 kB / 0.6575 GB, free: 7.387 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.071e-05/0.7517, allocations: 5.75 kB / 0.6575 GB, free: 7.383 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001462/0.7518, allocations: 343.5 kB / 0.6579 GB, free: 7.047 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002314/0.7521, allocations: 140.5 kB / 0.658 GB, free: 6.977 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002123/0.7523, allocations: 141.3 kB / 0.6581 GB, free: 6.906 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002609/0.7526, allocations: 173.9 kB / 0.6583 GB, free: 6.816 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.7526, allocations: 3.953 kB / 0.6583 GB, free: 6.812 MB / 478.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0008152/0.7534, allocations: 0.4996 MB / 0.6588 GB, free: 6.527 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.807e-05/0.7534, allocations: 5.75 kB / 0.6588 GB, free: 6.527 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.512e-06/0.7534, allocations: 0 / 0.6588 GB, free: 6.527 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003472/0.7538, allocations: 117.4 kB / 0.6589 GB, free: 6.473 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000251/0.754, allocations: 55.81 kB / 0.659 GB, free: 6.453 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002371/0.7564, allocations: 2.122 MB / 0.661 GB, free: 4.586 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001872/0.7566, allocations: 10.84 kB / 0.661 GB, free: 4.578 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.31e-05/0.7567, allocations: 12.02 kB / 0.6611 GB, free: 4.574 MB / 478.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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,77.8%) 9} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001756/0.7569, allocations: 154.4 kB / 0.6612 GB, free: 4.43 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.514e-05/0.7569, allocations: 31.59 kB / 0.6612 GB, free: 4.414 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009989/0.7579, allocations: 0.646 MB / 0.6619 GB, free: 3.953 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.428e-06/0.758, allocations: 3.25 kB / 0.6619 GB, free: 3.953 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.65e-06/0.758, allocations: 6.938 kB / 0.6619 GB, free: 3.949 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.278e-06/0.758, allocations: 0 / 0.6619 GB, free: 3.949 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004393/0.7584, allocations: 399.6 kB / 0.6622 GB, free: 3.598 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.901e-06/0.7584, allocations: 4.828 kB / 0.6623 GB, free: 3.594 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001733/0.7586, allocations: 35.08 kB / 0.6623 GB, free: 3.578 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00031/0.7589, allocations: 138.6 kB / 0.6624 GB, free: 3.504 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.167e-05/0.759, allocations: 10.11 kB / 0.6624 GB, free: 3.496 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002257/0.7612, allocations: 2.116 MB / 0.6645 GB, free: 1.633 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.492e-06/0.7613, allocations: 0 / 0.6645 GB, free: 1.633 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000984/0.7622, allocations: 0.6387 MB / 0.6651 GB, free: 1.238 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.544e-05/0.7624, allocations: 117.4 kB / 0.6652 GB, free: 1.113 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.744e-05/0.7624, allocations: 4 kB / 0.6652 GB, free: 1.109 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001541/0.7626, allocations: 9.078 kB / 0.6652 GB, free: 1.105 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.642e-05/0.7626, allocations: 24.23 kB / 0.6653 GB, free: 1.09 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.713e-05/0.7627, allocations: 13.44 kB / 0.6653 GB, free: 1.082 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0002318/0.7629, allocations: 228.9 kB / 0.6655 GB, free: 0.9297 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.7629, allocations: 0 / 0.6655 GB, free: 0.9297 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.0005065/0.7634, allocations: 109.6 kB / 0.6656 GB, free: 0.9141 MB / 478.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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(4,62.5%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003447/0.7638, allocations: 190.6 kB / 0.6658 GB, free: 0.7734 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.0008916/0.7647, allocations: 0.5103 MB / 0.6663 GB, free: 464 kB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.7647, allocations: 0 / 0.6663 GB, free: 464 kB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005806/0.7653, allocations: 365.6 kB / 0.6666 GB, free: 208 kB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000568/0.7659, allocations: 95.84 kB / 0.6667 GB, free: 160 kB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001526/0.7674, allocations: 0.9157 MB / 0.6676 GB, free: 15.48 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003986/0.7678, allocations: 0.7939 MB / 0.6684 GB, free: 14.73 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0002377/0.7681, allocations: 86.88 kB / 0.6685 GB, free: 14.7 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.43e-05/0.7681, allocations: 27.45 kB / 0.6685 GB, free: 14.68 MB / 494.1 MB Notification: Performance of SimCode: time 2.81e-07/0.7682, allocations: 0 / 0.6685 GB, free: 14.68 MB / 494.1 MB Notification: Performance of Templates: time 0.01198/0.7801, allocations: 6.156 MB / 0.6745 GB, free: 8.777 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.Topology.Tests.TestJunction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches