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.01007/0.01007, allocations: 171.7 kB / 15.12 MB, free: 5.555 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.621/1.621, 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.001004/0.001004, allocations: 102.8 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.7673/0.7673, allocations: 90.59 MB / 408.4 MB, free: 14.95 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002909/0.0002909, allocations: 12 kB / 485.2 MB, free: 2.055 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3373/0.3376, allocations: 66.27 MB / 0.5386 GB, free: 45.6 MB / 426.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Topology.Tests.TestJunction): time 0.2049/0.5426, allocations: 199.8 MB / 0.7337 GB, free: 3.723 MB / 0.5417 GB Notification: Performance of NFInst.instExpressions: time 0.4222/0.9648, allocations: 30.28 MB / 0.7633 GB, free: 6.352 MB / 0.5573 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003711/0.9686, allocations: 43 kB / 0.7633 GB, free: 6.352 MB / 0.5573 GB Notification: Performance of NFTyping.typeComponents: time 0.005179/0.9738, allocations: 1.654 MB / 0.7649 GB, free: 6.34 MB / 0.5573 GB Notification: Performance of NFTyping.typeBindings: time 0.009177/0.983, allocations: 2.73 MB / 0.7676 GB, free: 6.305 MB / 0.5573 GB Notification: Performance of NFTyping.typeClassSections: time 0.007554/0.9906, allocations: 2.025 MB / 0.7696 GB, free: 6.277 MB / 0.5573 GB Notification: Performance of NFFlatten.flatten: time 0.007349/0.9979, allocations: 2.756 MB / 0.7723 GB, free: 6.277 MB / 0.5573 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002568/1.001, allocations: 0.8095 MB / 0.7731 GB, free: 22.12 MB / 0.573 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004652/1.005, allocations: 1.353 MB / 0.7744 GB, free: 22.11 MB / 0.573 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005224/1.01, allocations: 1.854 MB / 0.7762 GB, free: 22.11 MB / 0.573 GB Notification: Performance of NFPackage.collectConstants: time 0.0007661/1.011, allocations: 121.8 kB / 0.7763 GB, free: 22.11 MB / 0.573 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01458/1.026, allocations: 4.23 MB / 0.7804 GB, free: 22.09 MB / 0.573 GB Notification: Performance of NFScalarize.scalarize: time 0.00145/1.027, allocations: 475.2 kB / 0.7809 GB, free: 22.09 MB / 0.573 GB Notification: Performance of NFVerifyModel.verify: time 0.00277/1.03, allocations: 0.5083 MB / 0.7814 GB, free: 22.06 MB / 0.573 GB Notification: Performance of NFConvertDAE.convert: time 0.0102/1.04, allocations: 3.43 MB / 0.7847 GB, free: 21.76 MB / 0.573 GB Notification: Performance of FrontEnd - DAE generated: time 4.458e-06/1.04, allocations: 0 / 0.7847 GB, free: 21.76 MB / 0.573 GB Notification: Performance of FrontEnd: time 3.416e-06/1.04, allocations: 0 / 0.7847 GB, free: 21.76 MB / 0.573 GB Notification: Performance of Transformations before backend: time 0.0001363/1.041, allocations: 0.5625 kB / 0.7847 GB, free: 21.76 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.009483/1.05, allocations: 2.91 MB / 0.7876 GB, free: 20.43 MB / 0.573 GB Notification: Performance of prepare preOptimizeDAE: time 5.481e-05/1.05, allocations: 12.41 kB / 0.7876 GB, free: 20.43 MB / 0.573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001126/1.051, allocations: 270.6 kB / 0.7878 GB, free: 20.29 MB / 0.573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002711/1.054, allocations: 1.136 MB / 0.789 GB, free: 19.93 MB / 0.573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001827/1.054, allocations: 166.1 kB / 0.7891 GB, free: 19.92 MB / 0.573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004666/1.055, allocations: 234.5 kB / 0.7893 GB, free: 19.91 MB / 0.573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004878/1.06, allocations: 2.766 MB / 0.792 GB, free: 19.74 MB / 0.573 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.198e-05/1.06, allocations: 1.75 kB / 0.792 GB, free: 19.74 MB / 0.573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002022/1.06, allocations: 90.55 kB / 0.7921 GB, free: 19.74 MB / 0.573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.696e-05/1.06, allocations: 72.02 kB / 0.7922 GB, free: 19.74 MB / 0.573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003821/1.064, allocations: 2.801 MB / 0.7949 GB, free: 19.73 MB / 0.573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01701/1.081, allocations: 12.16 MB / 0.8068 GB, free: 13.14 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004309/1.085, allocations: 2.655 MB / 0.8094 GB, free: 13 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01134/1.096, allocations: 8.254 MB / 0.8175 GB, free: 7.094 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.576e-05/1.097, allocations: 57.73 kB / 0.8175 GB, free: 7.055 MB / 0.573 GB Notification: Performance of pre-optimization done (n=242): time 6.312e-06/1.097, allocations: 0 / 0.8175 GB, free: 7.055 MB / 0.573 GB Notification: Performance of matching and sorting (n=246): time 0.01706/1.114, allocations: 9.801 MB / 0.8271 GB, free: 2.875 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001078/1.114, allocations: 153.5 kB / 0.8272 GB, free: 2.719 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001278/1.115, allocations: 0.9147 MB / 0.8281 GB, free: 2.43 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.000222/1.115, allocations: 64.36 kB / 0.8282 GB, free: 2.398 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004808/1.116, allocations: 0.78 MB / 0.829 GB, free: 1.961 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007076/1.117, allocations: 0.8195 MB / 0.8298 GB, free: 1.352 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001836/1.117, allocations: 46.59 kB / 0.8298 GB, free: 1.352 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0001699/1.117, allocations: 385.1 kB / 0.8302 GB, free: 1.02 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001715/1.119, allocations: 0.9869 MB / 0.8311 GB, free: 0.8789 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001879/1.121, allocations: 1.259 MB / 0.8324 GB, free: 492 kB / 0.573 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.0523/1.173, allocations: 11.55 MB / 0.8436 GB, free: 10.47 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-05/1.173, allocations: 0 / 0.8436 GB, free: 10.47 MB / 0.5886 GB Notification: Performance of matching and sorting (n=276) (initialization): time 0.007932/1.181, allocations: 3.341 MB / 0.8469 GB, free: 8.234 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 2.853e-05/1.181, allocations: 8 kB / 0.8469 GB, free: 8.227 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.986e-05/1.181, allocations: 11.95 kB / 0.8469 GB, free: 8.215 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002468/1.183, allocations: 0.8062 MB / 0.8477 GB, free: 7.566 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001588/1.185, allocations: 370.6 kB / 0.8481 GB, free: 7.234 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01656/1.202, allocations: 11.34 MB / 0.8591 GB, free: 13.89 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002465/1.204, allocations: 145.5 kB / 0.8593 GB, free: 13.79 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000642/1.205, allocations: 99 kB / 0.8594 GB, free: 13.71 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: 26 * 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.001693/1.206, allocations: 462.3 kB / 0.8598 GB, free: 13.44 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006463/1.207, allocations: 169.9 kB / 0.86 GB, free: 13.27 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008033/1.215, allocations: 4.117 MB / 0.864 GB, free: 10.61 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.869e-05/1.215, allocations: 35.23 kB / 0.864 GB, free: 10.58 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.122e-05/1.215, allocations: 8 kB / 0.864 GB, free: 10.57 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.894e-05/1.215, allocations: 15.95 kB / 0.864 GB, free: 10.55 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01224/1.228, allocations: 6.919 MB / 0.8708 GB, free: 5.875 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.172e-05/1.228, allocations: 0 / 0.8708 GB, free: 5.875 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001553/1.229, allocations: 391.6 kB / 0.8712 GB, free: 5.523 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002212/1.231, allocations: 0.6852 MB / 0.8718 GB, free: 4.945 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003224/1.232, allocations: 93.84 kB / 0.8719 GB, free: 4.898 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01214/1.244, allocations: 9.773 MB / 0.8815 GB, free: 12.75 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.991e-06/1.244, allocations: 3.562 kB / 0.8815 GB, free: 12.75 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0111/1.255, allocations: 5.454 MB / 0.8868 GB, free: 8.887 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001057/1.256, allocations: 261.7 kB / 0.8871 GB, free: 8.625 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006357/1.257, allocations: 61.55 kB / 0.8871 GB, free: 8.605 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002019/1.259, allocations: 155 kB / 0.8873 GB, free: 8.488 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005324/1.259, allocations: 214.7 kB / 0.8875 GB, free: 8.309 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003143/1.26, allocations: 94.12 kB / 0.8876 GB, free: 8.234 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.0009964/1.261, allocations: 0.6256 MB / 0.8882 GB, free: 7.758 MB / 0.6198 GB Notification: Performance of sort global known variables: time 3e-07/1.261, allocations: 1.75 kB / 0.8882 GB, free: 7.758 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.005224/1.266, allocations: 1.208 MB / 0.8893 GB, free: 6.727 MB / 0.6198 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.003278/1.269, allocations: 1.483 MB / 0.8908 GB, free: 5.441 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.006751/1.276, allocations: 3.565 MB / 0.8943 GB, free: 2.809 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 7.103e-06/1.276, allocations: 0 / 0.8943 GB, free: 2.809 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0044/1.28, allocations: 2.392 MB / 0.8966 GB, free: 0.9805 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00352/1.284, allocations: 0.5482 MB / 0.8972 GB, free: 0.5547 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009878/1.294, allocations: 5.626 MB / 0.9026 GB, free: 11.56 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001673/1.296, allocations: 1.621 MB / 0.9042 GB, free: 9.93 MB / 0.6355 GB Notification: Performance of simCode: alias equations: time 0.002641/1.298, allocations: 0.5477 MB / 0.9048 GB, free: 9.402 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007462/1.299, allocations: 195.5 kB / 0.9049 GB, free: 9.23 MB / 0.6355 GB Notification: Performance of SimCode: time 1.473e-06/1.299, allocations: 0 / 0.9049 GB, free: 9.23 MB / 0.6355 GB Notification: Performance of Templates: time 0.1097/1.409, allocations: 53.04 MB / 0.9567 GB, free: 4.699 MB / 0.6823 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