Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermofluidStream_OM_adaptions_ThermofluidStream.Topology.Tests.TestJunctionNM.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.Topology.Tests.TestJunctionNM,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|junctionNM.splitterN.inlet.m_flow|junctionNM1.splitterN.inlet.m_flow|sink.inlet.m_flow|sink1.inlet.m_flow|sink3.inlet.m_flow|sink4.inlet.m_flow|source.outlet.m_flow|source2.outlet.m_flow",fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream.Topology.Tests.TestJunctionNM") translateModel(ThermofluidStream.Topology.Tests.TestJunctionNM,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|junctionNM.splitterN.inlet.m_flow|junctionNM1.splitterN.inlet.m_flow|sink.inlet.m_flow|sink1.inlet.m_flow|sink3.inlet.m_flow|sink4.inlet.m_flow|source.outlet.m_flow|source2.outlet.m_flow",fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream.Topology.Tests.TestJunctionNM") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008522/0.0008523, allocations: 170.5 kB / 16.11 MB, free: 5.688 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.192/1.192, allocations: 205 MB / 221.9 MB, free: 9.137 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.0007781/0.0007781, allocations: 91.58 kB / 269.9 MB, free: 8.664 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/package.mo): time 0.5863/0.5863, allocations: 90.51 MB / 408.3 MB, free: 3.934 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002834/0.0002834, allocations: 8.219 kB / 484.9 MB, free: 7.207 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2343/0.2346, allocations: 65.8 MB / 0.5377 GB, free: 34.89 MB / 394.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Topology.Tests.TestJunctionNM): time 0.5361/0.7707, allocations: 389.7 MB / 0.9183 GB, free: 13.66 MB / 0.6355 GB Notification: Performance of NFInst.instExpressions: time 0.3328/1.104, allocations: 45.15 MB / 0.9624 GB, free: 1.25 MB / 0.6355 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002021/1.106, allocations: 29.12 kB / 0.9625 GB, free: 1.25 MB / 0.6355 GB Notification: Performance of NFTyping.typeComponents: time 0.003963/1.11, allocations: 1.807 MB / 0.9642 GB, free: 1.242 MB / 0.6355 GB Notification: Performance of NFTyping.typeBindings: time 0.01735/1.127, allocations: 7.471 MB / 0.9715 GB, free: 1.16 MB / 0.6355 GB Notification: Performance of NFTyping.typeClassSections: time 0.01458/1.142, allocations: 5.985 MB / 0.9774 GB, free: 1.082 MB / 0.6355 GB Notification: Performance of NFFlatten.flatten: time 0.005277/1.147, allocations: 5.469 MB / 0.9827 GB, free: 1.078 MB / 0.6355 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001154/1.148, allocations: 0.9953 MB / 0.9837 GB, free: 0.8516 MB / 0.6355 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00425/1.152, allocations: 2.041 MB / 0.9857 GB, free: 0.8242 MB / 0.6355 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001933/1.154, allocations: 1.481 MB / 0.9871 GB, free: 0.8242 MB / 0.6355 GB Notification: Performance of NFPackage.collectConstants: time 0.000169/1.154, allocations: 81.56 kB / 0.9872 GB, free: 0.8242 MB / 0.6355 GB Notification: Performance of NFFlatten.collectFunctions: time 0.04969/1.204, allocations: 25.94 MB / 1.013 GB, free: 0 / 0.6355 GB Notification: Performance of NFScalarize.scalarize: time 0.001792/1.206, allocations: 0.6785 MB / 1.013 GB, free: 0 / 0.6355 GB Notification: Performance of NFVerifyModel.verify: time 0.001838/1.208, allocations: 1.075 MB / 1.014 GB, free: 0 / 0.6355 GB Notification: Performance of NFConvertDAE.convert: time 0.03676/1.245, allocations: 13.67 MB / 1.028 GB, free: 12.32 MB / 0.6511 GB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/1.245, allocations: 5.844 kB / 1.028 GB, free: 12.32 MB / 0.6511 GB Notification: Performance of FrontEnd: time 1.202e-06/1.245, allocations: 2.516 kB / 1.028 GB, free: 12.32 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 2.12e-05/1.245, allocations: 0 / 1.028 GB, free: 12.32 MB / 0.6511 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 506 * Number of variables: 506 Notification: Performance of Generate backend data structure: time 0.009571/1.254, allocations: 4.384 MB / 1.032 GB, free: 9.363 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 4.191e-05/1.254, allocations: 12.02 kB / 1.032 GB, free: 9.352 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000453/1.255, allocations: 229.3 kB / 1.032 GB, free: 9.125 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001235/1.256, allocations: 1.057 MB / 1.033 GB, free: 8.328 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.651e-05/1.256, allocations: 145.9 kB / 1.033 GB, free: 8.246 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002514/1.256, allocations: 193.5 kB / 1.033 GB, free: 8.121 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003826/1.26, allocations: 3.175 MB / 1.037 GB, free: 5.984 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.365e-05/1.26, allocations: 2.906 kB / 1.037 GB, free: 5.984 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001534/1.26, allocations: 73.08 kB / 1.037 GB, free: 5.973 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001727/1.261, allocations: 177.7 kB / 1.037 GB, free: 5.828 MB / 0.6511 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003978/1.265, allocations: 3.456 MB / 1.04 GB, free: 3.512 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01094/1.275, allocations: 12.68 MB / 1.053 GB, free: 7.852 MB / 0.6667 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002369/1.278, allocations: 1.818 MB / 1.054 GB, free: 6.68 MB / 0.6667 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001803/1.28, allocations: 1.615 MB / 1.056 GB, free: 5.07 MB / 0.6667 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00506/1.285, allocations: 7.441 MB / 1.063 GB, free: 12.3 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.172e-05/1.285, allocations: 56.56 kB / 1.063 GB, free: 12.24 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=212): time 5.972e-06/1.285, allocations: 3.984 kB / 1.063 GB, free: 12.24 MB / 0.6823 GB Notification: Performance of matching and sorting (n=216): time 0.01321/1.298, allocations: 9.19 MB / 1.072 GB, free: 2.93 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.824e-05/1.298, allocations: 99.11 kB / 1.072 GB, free: 2.812 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007036/1.299, allocations: 0.7083 MB / 1.073 GB, free: 2.098 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 0.0001281/1.299, allocations: 60.52 kB / 1.073 GB, free: 2.035 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003207/1.299, allocations: 0.6456 MB / 1.074 GB, free: 1.379 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004623/1.3, allocations: 0.7247 MB / 1.074 GB, free: 0.6602 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001142/1.3, allocations: 34.89 kB / 1.074 GB, free: 0.6289 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001198/1.3, allocations: 377.9 kB / 1.075 GB, free: 260 kB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001505/1.301, allocations: 1.182 MB / 1.076 GB, free: 15.07 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001636/1.303, allocations: 1.315 MB / 1.077 GB, free: 13.76 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003421/1.307, allocations: 2.675 MB / 1.08 GB, free: 11.08 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.977e-06/1.307, allocations: 0 / 1.08 GB, free: 11.08 MB / 0.698 GB Notification: Performance of matching and sorting (n=224) (initialization): time 0.004767/1.311, allocations: 3.356 MB / 1.083 GB, free: 7.734 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.724e-05/1.311, allocations: 8 kB / 1.083 GB, free: 7.727 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.356e-06/1.311, allocations: 0 / 1.083 GB, free: 7.727 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001082/1.312, allocations: 462.3 kB / 1.084 GB, free: 7.273 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001075/1.314, allocations: 348.4 kB / 1.084 GB, free: 6.949 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00624/1.32, allocations: 5.801 MB / 1.09 GB, free: 0.9062 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009958/1.321, allocations: 153.1 kB / 1.09 GB, free: 0.7578 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000288/1.321, allocations: 184.2 kB / 1.09 GB, free: 0.582 MB / 0.698 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (172): * Single equations (assignments): 156 * Array equations: 10 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(5,16,68.0%), (5,16,68.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0007631/1.322, allocations: 0.4884 MB / 1.09 GB, free: 108 kB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003519/1.322, allocations: 134.4 kB / 1.09 GB, free: 15.97 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007113/1.329, allocations: 4.278 MB / 1.095 GB, free: 11.75 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.115e-05/1.329, allocations: 7.969 kB / 1.095 GB, free: 11.75 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.581e-06/1.329, allocations: 4 kB / 1.095 GB, free: 11.74 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002998/1.33, allocations: 207.3 kB / 1.095 GB, free: 11.52 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000227/1.33, allocations: 40 kB / 1.095 GB, free: 11.48 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008747/1.331, allocations: 149.2 kB / 1.095 GB, free: 11.34 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003147/1.331, allocations: 225.3 kB / 1.095 GB, free: 11.12 MB / 0.7136 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.006119/1.337, allocations: 3.854 MB / 1.099 GB, free: 7.301 MB / 0.7136 GB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.00661/1.344, allocations: 5.429 MB / 1.104 GB, free: 1.852 MB / 0.7136 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001796/1.346, allocations: 1.553 MB / 1.106 GB, free: 308 kB / 0.7136 GB Notification: Performance of sorting global known variables: time 0.0005314/1.346, allocations: 0.4951 MB / 1.106 GB, free: 15.81 MB / 0.7292 GB Notification: Performance of Backend: time 4.01e-07/1.346, allocations: 0 / 1.106 GB, free: 15.81 MB / 0.7292 GB Warning: SimCodeUtil.makeSES_SIMPLE_ASSIGN failed for: {flowResistance6.inlet.state.X[1], flowResistance6.inlet.state.X[2]} = $TMP_ThermofluidStream_Topology_Tests_TestJunctionNM_source3_outlet_Medium_ThermodynamicState1.X Warning: SimCodeUtil.makeSES_SIMPLE_ASSIGN failed for: {flowResistance1.inlet.state.X[1], flowResistance1.inlet.state.X[2]} = $TMP_ThermofluidStream_Topology_Tests_TestJunctionNM_source1_outlet_Medium_ThermodynamicState137.X Notification: Performance of simCode: created initialization part: time 0.01807/1.364, allocations: 7.562 MB / 1.114 GB, free: 8.688 MB / 0.7292 GB Warning: SimCodeUtil.makeSES_SIMPLE_ASSIGN failed for: {flowResistance1.inlet.state.X[1], flowResistance1.inlet.state.X[2]} = $TMP_ThermofluidStream_Topology_Tests_TestJunctionNM_source1_outlet_Medium_ThermodynamicState541.X Warning: SimCodeUtil.makeSES_SIMPLE_ASSIGN failed for: {flowResistance6.inlet.state.X[1], flowResistance6.inlet.state.X[2]} = $TMP_ThermofluidStream_Topology_Tests_TestJunctionNM_source3_outlet_Medium_ThermodynamicState663.X Notification: Performance of SimCode: time 0.006153/1.37, allocations: 5.321 MB / 1.119 GB, free: 3.32 MB / 0.7292 GB Notification: Performance of Templates: time 0.3288/1.699, allocations: 118.1 MB / 1.234 GB, free: 438.2 MB / 0.823 GB make -j1 -f ThermofluidStream_OM_adaptions_ThermofluidStream.Topology.Tests.TestJunctionNM.makefile (rm -f ThermofluidStream_OM_adaptions_ThermofluidStream.Topology.Tests.TestJunctionNM.pipe ; mkfifo ThermofluidStream_OM_adaptions_ThermofluidStream.Topology.Tests.TestJunctionNM.pipe ; head -c 1048576 < ThermofluidStream_OM_adaptions_ThermofluidStream.Topology.Tests.TestJunctionNM.pipe >> ../files/ThermofluidStream_OM_adaptions_ThermofluidStream.Topology.Tests.TestJunctionNM.sim & ./ThermofluidStream_OM_adaptions_ThermofluidStream.Topology.Tests.TestJunctionNM -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_OM_adaptions_ThermofluidStream.Topology.Tests.TestJunctionNM.pipe 2>&1)