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 dev (/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.001735/0.001735, allocations: 100.1 kB / 15.05 MB, free: 1.105 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.001623/0.001623, allocations: 177.3 kB / 15.94 MB, free: 228 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.538/1.538, allocations: 223.2 MB / 239.9 MB, free: 5.297 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.7991/0.799, allocations: 89.61 MB / 380.6 MB, free: 11.46 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004222/0.0004223, allocations: 10.97 kB / 459.9 MB, free: 24.38 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1597/0.1602, allocations: 68.83 MB / 0.5163 GB, free: 11.77 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Topology.Tests.TestJunction): time 0.5388/0.699, allocations: 122.5 MB / 0.636 GB, free: 7.691 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.005003/0.7041, allocations: 3.767 MB / 0.6397 GB, free: 4.699 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004829/0.7046, allocations: 6.75 kB / 0.6397 GB, free: 4.695 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007293/0.7053, allocations: 162.7 kB / 0.6398 GB, free: 4.559 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007947/0.7061, allocations: 257.9 kB / 0.6401 GB, free: 4.344 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001091/0.7072, allocations: 329.4 kB / 0.6404 GB, free: 4.09 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005759/0.7078, allocations: 379.5 kB / 0.6408 GB, free: 3.855 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002228/0.7081, allocations: 82.52 kB / 0.6408 GB, free: 3.816 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005556/0.7086, allocations: 244.1 kB / 0.6411 GB, free: 3.668 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003492/0.709, allocations: 229.2 kB / 0.6413 GB, free: 3.547 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 3.704e-05/0.709, allocations: 16.03 kB / 0.6413 GB, free: 3.547 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000852/0.7099, allocations: 389.4 kB / 0.6417 GB, free: 3.398 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 9.119e-05/0.71, allocations: 73.23 kB / 0.6417 GB, free: 3.348 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 8.028e-05/0.7101, allocations: 84.48 kB / 0.6418 GB, free: 3.289 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004135/0.7105, allocations: 340.4 kB / 0.6422 GB, free: 3.082 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.735e-06/0.7105, allocations: 0 / 0.6422 GB, free: 3.082 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.844e-06/0.7105, allocations: 0 / 0.6422 GB, free: 3.082 MB / 462.1 MB Notification: Performance of Transformations before backend: time 6.052e-06/0.7105, allocations: 4 kB / 0.6422 GB, free: 3.078 MB / 462.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.001313/0.7119, allocations: 0.6342 MB / 0.6428 GB, free: 2.543 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.427e-05/0.7119, allocations: 11.91 kB / 0.6428 GB, free: 2.539 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.406e-05/0.712, allocations: 33.44 kB / 0.6428 GB, free: 2.523 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003806/0.7124, allocations: 292.2 kB / 0.6431 GB, free: 2.238 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.621e-05/0.7124, allocations: 18.91 kB / 0.6431 GB, free: 2.227 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.911e-05/0.7125, allocations: 23.72 kB / 0.6431 GB, free: 2.219 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006447/0.7131, allocations: 442.5 kB / 0.6436 GB, free: 1.93 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.055e-05/0.7132, allocations: 0 / 0.6436 GB, free: 1.93 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.567e-05/0.7132, allocations: 10.88 kB / 0.6436 GB, free: 1.922 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.494e-05/0.7132, allocations: 21.67 kB / 0.6436 GB, free: 1.914 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006545/0.7139, allocations: 484.4 kB / 0.6441 GB, free: 1.672 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002345/0.7163, allocations: 1.424 MB / 0.6454 GB, free: 492 kB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004929/0.7168, allocations: 235.4 kB / 0.6457 GB, free: 360 kB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004457/0.7172, allocations: 339.3 kB / 0.646 GB, free: 15.96 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.018e-05/0.7173, allocations: 41.03 kB / 0.646 GB, free: 15.91 MB / 478.1 MB Notification: Performance of pre-optimization done (n=32): time 3.035e-06/0.7173, allocations: 0 / 0.646 GB, free: 15.91 MB / 478.1 MB Notification: Performance of matching and sorting (n=33): time 0.002629/0.7199, allocations: 1.499 MB / 0.6475 GB, free: 14.8 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.083e-05/0.72, allocations: 54.38 kB / 0.6475 GB, free: 14.74 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002963/0.7203, allocations: 269.3 kB / 0.6478 GB, free: 14.56 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 3.526e-05/0.7203, allocations: 33.64 kB / 0.6478 GB, free: 14.52 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001262/0.7205, allocations: 149.9 kB / 0.648 GB, free: 14.38 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001142/0.7206, allocations: 122.8 kB / 0.6481 GB, free: 14.27 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.03e-05/0.7206, allocations: 6.312 kB / 0.6481 GB, free: 14.27 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001397/0.7208, allocations: 343.3 kB / 0.6484 GB, free: 13.93 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002152/0.721, allocations: 139 kB / 0.6486 GB, free: 13.86 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002078/0.7212, allocations: 146.3 kB / 0.6487 GB, free: 13.79 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000254/0.7215, allocations: 170 kB / 0.6489 GB, free: 13.7 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.172e-06/0.7215, allocations: 2.781 kB / 0.6489 GB, free: 13.7 MB / 478.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0008123/0.7223, allocations: 0.5039 MB / 0.6494 GB, free: 13.41 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.112e-05/0.7223, allocations: 5.438 kB / 0.6494 GB, free: 13.41 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.602e-06/0.7223, allocations: 0 / 0.6494 GB, free: 13.41 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003872/0.7227, allocations: 122.1 kB / 0.6495 GB, free: 13.35 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002776/0.723, allocations: 52.02 kB / 0.6495 GB, free: 13.34 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002825/0.7258, allocations: 2.147 MB / 0.6516 GB, free: 11.46 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002678/0.7261, allocations: 14.41 kB / 0.6516 GB, free: 11.45 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.607e-05/0.7262, allocations: 11.7 kB / 0.6516 GB, free: 11.45 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.0002674/0.7265, allocations: 160.2 kB / 0.6518 GB, free: 11.3 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.538e-05/0.7265, allocations: 28.75 kB / 0.6518 GB, free: 11.29 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001192/0.7277, allocations: 0.6442 MB / 0.6525 GB, free: 10.83 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.929e-06/0.7277, allocations: 2.562 kB / 0.6525 GB, free: 10.83 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.787e-06/0.7278, allocations: 2.531 kB / 0.6525 GB, free: 10.83 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.935e-06/0.7278, allocations: 3.984 kB / 0.6525 GB, free: 10.82 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005067/0.7283, allocations: 404.4 kB / 0.6529 GB, free: 10.47 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.374e-06/0.7283, allocations: 0 / 0.6529 GB, free: 10.47 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001688/0.7285, allocations: 28.56 kB / 0.6529 GB, free: 10.46 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003448/0.7288, allocations: 137.1 kB / 0.653 GB, free: 10.39 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.173e-05/0.7289, allocations: 14.47 kB / 0.653 GB, free: 10.38 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002504/0.7314, allocations: 2.158 MB / 0.6551 GB, free: 8.48 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.77e-06/0.7314, allocations: 6.125 kB / 0.6551 GB, free: 8.48 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009598/0.7324, allocations: 0.6307 MB / 0.6558 GB, free: 8.09 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001005/0.7325, allocations: 125.2 kB / 0.6559 GB, free: 7.957 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.722e-05/0.7325, allocations: 10.38 kB / 0.6559 GB, free: 7.949 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001637/0.7327, allocations: 8.844 kB / 0.6559 GB, free: 7.945 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.802e-05/0.7328, allocations: 23.36 kB / 0.6559 GB, free: 7.93 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.433e-05/0.7328, allocations: 17.59 kB / 0.6559 GB, free: 7.918 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0002393/0.733, allocations: 229.6 kB / 0.6562 GB, free: 7.766 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.7331, allocations: 0 / 0.6562 GB, free: 7.766 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.0005278/0.7336, allocations: 109.3 kB / 0.6563 GB, free: 7.75 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.0003091/0.7339, allocations: 180.5 kB / 0.6564 GB, free: 7.617 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.0009596/0.7349, allocations: 0.5134 MB / 0.6569 GB, free: 7.293 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 3.387e-06/0.7349, allocations: 0 / 0.6569 GB, free: 7.293 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006464/0.7355, allocations: 367 kB / 0.6573 GB, free: 7.043 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005503/0.7361, allocations: 83.39 kB / 0.6574 GB, free: 7.004 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001554/0.7377, allocations: 0.9268 MB / 0.6583 GB, free: 6.32 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004164/0.7381, allocations: 0.8032 MB / 0.659 GB, free: 5.562 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0002364/0.7383, allocations: 72.72 kB / 0.6591 GB, free: 5.535 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.368e-05/0.7384, allocations: 33.38 kB / 0.6591 GB, free: 5.52 MB / 478.1 MB Notification: Performance of SimCode: time 2.044e-06/0.7384, allocations: 0 / 0.6591 GB, free: 5.52 MB / 478.1 MB Notification: Performance of Templates: time 0.01128/0.7497, allocations: 6.129 MB / 0.6651 GB, free: 0.9258 MB / 478.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","../files/ThermofluidStream_ThermofluidStream.Topology.Tests.TestJunction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches