Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.Topology.Tests.TestJunction.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/package.mo", uses=false) Using package ThermofluidStream with version 0.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_OM_adaptions_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_OM_adaptions_ThermofluidStream.Undirected.Topology.Tests.TestJunction") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00526/0.00526, allocations: 168.5 kB / 15.13 MB, free: 6.023 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.33/1.33, allocations: 205.4 MB / 221.3 MB, free: 13.81 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008666/0.0008665, allocations: 94.23 kB / 269.6 MB, free: 13.34 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/package.mo): time 0.7417/0.7417, allocations: 90.59 MB / 408.5 MB, free: 14.96 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003488/0.0003488, allocations: 8 kB / 485.3 MB, free: 2.031 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3608/0.3611, allocations: 66.27 MB / 0.5386 GB, free: 45.55 MB / 426.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Topology.Tests.TestJunction): time 0.2248/0.5859, allocations: 216.9 MB / 0.7504 GB, free: 2.578 MB / 0.5573 GB Notification: Performance of NFInst.instExpressions: time 0.3118/0.8978, allocations: 33.71 MB / 0.7833 GB, free: 5.746 MB / 0.5573 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002905/0.9007, allocations: 43.72 kB / 0.7833 GB, free: 5.746 MB / 0.5573 GB Notification: Performance of NFTyping.typeComponents: time 0.004981/0.9057, allocations: 1.531 MB / 0.7848 GB, free: 5.684 MB / 0.5573 GB Notification: Performance of NFTyping.typeBindings: time 0.009176/0.9149, allocations: 2.669 MB / 0.7874 GB, free: 5.57 MB / 0.5573 GB Notification: Performance of NFTyping.typeClassSections: time 0.008603/0.9235, allocations: 1.948 MB / 0.7894 GB, free: 5.508 MB / 0.5573 GB Notification: Performance of NFFlatten.flatten: time 0.007677/0.9312, allocations: 4.726 MB / 0.794 GB, free: 5.508 MB / 0.5573 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001871/0.9331, allocations: 0.8063 MB / 0.7948 GB, free: 21.34 MB / 0.573 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003756/0.9369, allocations: 1.474 MB / 0.7962 GB, free: 21.34 MB / 0.573 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004614/0.9415, allocations: 2.228 MB / 0.7984 GB, free: 21.33 MB / 0.573 GB Notification: Performance of NFPackage.collectConstants: time 0.0006765/0.9422, allocations: 122.5 kB / 0.7985 GB, free: 21.33 MB / 0.573 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01154/0.9538, allocations: 3.953 MB / 0.8023 GB, free: 21.24 MB / 0.573 GB Notification: Performance of NFScalarize.scalarize: time 0.001066/0.9549, allocations: 490 kB / 0.8028 GB, free: 21.24 MB / 0.573 GB Notification: Performance of NFVerifyModel.verify: time 0.001541/0.9565, allocations: 0.513 MB / 0.8033 GB, free: 21.21 MB / 0.573 GB Notification: Performance of NFConvertDAE.convert: time 0.006417/0.9629, allocations: 3.471 MB / 0.8067 GB, free: 20.91 MB / 0.573 GB Notification: Performance of FrontEnd - DAE generated: time 6.011e-06/0.9629, allocations: 5.031 kB / 0.8067 GB, free: 20.9 MB / 0.573 GB Notification: Performance of FrontEnd: time 2.465e-06/0.9629, allocations: 0 / 0.8067 GB, free: 20.9 MB / 0.573 GB Notification: Performance of Transformations before backend: time 8.411e-05/0.963, allocations: 0 / 0.8067 GB, free: 20.9 MB / 0.573 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.006356/0.9694, allocations: 2.911 MB / 0.8096 GB, free: 19.57 MB / 0.573 GB Notification: Performance of prepare preOptimizeDAE: time 3.673e-05/0.9695, allocations: 9.531 kB / 0.8096 GB, free: 19.57 MB / 0.573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005914/0.97, allocations: 265.8 kB / 0.8098 GB, free: 19.44 MB / 0.573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001858/0.9719, allocations: 1.134 MB / 0.8109 GB, free: 19.07 MB / 0.573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001153/0.972, allocations: 167.2 kB / 0.8111 GB, free: 19.06 MB / 0.573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000316/0.9724, allocations: 243.7 kB / 0.8113 GB, free: 19.05 MB / 0.573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004226/0.9766, allocations: 2.778 MB / 0.814 GB, free: 18.88 MB / 0.573 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.952e-05/0.9767, allocations: 0.9375 kB / 0.814 GB, free: 18.88 MB / 0.573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001813/0.9769, allocations: 92.66 kB / 0.8141 GB, free: 18.88 MB / 0.573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.962e-05/0.9769, allocations: 67.12 kB / 0.8142 GB, free: 18.88 MB / 0.573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004109/0.981, allocations: 2.81 MB / 0.8169 GB, free: 18.88 MB / 0.573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01348/0.9945, allocations: 11.92 MB / 0.8286 GB, free: 10.76 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003664/0.9982, allocations: 2.677 MB / 0.8312 GB, free: 10.33 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001779/1, allocations: 1.415 MB / 0.8326 GB, free: 10.14 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.009791/1.01, allocations: 8.336 MB / 0.8407 GB, free: 3.809 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.047e-05/1.01, allocations: 61.11 kB / 0.8408 GB, free: 3.766 MB / 0.573 GB Notification: Performance of pre-optimization done (n=239): time 4.518e-06/1.01, allocations: 0 / 0.8408 GB, free: 3.766 MB / 0.573 GB Notification: Performance of matching and sorting (n=243): time 0.01767/1.028, allocations: 9.215 MB / 0.8498 GB, free: 216 kB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.628e-05/1.028, allocations: 155.2 kB / 0.8499 GB, free: 52 kB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001324/1.029, allocations: 0.9223 MB / 0.8508 GB, free: 15.78 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 0.0001963/1.029, allocations: 71.5 kB / 0.8509 GB, free: 15.75 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004508/1.03, allocations: 0.781 MB / 0.8516 GB, free: 15.3 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 0.000593/1.03, allocations: 0.8179 MB / 0.8524 GB, free: 14.6 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001136/1.03, allocations: 47.81 kB / 0.8525 GB, free: 14.59 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 0.000153/1.031, allocations: 388.5 kB / 0.8529 GB, free: 14.24 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001409/1.032, allocations: 0.9589 MB / 0.8538 GB, free: 13.64 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001609/1.034, allocations: 1.266 MB / 0.855 GB, free: 12.7 MB / 0.5886 GB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: flowResistance5.m_flow = flowResistance5.m_flow_0 (flowResistance7.m_flow_0 - flowResistance4.m_flow_0 = flowResistance5.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: flowResistance11.m_flow = flowResistance11.m_flow_0 (flowResistance6.m_flow_0 - flowResistance10.m_flow_0 = flowResistance11.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: flowResistance9.m_flow = flowResistance9.m_flow_0 (flowResistance3.m_flow_0 - flowResistance8.m_flow_0 = flowResistance9.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: flowResistance1.m_flow = flowResistance1.m_flow_0 (flowResistance2.m_flow_0 - flowResistance.m_flow_0 = flowResistance1.m_flow_0) Notification: Performance of analyzeInitialSystem (initialization): time 0.05271/1.086, allocations: 10.81 MB / 0.8656 GB, free: 2.945 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.169e-05/1.086, allocations: 0 / 0.8656 GB, free: 2.945 MB / 0.5886 GB Notification: Performance of matching and sorting (n=276) (initialization): time 0.007357/1.094, allocations: 3.317 MB / 0.8688 GB, free: 0.7344 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 2.937e-05/1.094, allocations: 13.36 kB / 0.8688 GB, free: 0.7227 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.686e-05/1.094, allocations: 4 kB / 0.8688 GB, free: 0.7188 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002481/1.096, allocations: 0.8147 MB / 0.8696 GB, free: 68 kB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001582/1.098, allocations: 370.9 kB / 0.87 GB, free: 15.74 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01699/1.115, allocations: 11.11 MB / 0.8808 GB, free: 6.535 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00204/1.117, allocations: 144.3 kB / 0.881 GB, free: 6.426 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006067/1.118, allocations: 96.03 kB / 0.8811 GB, free: 6.355 MB / 0.6042 GB Warning: The initial conditions are over specified. The following 4 initial equations are redundant, so they are removed from the initialization sytem: flowResistance5.m_flow = flowResistance5.m_flow_0 flowResistance11.m_flow = flowResistance11.m_flow_0 flowResistance9.m_flow = flowResistance9.m_flow_0 flowResistance1.m_flow = flowResistance1.m_flow_0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 29 * 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 (205): * Single equations (assignments): 195 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(3,77.8%) 9,(3,77.8%) 22,(3,77.8%) 19,(2,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001426/1.119, allocations: 467.1 kB / 0.8815 GB, free: 6.082 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005978/1.12, allocations: 174.6 kB / 0.8817 GB, free: 5.91 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008113/1.128, allocations: 3.948 MB / 0.8855 GB, free: 3.383 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.796e-05/1.128, allocations: 31.25 kB / 0.8856 GB, free: 3.355 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.52e-05/1.128, allocations: 13.25 kB / 0.8856 GB, free: 3.344 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.993e-05/1.128, allocations: 15.94 kB / 0.8856 GB, free: 3.328 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01235/1.14, allocations: 6.745 MB / 0.8922 GB, free: 14.75 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.89e-05/1.14, allocations: 4 kB / 0.8922 GB, free: 14.74 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001542/1.142, allocations: 394.7 kB / 0.8926 GB, free: 14.4 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002269/1.144, allocations: 0.6969 MB / 0.8932 GB, free: 13.8 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000262/1.145, allocations: 93.08 kB / 0.8933 GB, free: 13.76 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01103/1.156, allocations: 9.563 MB / 0.9027 GB, free: 5.738 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.346e-06/1.156, allocations: 0 / 0.9027 GB, free: 5.738 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009947/1.166, allocations: 5.254 MB / 0.9078 GB, free: 2.113 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007284/1.166, allocations: 251.2 kB / 0.908 GB, free: 1.859 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000765/1.167, allocations: 59.31 kB / 0.9081 GB, free: 1.844 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002309/1.17, allocations: 145.6 kB / 0.9082 GB, free: 1.734 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005573/1.17, allocations: 228.2 kB / 0.9085 GB, free: 1.543 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003809/1.17, allocations: 99.27 kB / 0.9086 GB, free: 1.469 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.001124/1.172, allocations: 0.6213 MB / 0.9092 GB, free: 0.9961 MB / 0.6198 GB Notification: Performance of sort global known variables: time 3.91e-07/1.172, allocations: 384 / 0.9092 GB, free: 0.9961 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.005614/1.177, allocations: 1.214 MB / 0.9103 GB, free: 15.96 MB / 0.6355 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * 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 (220): * Single equations (assignments): 210 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(2,100.0%) 8,(3,77.8%) 19,(3,77.8%) 22,(3,77.8%) 9} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003489/1.181, allocations: 1.479 MB / 0.9118 GB, free: 14.69 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.007476/1.188, allocations: 3.505 MB / 0.9152 GB, free: 12.11 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 7.033e-06/1.188, allocations: 7.938 kB / 0.9152 GB, free: 12.1 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 0.004622/1.193, allocations: 2.396 MB / 0.9176 GB, free: 10.27 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005264/1.198, allocations: 0.6026 MB / 0.9181 GB, free: 9.832 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009188/1.207, allocations: 5.644 MB / 0.9237 GB, free: 4.805 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001493/1.209, allocations: 1.576 MB / 0.9252 GB, free: 3.223 MB / 0.6355 GB Notification: Performance of simCode: alias equations: time 0.002514/1.212, allocations: 0.5426 MB / 0.9257 GB, free: 2.711 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007615/1.212, allocations: 196.9 kB / 0.9259 GB, free: 2.543 MB / 0.6355 GB Notification: Performance of SimCode: time 8.31e-07/1.212, allocations: 1.859 kB / 0.9259 GB, free: 2.543 MB / 0.6355 GB Notification: Performance of Templates: time 0.0836/1.296, allocations: 53.08 MB / 0.9777 GB, free: 13.88 MB / 0.698 GB make -j1 -f ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.Topology.Tests.TestJunction.makefile (rm -f ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.Topology.Tests.TestJunction.pipe ; mkfifo ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.Topology.Tests.TestJunction.pipe ; head -c 1048576 < ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.Topology.Tests.TestJunction.pipe >> ../files/ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.Topology.Tests.TestJunction.sim & ./ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.Topology.Tests.TestJunction -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.Topology.Tests.TestJunction.pipe 2>&1) diffSimulationResults("ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.Topology.Tests.TestJunction_res.mat","/mnt/ReferenceFiles/ThermofluidStream-OM-regression/ReferenceData/ThermofluidStream.Undirected.Topology.Tests.TestJunction_ref.mat","../files/ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.Topology.Tests.TestJunction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches