Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_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.001515/0.001515, allocations: 110.2 kB / 19.69 MB, free: 2.254 MB / 14.72 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.001732/0.001732, allocations: 215.2 kB / 23.01 MB, free: 4.566 MB / 14.72 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.353/1.353, allocations: 230.6 MB / 256.8 MB, free: 8.016 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/package.mo): time 0.7242/0.7242, allocations: 100.3 MB / 413.5 MB, free: 3.68 MB / 318.1 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/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_dev_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_dev_ThermofluidStream.Topology.Tests.TestJunction") [Timeout 660] "Notification: ThermofluidStream requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: ThermofluidStream requested package Complex of version 4.0.0. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002326/0.002326, allocations: 83.72 kB / 0.5645 GB, free: 35.71 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1062/0.1085, allocations: 74.47 MB / 0.6372 GB, free: 7.191 MB / 478.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Topology.Tests.TestJunction): time 0.427/0.5355, allocations: 145.2 MB / 0.779 GB, free: 200 kB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.004205/0.5397, allocations: 4.643 MB / 0.7835 GB, free: 15.88 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002842/0.54, allocations: 35.72 kB / 0.7835 GB, free: 15.86 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.0005711/0.5405, allocations: 204.7 kB / 0.7837 GB, free: 15.78 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.000646/0.5412, allocations: 327.8 kB / 0.784 GB, free: 15.69 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009433/0.5421, allocations: 454.1 kB / 0.7845 GB, free: 15.6 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.0006711/0.5428, allocations: 0.7495 MB / 0.7852 GB, free: 15.48 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00017/0.543, allocations: 73.11 kB / 0.7853 GB, free: 15.46 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006354/0.5436, allocations: 405.4 kB / 0.7857 GB, free: 15.42 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00042/0.544, allocations: 345.1 kB / 0.786 GB, free: 15.41 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 5.322e-05/0.5441, allocations: 32.03 kB / 0.786 GB, free: 15.41 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000832/0.5449, allocations: 474.9 kB / 0.7865 GB, free: 15.38 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0001043/0.545, allocations: 105.7 kB / 0.7866 GB, free: 15.38 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0002193/0.5452, allocations: 212.3 kB / 0.7868 GB, free: 15.38 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.0008341/0.5461, allocations: 0.6443 MB / 0.7874 GB, free: 15.33 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 3.627e-06/0.5461, allocations: 4 kB / 0.7874 GB, free: 15.33 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.393e-06/0.5461, allocations: 0.5 kB / 0.7874 GB, free: 15.33 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 7.444e-06/0.5461, allocations: 0 / 0.7874 GB, free: 15.33 MB / 0.5919 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.001489/0.5476, allocations: 0.7585 MB / 0.7881 GB, free: 14.89 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 2.993e-05/0.5476, allocations: 9.656 kB / 0.7881 GB, free: 14.89 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.485e-05/0.5477, allocations: 51.98 kB / 0.7882 GB, free: 14.86 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006881/0.5484, allocations: 422.5 kB / 0.7886 GB, free: 14.65 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.43e-05/0.5484, allocations: 19.69 kB / 0.7886 GB, free: 14.65 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.689e-05/0.5485, allocations: 23.28 kB / 0.7886 GB, free: 14.65 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005765/0.549, allocations: 451.1 kB / 0.7891 GB, free: 14.56 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.201e-05/0.549, allocations: 5.312 kB / 0.7891 GB, free: 14.56 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.806e-05/0.5491, allocations: 8.156 kB / 0.7891 GB, free: 14.56 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.734e-05/0.5491, allocations: 21.03 kB / 0.7891 GB, free: 14.55 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006178/0.5497, allocations: 490.2 kB / 0.7896 GB, free: 14.55 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001907/0.5516, allocations: 1.418 MB / 0.791 GB, free: 13.87 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003931/0.552, allocations: 224.7 kB / 0.7912 GB, free: 13.84 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002601/0.5523, allocations: 193.9 kB / 0.7914 GB, free: 13.83 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001327/0.5524, allocations: 30.47 kB / 0.7914 GB, free: 13.83 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.002e-05/0.5524, allocations: 38.83 kB / 0.7914 GB, free: 13.79 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=32): time 1.283e-06/0.5524, allocations: 0 / 0.7914 GB, free: 13.79 MB / 0.5919 GB Notification: Performance of matching and sorting (n=33): time 0.002193/0.5546, allocations: 1.242 MB / 0.7926 GB, free: 13.48 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.812e-05/0.5547, allocations: 53.53 kB / 0.7927 GB, free: 13.42 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003423/0.555, allocations: 400.8 kB / 0.7931 GB, free: 13.31 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 3.454e-05/0.555, allocations: 31.67 kB / 0.7931 GB, free: 13.28 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001107/0.5552, allocations: 200.7 kB / 0.7933 GB, free: 13.19 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001026/0.5553, allocations: 125.6 kB / 0.7934 GB, free: 13.11 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.457e-05/0.5554, allocations: 64.78 kB / 0.7935 GB, free: 13.09 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001552/0.5555, allocations: 358.8 kB / 0.7938 GB, free: 12.78 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001874/0.5557, allocations: 143.9 kB / 0.794 GB, free: 12.78 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001909/0.5559, allocations: 154 kB / 0.7941 GB, free: 12.77 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004258/0.5563, allocations: 340.4 kB / 0.7944 GB, free: 12.75 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.62e-07/0.5563, allocations: 0 / 0.7944 GB, free: 12.75 MB / 0.5919 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0007707/0.5571, allocations: 0.5177 MB / 0.7949 GB, free: 12.66 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.299e-05/0.5571, allocations: 5.5 kB / 0.7949 GB, free: 12.66 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.009e-06/0.5571, allocations: 3.938 kB / 0.7949 GB, free: 12.66 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003282/0.5574, allocations: 119.9 kB / 0.7951 GB, free: 12.65 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002319/0.5577, allocations: 49.34 kB / 0.7951 GB, free: 12.65 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002318/0.56, allocations: 2.225 MB / 0.7973 GB, free: 11.25 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001758/0.5602, allocations: 12.95 kB / 0.7973 GB, free: 11.25 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.096e-05/0.5602, allocations: 15.56 kB / 0.7973 GB, free: 11.25 MB / 0.5919 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.0001835/0.5604, allocations: 161.8 kB / 0.7975 GB, free: 11.13 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.606e-05/0.5605, allocations: 49.27 kB / 0.7975 GB, free: 11.1 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009044/0.5614, allocations: 0.6673 MB / 0.7982 GB, free: 10.93 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.045e-06/0.5614, allocations: 2.812 kB / 0.7982 GB, free: 10.93 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.216e-06/0.5614, allocations: 2.844 kB / 0.7982 GB, free: 10.93 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.228e-06/0.5614, allocations: 1.875 kB / 0.7982 GB, free: 10.93 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004051/0.5618, allocations: 414.4 kB / 0.7986 GB, free: 10.78 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-06/0.5618, allocations: 1.094 kB / 0.7986 GB, free: 10.78 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001824/0.562, allocations: 34.39 kB / 0.7986 GB, free: 10.78 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002763/0.5622, allocations: 128.6 kB / 0.7987 GB, free: 10.76 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.575e-05/0.5623, allocations: 10.91 kB / 0.7987 GB, free: 10.76 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002172/0.5644, allocations: 2.234 MB / 0.8009 GB, free: 9.359 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.5644, allocations: 0 / 0.8009 GB, free: 9.359 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008458/0.5653, allocations: 0.6454 MB / 0.8015 GB, free: 9.234 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 5.858e-05/0.5653, allocations: 48.55 kB / 0.8016 GB, free: 9.203 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.035e-05/0.5654, allocations: 5.812 kB / 0.8016 GB, free: 9.203 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001662/0.5656, allocations: 8.047 kB / 0.8016 GB, free: 9.203 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.739e-05/0.5656, allocations: 25.42 kB / 0.8016 GB, free: 9.199 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.991e-05/0.5656, allocations: 12.84 kB / 0.8016 GB, free: 9.199 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0002777/0.5659, allocations: 318.2 kB / 0.8019 GB, free: 9.109 MB / 0.5919 GB Notification: Performance of sort global known variables: time 9e-08/0.5659, allocations: 0 / 0.8019 GB, free: 9.109 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.0004296/0.5663, allocations: 111.7 kB / 0.802 GB, free: 9.105 MB / 0.5919 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.0002393/0.5666, allocations: 184.3 kB / 0.8022 GB, free: 8.992 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0007797/0.5674, allocations: 0.5076 MB / 0.8027 GB, free: 8.844 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.5674, allocations: 0 / 0.8027 GB, free: 8.844 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0005242/0.5679, allocations: 354.2 kB / 0.803 GB, free: 8.711 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005205/0.5684, allocations: 112 kB / 0.8032 GB, free: 8.699 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001492/0.5699, allocations: 0.9931 MB / 0.8041 GB, free: 8.18 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004203/0.5703, allocations: 0.8321 MB / 0.8049 GB, free: 7.477 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001151/0.5704, allocations: 51.12 kB / 0.805 GB, free: 7.469 MB / 0.5919 GB Notification: Performance of SimCode: time 3.11e-07/0.5704, allocations: 0 / 0.805 GB, free: 7.469 MB / 0.5919 GB Notification: Performance of Templates: time 0.01071/0.5811, allocations: 8.969 MB / 0.8137 GB, free: 3.285 MB / 0.5919 GB " [Timeout remaining time 659] make -j1 -f ThermofluidStream_dev_ThermofluidStream.Topology.Tests.TestJunction.makefile [Timeout 660] (rm -f ThermofluidStream_dev_ThermofluidStream.Topology.Tests.TestJunction.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.Topology.Tests.TestJunction.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.Topology.Tests.TestJunction.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.Topology.Tests.TestJunction.sim & ./ThermofluidStream_dev_ThermofluidStream.Topology.Tests.TestJunction -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_dev_ThermofluidStream.Topology.Tests.TestJunction.pipe 2>&1) [Timeout 1200] diffSimulationResults("ThermofluidStream_dev_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_dev_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: 8.512026756070554]