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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.002214/0.002214, allocations: 85.48 kB / 19.44 MB, free: 344 kB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002761/0.002761, allocations: 173.6 kB / 22.76 MB, free: 1.664 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.562/1.562, allocations: 177.1 MB / 203.1 MB, free: 5.605 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.4.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.4.0/package.mo): time 1.056/1.056, allocations: 118.6 MB / 378.2 MB, free: 1.473 MB / 346.7 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.4.0/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ThermofluidStream.Topology.Tests.TestJunction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,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=1000,variableFilter="Time|junctionN.outlet.m_flow|source.outlet.m_flow|source1.outlet.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.Topology.Tests.TestJunction") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.784e-06/1.784e-06, allocations: 0 / 482.9 MB, free: 8.289 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.727e-05/2.906e-05, allocations: 10.89 kB / 482.9 MB, free: 8.285 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Topology.Tests.TestJunction): time 0.2135/0.2135, allocations: 138.9 MB / 0.6072 GB, free: 5.664 MB / 0.5261 GB Notification: Performance of NFInst.instExpressions: time 0.005707/0.2192, allocations: 3.864 MB / 0.611 GB, free: 1.789 MB / 0.5261 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002983/0.2195, allocations: 43.56 kB / 0.611 GB, free: 1.746 MB / 0.5261 GB Notification: Performance of NFTyping.typeComponents: time 0.0006653/0.2202, allocations: 194.6 kB / 0.6112 GB, free: 1.555 MB / 0.5261 GB Notification: Performance of NFTyping.typeBindings: time 0.0008705/0.221, allocations: 373.7 kB / 0.6116 GB, free: 1.188 MB / 0.5261 GB Notification: Performance of NFTyping.typeClassSections: time 0.001161/0.2222, allocations: 449.9 kB / 0.612 GB, free: 0.7461 MB / 0.5261 GB Notification: Performance of NFFlatten.flatten: time 0.001039/0.2232, allocations: 0.8215 MB / 0.6128 GB, free: 15.92 MB / 0.5417 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001882/0.2234, allocations: 71.58 kB / 0.6129 GB, free: 15.85 MB / 0.5417 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001027/0.2244, allocations: 0.5217 MB / 0.6134 GB, free: 15.33 MB / 0.5417 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006099/0.2251, allocations: 343.2 kB / 0.6137 GB, free: 14.99 MB / 0.5417 GB Notification: Performance of NFPackage.collectConstants: time 7.094e-05/0.2251, allocations: 32 kB / 0.6138 GB, free: 14.96 MB / 0.5417 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008613/0.226, allocations: 383.2 kB / 0.6141 GB, free: 14.59 MB / 0.5417 GB Notification: Performance of NFScalarize.scalarize: time 0.0001484/0.2261, allocations: 123.5 kB / 0.6142 GB, free: 14.46 MB / 0.5417 GB Notification: Performance of NFVerifyModel.verify: time 0.000215/0.2263, allocations: 147.6 kB / 0.6144 GB, free: 14.32 MB / 0.5417 GB Notification: Performance of NFConvertDAE.convert: time 0.001135/0.2275, allocations: 0.6853 MB / 0.6151 GB, free: 13.63 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 2.975e-06/0.2275, allocations: 0 / 0.6151 GB, free: 13.63 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.443e-06/0.2275, allocations: 0 / 0.6151 GB, free: 13.63 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 1.573e-05/0.2275, allocations: 0 / 0.6151 GB, free: 13.63 MB / 0.5417 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.001822/0.2293, allocations: 0.9117 MB / 0.6159 GB, free: 12.68 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.059e-05/0.2294, allocations: 12.03 kB / 0.616 GB, free: 12.67 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001697/0.2295, allocations: 72.61 kB / 0.616 GB, free: 12.6 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009148/0.2304, allocations: 486.2 kB / 0.6165 GB, free: 12.1 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.652e-05/0.2305, allocations: 16.88 kB / 0.6165 GB, free: 12.08 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.979e-05/0.2306, allocations: 28.36 kB / 0.6165 GB, free: 12.05 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00067/0.2312, allocations: 373.2 kB / 0.6169 GB, free: 11.67 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.52e-05/0.2312, allocations: 3.938 kB / 0.6169 GB, free: 11.67 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.702e-05/0.2313, allocations: 12 kB / 0.6169 GB, free: 11.66 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.45e-05/0.2313, allocations: 12.5 kB / 0.6169 GB, free: 11.64 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006852/0.232, allocations: 329.6 kB / 0.6172 GB, free: 11.32 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002448/0.2344, allocations: 1.374 MB / 0.6186 GB, free: 9.895 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004436/0.2349, allocations: 183 kB / 0.6187 GB, free: 9.703 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003071/0.2352, allocations: 151.6 kB / 0.6189 GB, free: 9.551 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001571/0.2354, allocations: 23.98 kB / 0.6189 GB, free: 9.527 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.258e-05/0.2354, allocations: 53.84 kB / 0.619 GB, free: 9.465 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=32): time 1.893e-06/0.2354, allocations: 0 / 0.619 GB, free: 9.465 MB / 0.5417 GB Notification: Performance of matching and sorting (n=33): time 0.002656/0.2381, allocations: 1.051 MB / 0.62 GB, free: 8.375 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.106e-05/0.2381, allocations: 55.41 kB / 0.62 GB, free: 8.309 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000526/0.2386, allocations: 450.7 kB / 0.6205 GB, free: 7.852 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 3.988e-05/0.2387, allocations: 33.7 kB / 0.6205 GB, free: 7.812 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002382/0.2389, allocations: 283.5 kB / 0.6208 GB, free: 7.531 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001422/0.2391, allocations: 127 kB / 0.6209 GB, free: 7.406 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001516/0.2392, allocations: 83.33 kB / 0.621 GB, free: 7.316 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0003469/0.2396, allocations: 0.5469 MB / 0.6215 GB, free: 6.758 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000232/0.2398, allocations: 107.9 kB / 0.6216 GB, free: 6.652 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002285/0.24, allocations: 115.7 kB / 0.6217 GB, free: 6.539 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005209/0.2405, allocations: 263.6 kB / 0.622 GB, free: 6.277 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.182e-06/0.2405, allocations: 0 / 0.622 GB, free: 6.277 MB / 0.5417 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0009459/0.2415, allocations: 468.8 kB / 0.6224 GB, free: 5.809 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.85e-05/0.2415, allocations: 6.5 kB / 0.6224 GB, free: 5.805 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.48e-06/0.2415, allocations: 0 / 0.6224 GB, free: 5.805 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004355/0.2419, allocations: 119.5 kB / 0.6225 GB, free: 5.684 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002897/0.2422, allocations: 55.88 kB / 0.6226 GB, free: 5.629 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003311/0.2455, allocations: 2.729 MB / 0.6253 GB, free: 2.781 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002067/0.2458, allocations: 8 kB / 0.6253 GB, free: 2.773 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.785e-05/0.2458, allocations: 11.98 kB / 0.6253 GB, free: 2.762 MB / 0.5417 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.0002644/0.2461, allocations: 200.5 kB / 0.6255 GB, free: 2.555 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001213/0.2462, allocations: 59.72 kB / 0.6255 GB, free: 2.496 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0013/0.2475, allocations: 0.6615 MB / 0.6262 GB, free: 1.793 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.674e-06/0.2475, allocations: 3.938 kB / 0.6262 GB, free: 1.789 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.31e-06/0.2475, allocations: 4 kB / 0.6262 GB, free: 1.785 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.582e-06/0.2475, allocations: 3.984 kB / 0.6262 GB, free: 1.781 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005287/0.248, allocations: 376.5 kB / 0.6265 GB, free: 1.379 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.285e-06/0.248, allocations: 0 / 0.6265 GB, free: 1.379 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002079/0.2482, allocations: 35.89 kB / 0.6266 GB, free: 1.344 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004156/0.2487, allocations: 127.5 kB / 0.6267 GB, free: 1.215 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.605e-05/0.2487, allocations: 15.98 kB / 0.6267 GB, free: 1.199 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003347/0.252, allocations: 2.743 MB / 0.6294 GB, free: 14.33 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.252, allocations: 0 / 0.6294 GB, free: 14.33 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001086/0.2531, allocations: 0.5175 MB / 0.6299 GB, free: 13.79 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000175/0.2533, allocations: 63.69 kB / 0.63 GB, free: 13.72 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.774e-05/0.2534, allocations: 11.94 kB / 0.63 GB, free: 13.71 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001835/0.2535, allocations: 11.98 kB / 0.63 GB, free: 13.7 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.202e-05/0.2536, allocations: 19.95 kB / 0.63 GB, free: 13.68 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.027e-05/0.2536, allocations: 15.97 kB / 0.63 GB, free: 13.66 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.0003899/0.254, allocations: 323.1 kB / 0.6303 GB, free: 13.36 MB / 0.5573 GB Notification: Performance of sort global known variables: time 7e-08/0.254, allocations: 0 / 0.6303 GB, free: 13.36 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.0005656/0.2546, allocations: 127.9 kB / 0.6304 GB, free: 13.23 MB / 0.5573 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.0003185/0.2549, allocations: 178.4 kB / 0.6306 GB, free: 13.05 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.001043/0.256, allocations: 0.5087 MB / 0.6311 GB, free: 12.52 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.256, allocations: 0 / 0.6311 GB, free: 12.52 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.0007299/0.2567, allocations: 398.2 kB / 0.6315 GB, free: 12.11 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007469/0.2574, allocations: 133.6 kB / 0.6316 GB, free: 11.98 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001687/0.2591, allocations: 0.8541 MB / 0.6325 GB, free: 11.09 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000263/0.2594, allocations: 243.7 kB / 0.6327 GB, free: 10.83 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.0002384/0.2596, allocations: 81.14 kB / 0.6328 GB, free: 10.76 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001115/0.2597, allocations: 44.47 kB / 0.6328 GB, free: 10.71 MB / 0.5573 GB Notification: Performance of SimCode: time 8.72e-07/0.2597, allocations: 0 / 0.6328 GB, free: 10.71 MB / 0.5573 GB Notification: Performance of Templates: time 0.01578/0.2755, allocations: 7.612 MB / 0.6402 GB, free: 3.27 MB / 0.5573 GB " [Timeout remaining time 660] make -j1 -f ThermofluidStream_ThermofluidStream.Topology.Tests.TestJunction.makefile [Timeout 660] (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=240 -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.Topology.Tests.TestJunction.pipe 2>&1) [Timeout 240] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 6.464434650959447]