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) 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.Undirected.Topology.Tests.TestJunction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,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=2000,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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001605/0.001605, allocations: 106.3 kB / 16.27 MB, free: 5.957 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.00173/0.00173, allocations: 187.3 kB / 17.19 MB, free: 5.59 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.385/1.385, allocations: 222.9 MB / 240.9 MB, free: 15.22 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.7345/0.7345, allocations: 93.69 MB / 384.7 MB, free: 5.352 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002429/0.002429, allocations: 87.86 kB / 464.1 MB, free: 6.176 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1241/0.1265, allocations: 68.26 MB / 0.5199 GB, free: 1.832 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Topology.Tests.TestJunction): time 0.7128/0.8394, allocations: 236 MB / 0.7503 GB, free: 1.152 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.0359/0.8754, allocations: 36.66 MB / 0.7861 GB, free: 1.023 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00348/0.8789, allocations: 110.3 kB / 0.7862 GB, free: 1.023 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.005188/0.8841, allocations: 1.843 MB / 0.788 GB, free: 0.9688 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.009162/0.8933, allocations: 3.058 MB / 0.791 GB, free: 0.8906 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.008687/0.9021, allocations: 2.73 MB / 0.7937 GB, free: 0.8164 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.008353/0.9104, allocations: 5.072 MB / 0.7986 GB, free: 0.8164 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002033/0.9125, allocations: 1.091 MB / 0.7997 GB, free: 16.56 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004455/0.917, allocations: 2.136 MB / 0.8018 GB, free: 16.55 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004214/0.9212, allocations: 2.669 MB / 0.8044 GB, free: 16.18 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0006488/0.9219, allocations: 306 kB / 0.8047 GB, free: 16.18 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01088/0.9327, allocations: 4.498 MB / 0.8091 GB, free: 16.09 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.00104/0.9338, allocations: 0.757 MB / 0.8098 GB, free: 15.96 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.002924/0.9367, allocations: 1.726 MB / 0.8115 GB, free: 15.47 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.01139/0.9481, allocations: 5.504 MB / 0.8169 GB, free: 14.41 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 5.27e-06/0.9482, allocations: 0 / 0.8169 GB, free: 14.41 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.503e-06/0.9482, allocations: 4 kB / 0.8169 GB, free: 14.41 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 7.554e-05/0.9483, allocations: 2.469 kB / 0.8169 GB, free: 14.41 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: 572 * Number of variables: 572 Notification: Performance of Generate backend data structure: time 0.009197/0.9575, allocations: 4.048 MB / 0.8208 GB, free: 12.18 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.972e-05/0.9575, allocations: 9.875 kB / 0.8208 GB, free: 12.18 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000732/0.9583, allocations: 353.1 kB / 0.8212 GB, free: 12 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003185/0.9615, allocations: 1.904 MB / 0.823 GB, free: 11.06 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.906e-05/0.9616, allocations: 167.8 kB / 0.8232 GB, free: 11.05 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003146/0.9619, allocations: 242.6 kB / 0.8234 GB, free: 11.04 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004093/0.966, allocations: 2.811 MB / 0.8262 GB, free: 10.3 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.913e-05/0.9661, allocations: 2.469 kB / 0.8262 GB, free: 10.3 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001817/0.9663, allocations: 87.47 kB / 0.8263 GB, free: 10.3 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.869e-05/0.9663, allocations: 71.39 kB / 0.8263 GB, free: 10.3 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003918/0.9702, allocations: 2.801 MB / 0.8291 GB, free: 9.598 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01565/0.9859, allocations: 12.1 MB / 0.8409 GB, free: 14.62 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003962/0.9899, allocations: 2.293 MB / 0.8431 GB, free: 12.31 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00198/0.9919, allocations: 1.34 MB / 0.8444 GB, free: 10.96 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01149/1.003, allocations: 8.713 MB / 0.8529 GB, free: 1.316 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.225e-05/1.003, allocations: 66.64 kB / 0.853 GB, free: 1.242 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=225): time 3.937e-06/1.004, allocations: 3.938 kB / 0.853 GB, free: 1.238 MB / 0.6075 GB Notification: Performance of matching and sorting (n=229): time 0.01902/1.023, allocations: 9.372 MB / 0.8622 GB, free: 7.562 MB / 0.6231 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001016/1.023, allocations: 161.2 kB / 0.8623 GB, free: 7.379 MB / 0.6231 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002875/1.026, allocations: 1.858 MB / 0.8641 GB, free: 5.496 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 0.0002018/1.026, allocations: 61.7 kB / 0.8642 GB, free: 5.43 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009843/1.027, allocations: 1.142 MB / 0.8653 GB, free: 4.277 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007532/1.028, allocations: 0.774 MB / 0.8661 GB, free: 3.508 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006806/1.028, allocations: 371.7 kB / 0.8664 GB, free: 3.137 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 0.0001197/1.028, allocations: 301.1 kB / 0.8667 GB, free: 2.84 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00164/1.03, allocations: 0.8943 MB / 0.8676 GB, free: 1.941 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001989/1.032, allocations: 1.204 MB / 0.8687 GB, free: 0.6328 MB / 0.6231 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.05321/1.085, allocations: 11.47 MB / 0.8799 GB, free: 5.031 MB / 0.6387 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-05/1.085, allocations: 4 kB / 0.8799 GB, free: 5.027 MB / 0.6387 GB Notification: Performance of matching and sorting (n=264) (initialization): time 0.007736/1.093, allocations: 3.265 MB / 0.8831 GB, free: 1.812 MB / 0.6387 GB Notification: Performance of prepare postOptimizeDAE: time 3.036e-05/1.093, allocations: 12.56 kB / 0.8831 GB, free: 1.801 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.768e-05/1.093, allocations: 4 kB / 0.8832 GB, free: 1.797 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002798/1.096, allocations: 0.8516 MB / 0.884 GB, free: 0.9375 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001542/1.097, allocations: 373.7 kB / 0.8843 GB, free: 0.5938 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01891/1.116, allocations: 11.9 MB / 0.896 GB, free: 4.211 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002027/1.118, allocations: 66.02 kB / 0.896 GB, free: 4.148 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005284/1.119, allocations: 95.91 kB / 0.8961 GB, free: 4.055 MB / 0.6544 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.00146/1.12, allocations: 495.6 kB / 0.8966 GB, free: 3.582 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009782/1.121, allocations: 260.7 kB / 0.8968 GB, free: 3.324 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008657/1.13, allocations: 4.128 MB / 0.9009 GB, free: 15.3 MB / 0.67 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.998e-05/1.13, allocations: 27.94 kB / 0.9009 GB, free: 15.27 MB / 0.67 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.214e-05/1.13, allocations: 12 kB / 0.9009 GB, free: 15.26 MB / 0.67 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.221e-05/1.13, allocations: 11.95 kB / 0.9009 GB, free: 15.25 MB / 0.67 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01318/1.143, allocations: 6.594 MB / 0.9074 GB, free: 8.648 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.741e-05/1.143, allocations: 8 kB / 0.9074 GB, free: 8.641 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001358/1.145, allocations: 346.9 kB / 0.9077 GB, free: 8.32 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002544/1.147, allocations: 0.7201 MB / 0.9084 GB, free: 7.594 MB / 0.67 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002312/1.148, allocations: 81.95 kB / 0.9085 GB, free: 7.516 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0137/1.161, allocations: 10.47 MB / 0.9187 GB, free: 12.56 MB / 0.6856 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.038e-05/1.161, allocations: 7.938 kB / 0.9187 GB, free: 12.55 MB / 0.6856 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01031/1.172, allocations: 4.915 MB / 0.9235 GB, free: 7.598 MB / 0.6856 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001022/1.173, allocations: 321.7 kB / 0.9238 GB, free: 7.262 MB / 0.6856 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007812/1.174, allocations: 63.89 kB / 0.9239 GB, free: 7.199 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001728/1.175, allocations: 63.97 kB / 0.9239 GB, free: 7.137 MB / 0.6856 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005/1.176, allocations: 202.7 kB / 0.9241 GB, free: 6.945 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002645/1.176, allocations: 87.95 kB / 0.9242 GB, free: 6.859 MB / 0.6856 GB Notification: Performance of sorting global known variables: time 0.002556/1.179, allocations: 1.341 MB / 0.9255 GB, free: 5.508 MB / 0.6856 GB Notification: Performance of sort global known variables: time 1.91e-07/1.179, allocations: 0 / 0.9255 GB, free: 5.508 MB / 0.6856 GB Notification: Performance of remove unused functions: time 0.004826/1.184, allocations: 1.226 MB / 0.9267 GB, free: 4.281 MB / 0.6856 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.002929/1.186, allocations: 1.364 MB / 0.9281 GB, free: 3.027 MB / 0.6856 GB Notification: Performance of simCode: created initialization part: time 0.00762/1.194, allocations: 3.487 MB / 0.9315 GB, free: 15.56 MB / 0.7012 GB Notification: Performance of simCode: created event and clocks part: time 7.765e-06/1.194, allocations: 0 / 0.9315 GB, free: 15.56 MB / 0.7012 GB Notification: Performance of simCode: created simulation system equations: time 0.004296/1.198, allocations: 2.157 MB / 0.9336 GB, free: 13.39 MB / 0.7012 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005212/1.204, allocations: 0.8529 MB / 0.9344 GB, free: 12.61 MB / 0.7012 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01224/1.216, allocations: 5.671 MB / 0.9399 GB, free: 6.918 MB / 0.7012 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002074/1.218, allocations: 1.792 MB / 0.9417 GB, free: 5.094 MB / 0.7012 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001215/1.219, allocations: 251.3 kB / 0.9419 GB, free: 4.848 MB / 0.7012 GB Notification: Performance of SimCode: time 1.122e-06/1.219, allocations: 0 / 0.9419 GB, free: 4.848 MB / 0.7012 GB Notification: Performance of Templates: time 0.3452/1.565, allocations: 96.74 MB / 1.036 GB, free: 346.7 MB / 0.7637 GB make -j1 -f ThermofluidStream_dev_ThermofluidStream.Undirected.Topology.Tests.TestJunction.makefile (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) 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) Reference file matches