Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_ThermofluidStream.Undirected.Topology.Tests.TestJunction.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 90] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001457/0.001457, allocations: 103.4 kB / 18.19 MB, free: 4.117 MB / 14.72 MB [Timeout remaining time 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 90] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001497/0.001497, allocations: 193.9 kB / 21.34 MB, free: 0.9766 MB / 14.72 MB [Timeout remaining time 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 90] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.344/1.344, allocations: 225.6 MB / 249.9 MB, free: 3.234 MB / 190.1 MB [Timeout remaining time 88] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo", uses=false) [Timeout 90] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.579/0.579, allocations: 94.58 MB / 399.6 MB, free: 15.93 MB / 334.1 MB [Timeout remaining time 89] 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.Undirected.Topology.Tests.TestJunction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|sink.inlet.m_flow|sink4.inlet.m_flow|sink6.inlet.m_flow|sink7.inlet.m_flow|source.outlet.m_flow|source3.outlet.m_flow|source7.outlet.m_flow|source8.outlet.m_flow",fileNamePrefix="ThermofluidStream_dev_ThermofluidStream.Undirected.Topology.Tests.TestJunction") translateModel(ThermofluidStream.Undirected.Topology.Tests.TestJunction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|sink.inlet.m_flow|sink4.inlet.m_flow|sink6.inlet.m_flow|sink7.inlet.m_flow|source.outlet.m_flow|source3.outlet.m_flow|source7.outlet.m_flow|source8.outlet.m_flow",fileNamePrefix="ThermofluidStream_dev_ThermofluidStream.Undirected.Topology.Tests.TestJunction") [Timeout 660] Notification: Performance of FrontEnd - loaded program: time 0.002323/0.002323, allocations: 75.88 kB / 0.5452 GB, free: 12.25 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3795/0.3819, allocations: 71.84 MB / 0.6154 GB, free: 4.117 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Topology.Tests.TestJunction): time 0.2594/0.6413, allocations: 237.3 MB / 0.8471 GB, free: 7.023 MB / 0.67 GB Notification: Performance of NFInst.instExpressions: time 0.396/1.037, allocations: 36.78 MB / 0.883 GB, free: 1.449 MB / 0.6856 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00315/1.04, allocations: 112.7 kB / 0.8831 GB, free: 1.449 MB / 0.6856 GB Notification: Performance of NFTyping.typeComponents: time 0.00508/1.045, allocations: 1.849 MB / 0.8849 GB, free: 1.43 MB / 0.6856 GB Notification: Performance of NFTyping.typeBindings: time 0.009113/1.055, allocations: 3.122 MB / 0.888 GB, free: 1.352 MB / 0.6856 GB Notification: Performance of NFTyping.typeClassSections: time 0.007781/1.062, allocations: 2.745 MB / 0.8906 GB, free: 1.281 MB / 0.6856 GB Notification: Performance of NFFlatten.flatten: time 0.007749/1.07, allocations: 5.081 MB / 0.8956 GB, free: 1.277 MB / 0.6856 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001717/1.072, allocations: 0.7124 MB / 0.8963 GB, free: 17.11 MB / 0.7012 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004597/1.076, allocations: 2.205 MB / 0.8985 GB, free: 17.1 MB / 0.7012 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005236/1.082, allocations: 2.718 MB / 0.9011 GB, free: 17.1 MB / 0.7012 GB Notification: Performance of NFPackage.collectConstants: time 0.001285/1.083, allocations: 306.1 kB / 0.9014 GB, free: 17.1 MB / 0.7012 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01053/1.093, allocations: 4.566 MB / 0.9059 GB, free: 17.02 MB / 0.7012 GB Notification: Performance of NFScalarize.scalarize: time 0.001176/1.095, allocations: 0.7651 MB / 0.9066 GB, free: 17.02 MB / 0.7012 GB Notification: Performance of NFVerifyModel.verify: time 0.003072/1.098, allocations: 1.729 MB / 0.9083 GB, free: 16.55 MB / 0.7012 GB Notification: Performance of NFConvertDAE.convert: time 0.01089/1.109, allocations: 5.646 MB / 0.9138 GB, free: 15.73 MB / 0.7012 GB Notification: Performance of FrontEnd - DAE generated: time 3.917e-06/1.109, allocations: 0 / 0.9138 GB, free: 15.73 MB / 0.7012 GB Notification: Performance of FrontEnd: time 1.623e-06/1.109, allocations: 4.75 kB / 0.9138 GB, free: 15.73 MB / 0.7012 GB Notification: Performance of Transformations before backend: time 6.572e-05/1.109, allocations: 2.438 kB / 0.9138 GB, free: 15.73 MB / 0.7012 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 572 * Number of variables: 572 Notification: Performance of Generate backend data structure: time 0.008215/1.117, allocations: 4.161 MB / 0.9179 GB, free: 13.93 MB / 0.7012 GB Notification: Performance of prepare preOptimizeDAE: time 3.73e-05/1.117, allocations: 9.188 kB / 0.9179 GB, free: 13.93 MB / 0.7012 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007563/1.118, allocations: 367.2 kB / 0.9182 GB, free: 13.74 MB / 0.7012 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003421/1.121, allocations: 2.078 MB / 0.9203 GB, free: 13.15 MB / 0.7012 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000118/1.121, allocations: 171.3 kB / 0.9204 GB, free: 13.14 MB / 0.7012 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003274/1.122, allocations: 245.9 kB / 0.9207 GB, free: 13.12 MB / 0.7012 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004089/1.126, allocations: 2.815 MB / 0.9234 GB, free: 12.91 MB / 0.7012 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.923e-05/1.126, allocations: 3.188 kB / 0.9234 GB, free: 12.91 MB / 0.7012 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001739/1.126, allocations: 97.05 kB / 0.9235 GB, free: 12.9 MB / 0.7012 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.257e-05/1.126, allocations: 65.42 kB / 0.9236 GB, free: 12.9 MB / 0.7012 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003579/1.129, allocations: 2.802 MB / 0.9263 GB, free: 12.89 MB / 0.7012 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01376/1.143, allocations: 12.03 MB / 0.9381 GB, free: 6.516 MB / 0.7012 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003163/1.146, allocations: 2.121 MB / 0.9401 GB, free: 6.371 MB / 0.7012 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001571/1.148, allocations: 1.193 MB / 0.9413 GB, free: 6.332 MB / 0.7012 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01023/1.158, allocations: 8.71 MB / 0.9498 GB, free: 408 kB / 0.7012 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.334e-05/1.158, allocations: 57.09 kB / 0.9499 GB, free: 368 kB / 0.7012 GB Notification: Performance of pre-optimization done (n=225): time 4.238e-06/1.158, allocations: 0 / 0.9499 GB, free: 368 kB / 0.7012 GB Notification: Performance of matching and sorting (n=229): time 0.01528/1.174, allocations: 9.49 MB / 0.9591 GB, free: 12.59 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.56e-05/1.174, allocations: 153.7 kB / 0.9593 GB, free: 12.43 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002157/1.176, allocations: 1.848 MB / 0.9611 GB, free: 11.93 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 0.0001734/1.176, allocations: 65.11 kB / 0.9611 GB, free: 11.9 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006975/1.177, allocations: 1.163 MB / 0.9623 GB, free: 11.41 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006297/1.177, allocations: 0.8036 MB / 0.9631 GB, free: 10.8 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005087/1.178, allocations: 373.4 kB / 0.9634 GB, free: 10.74 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 0.0001277/1.178, allocations: 308.8 kB / 0.9637 GB, free: 10.44 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001264/1.179, allocations: 0.8961 MB / 0.9646 GB, free: 10.31 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001573/1.181, allocations: 1.198 MB / 0.9658 GB, free: 9.891 MB / 0.7169 GB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: flowResistance4.m_flow = flowResistance4.m_flow_0 (flowResistance7.m_flow_0 - flowResistance5.m_flow_0 = flowResistance4.m_flow_0) Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: flowResistance10.m_flow = flowResistance10.m_flow_0 (flowResistance6.m_flow_0 - flowResistance11.m_flow_0 = flowResistance10.m_flow_0) Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: flowResistance8.m_flow = flowResistance8.m_flow_0 (flowResistance3.m_flow_0 - flowResistance9.m_flow_0 = flowResistance8.m_flow_0) Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: flowResistance.m_flow = flowResistance.m_flow_0 (flowResistance2.m_flow_0 - flowResistance1.m_flow_0 = flowResistance.m_flow_0) Notification: Performance of analyzeInitialSystem (initialization): time 0.04877/1.23, allocations: 11.43 MB / 0.9769 GB, free: 1.816 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.476e-05/1.23, allocations: 8 kB / 0.9769 GB, free: 1.809 MB / 0.7169 GB Notification: Performance of matching and sorting (n=264) (initialization): time 0.006536/1.236, allocations: 3.246 MB / 0.9801 GB, free: 15.58 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 2.745e-05/1.236, allocations: 8.844 kB / 0.9801 GB, free: 15.57 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.559e-05/1.236, allocations: 11.19 kB / 0.9801 GB, free: 15.57 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002623/1.239, allocations: 0.8483 MB / 0.9809 GB, free: 14.88 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001394/1.24, allocations: 369 kB / 0.9813 GB, free: 14.55 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01746/1.258, allocations: 11.91 MB / 0.9929 GB, free: 2.816 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002047/1.26, allocations: 64.02 kB / 0.993 GB, free: 2.754 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002608/1.26, allocations: 95.95 kB / 0.9931 GB, free: 2.66 MB / 0.7325 GB Warning: The initial conditions are over specified. The following 4 initial equations are redundant, so they are removed from the initialization system: flowResistance4.m_flow = flowResistance4.m_flow_0 flowResistance10.m_flow = flowResistance10.m_flow_0 flowResistance8.m_flow = flowResistance8.m_flow_0 flowResistance.m_flow = flowResistance.m_flow_0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * 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 (199): * Single equations (assignments): 195 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(3,9,77.8%), (3,22,77.8%), (3,19,77.8%), (2,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001117/1.261, allocations: 495.9 kB / 0.9936 GB, free: 2.188 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006664/1.262, allocations: 270.2 kB / 0.9938 GB, free: 1.922 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007632/1.269, allocations: 4.097 MB / 0.9978 GB, free: 13.88 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.389e-05/1.269, allocations: 24 kB / 0.9978 GB, free: 13.85 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.965e-05/1.269, allocations: 12 kB / 0.9979 GB, free: 13.84 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.835e-05/1.269, allocations: 11.95 kB / 0.9979 GB, free: 13.83 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01248/1.282, allocations: 6.562 MB / 1.004 GB, free: 7.27 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.488e-05/1.282, allocations: 8 kB / 1.004 GB, free: 7.262 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001284/1.283, allocations: 347.1 kB / 1.005 GB, free: 6.941 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002286/1.285, allocations: 0.7148 MB / 1.005 GB, free: 6.219 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001727/1.286, allocations: 79.95 kB / 1.005 GB, free: 6.141 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01205/1.298, allocations: 10.47 MB / 1.016 GB, free: 11.18 MB / 0.7637 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.853e-06/1.298, allocations: 12.06 kB / 1.016 GB, free: 11.17 MB / 0.7637 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00837/1.306, allocations: 4.899 MB / 1.02 GB, free: 6.246 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008696/1.307, allocations: 347.1 kB / 1.021 GB, free: 5.887 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003451/1.307, allocations: 56 kB / 1.021 GB, free: 5.832 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001205/1.308, allocations: 59.97 kB / 1.021 GB, free: 5.773 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000394/1.309, allocations: 204.3 kB / 1.021 GB, free: 5.578 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001761/1.309, allocations: 83.95 kB / 1.021 GB, free: 5.496 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.00191/1.311, allocations: 1.345 MB / 1.022 GB, free: 4.141 MB / 0.7637 GB Notification: Performance of sort global known variables: time 9e-08/1.311, allocations: 4 kB / 1.022 GB, free: 4.137 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.003637/1.315, allocations: 1.232 MB / 1.024 GB, free: 2.902 MB / 0.7637 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 18 * Number of states: 8 (flowResistance1.inlet.m_flow,flowResistance2.inlet.m_flow,flowResistance9.inlet.m_flow,flowResistance3.inlet.m_flow,flowResistance11.inlet.m_flow,flowResistance6.inlet.m_flow,flowResistance5.inlet.m_flow,flowResistance7.inlet.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 (188): * Single equations (assignments): 184 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(2,8,100.0%), (3,19,77.8%), (3,22,77.8%), (3,9,77.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.00216/1.317, allocations: 1.372 MB / 1.025 GB, free: 1.668 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.005675/1.322, allocations: 3.106 MB / 1.028 GB, free: 14.55 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 5.21e-06/1.322, allocations: 3.094 kB / 1.028 GB, free: 14.55 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.003601/1.326, allocations: 2.048 MB / 1.03 GB, free: 12.5 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003977/1.33, allocations: 0.866 MB / 1.031 GB, free: 11.65 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01001/1.34, allocations: 5.693 MB / 1.036 GB, free: 5.918 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001498/1.342, allocations: 1.804 MB / 1.038 GB, free: 4.082 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001108/1.343, allocations: 251.4 kB / 1.038 GB, free: 3.836 MB / 0.7794 GB Notification: Performance of SimCode: time 1.062e-06/1.343, allocations: 0 / 1.038 GB, free: 3.836 MB / 0.7794 GB Notification: Performance of Templates: time 0.1122/1.455, allocations: 97.37 MB / 1.134 GB, free: 2.656 MB / 0.8731 GB [Timeout remaining time 659] make -j1 -f ThermofluidStream_dev_ThermofluidStream.Undirected.Topology.Tests.TestJunction.makefile [Timeout 660] (rm -f ThermofluidStream_dev_ThermofluidStream.Undirected.Topology.Tests.TestJunction.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.Undirected.Topology.Tests.TestJunction.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.Undirected.Topology.Tests.TestJunction.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.Undirected.Topology.Tests.TestJunction.sim & ./ThermofluidStream_dev_ThermofluidStream.Undirected.Topology.Tests.TestJunction -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_dev_ThermofluidStream.Undirected.Topology.Tests.TestJunction.pipe 2>&1) [Timeout 1200] diffSimulationResults("ThermofluidStream_dev_ThermofluidStream.Undirected.Topology.Tests.TestJunction_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Undirected.Topology.Tests.TestJunction_ref.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_dev_ThermofluidStream.Undirected.Topology.Tests.TestJunction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] [Timeout remaining time 660] Reference file matches