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.01428/0.01428, allocations: 170.7 kB / 15.12 MB, free: 5.477 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.839/1.839, allocations: 205.4 MB / 221.3 MB, free: 13.8 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.001076/0.001076, allocations: 94.84 kB / 269.6 MB, free: 13.33 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.8439/0.8439, allocations: 90.59 MB / 408.4 MB, free: 14.96 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003606/0.0003606, allocations: 8 kB / 485.2 MB, free: 2.078 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4276/0.428, allocations: 66.28 MB / 0.5386 GB, free: 45.64 MB / 426.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Topology.Tests.TestJunctionNM): time 0.6461/1.074, allocations: 276.9 MB / 0.809 GB, free: 4.746 MB / 0.5573 GB Notification: Performance of NFInst.instExpressions: time 0.04338/1.118, allocations: 41.82 MB / 0.8498 GB, free: 2.484 MB / 0.5573 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003866/1.122, allocations: 31.33 kB / 0.8498 GB, free: 2.484 MB / 0.5573 GB Notification: Performance of NFTyping.typeComponents: time 0.006161/1.128, allocations: 1.365 MB / 0.8512 GB, free: 2.121 MB / 0.5573 GB Notification: Performance of NFTyping.typeBindings: time 0.02253/1.15, allocations: 6.355 MB / 0.8574 GB, free: 0.7031 MB / 0.5573 GB Notification: Performance of NFTyping.typeClassSections: time 0.02033/1.171, allocations: 5.32 MB / 0.8626 GB, free: 15.64 MB / 0.573 GB Notification: Performance of NFFlatten.flatten: time 0.004284/1.175, allocations: 1.946 MB / 0.8645 GB, free: 15.48 MB / 0.573 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001229/1.176, allocations: 0.8693 MB / 0.8653 GB, free: 15.2 MB / 0.573 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003812/1.18, allocations: 1.611 MB / 0.8669 GB, free: 14.95 MB / 0.573 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001571/1.182, allocations: 0.939 MB / 0.8678 GB, free: 14.78 MB / 0.573 GB Notification: Performance of NFPackage.collectConstants: time 0.0002072/1.182, allocations: 84.72 kB / 0.8679 GB, free: 14.78 MB / 0.573 GB Notification: Performance of NFFlatten.collectFunctions: time 0.04156/1.223, allocations: 19.58 MB / 0.887 GB, free: 1.625 MB / 0.573 GB Notification: Performance of NFScalarize.scalarize: time 0.001312/1.225, allocations: 0.5578 MB / 0.8876 GB, free: 1.273 MB / 0.573 GB Notification: Performance of NFVerifyModel.verify: time 0.001117/1.226, allocations: 462.5 kB / 0.888 GB, free: 1.008 MB / 0.573 GB Notification: Performance of NFConvertDAE.convert: time 0.0257/1.252, allocations: 8.181 MB / 0.896 GB, free: 10.09 MB / 0.5886 GB Notification: Performance of FrontEnd - DAE generated: time 5.11e-06/1.252, allocations: 0 / 0.896 GB, free: 10.09 MB / 0.5886 GB Notification: Performance of FrontEnd: time 3.717e-06/1.252, allocations: 0 / 0.896 GB, free: 10.09 MB / 0.5886 GB Notification: Performance of Transformations before backend: time 4.171e-05/1.252, allocations: 4 kB / 0.896 GB, free: 10.08 MB / 0.5886 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.01213/1.264, allocations: 4.458 MB / 0.9004 GB, free: 5.797 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 5.1e-05/1.264, allocations: 12.03 kB / 0.9004 GB, free: 5.785 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005828/1.265, allocations: 225.4 kB / 0.9006 GB, free: 5.562 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001786/1.266, allocations: 0.9936 MB / 0.9015 GB, free: 4.816 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001094/1.266, allocations: 146.1 kB / 0.9017 GB, free: 4.734 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002983/1.267, allocations: 196.9 kB / 0.9019 GB, free: 4.605 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004448/1.271, allocations: 3.125 MB / 0.9049 GB, free: 2.516 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.575e-05/1.271, allocations: 0 / 0.9049 GB, free: 2.516 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001742/1.271, allocations: 76.42 kB / 0.905 GB, free: 2.5 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002122/1.272, allocations: 185 kB / 0.9052 GB, free: 2.348 MB / 0.5886 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004302/1.276, allocations: 3.412 MB / 0.9085 GB, free: 72 kB / 0.5886 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01493/1.291, allocations: 12.73 MB / 0.9209 GB, free: 4.41 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002627/1.294, allocations: 1.816 MB / 0.9227 GB, free: 3.281 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003269/1.297, allocations: 3.518 MB / 0.9262 GB, free: 15.2 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.929e-05/1.297, allocations: 49.31 kB / 0.9262 GB, free: 15.16 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=212): time 6.382e-06/1.297, allocations: 4 kB / 0.9262 GB, free: 15.15 MB / 0.6198 GB Notification: Performance of matching and sorting (n=216): time 0.01612/1.313, allocations: 9.47 MB / 0.9355 GB, free: 8.086 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.958e-05/1.313, allocations: 103.1 kB / 0.9356 GB, free: 7.969 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009824/1.314, allocations: 0.7054 MB / 0.9362 GB, free: 7.426 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 0.0001585/1.314, allocations: 59.12 kB / 0.9363 GB, free: 7.391 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004686/1.315, allocations: 0.6543 MB / 0.9369 GB, free: 6.93 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006611/1.316, allocations: 0.7157 MB / 0.9376 GB, free: 6.312 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001214/1.316, allocations: 39.84 kB / 0.9377 GB, free: 6.305 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 0.0001692/1.316, allocations: 375.9 kB / 0.938 GB, free: 5.957 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001716/1.318, allocations: 1.175 MB / 0.9392 GB, free: 5.23 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001785/1.319, allocations: 1.302 MB / 0.9405 GB, free: 4.402 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001848/1.321, allocations: 1.323 MB / 0.9417 GB, free: 3.645 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.229e-06/1.321, allocations: 0 / 0.9417 GB, free: 3.645 MB / 0.6198 GB Notification: Performance of matching and sorting (n=224) (initialization): time 0.005373/1.327, allocations: 3.33 MB / 0.945 GB, free: 1.258 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 2.796e-05/1.327, allocations: 8 kB / 0.945 GB, free: 1.25 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.468e-05/1.327, allocations: 3.984 kB / 0.945 GB, free: 1.246 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001285/1.328, allocations: 449.1 kB / 0.9454 GB, free: 0.8047 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00118/1.329, allocations: 342.8 kB / 0.9458 GB, free: 496 kB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00765/1.337, allocations: 5.947 MB / 0.9516 GB, free: 10.3 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001596/1.338, allocations: 147.5 kB / 0.9517 GB, free: 10.16 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003897/1.339, allocations: 185.3 kB / 0.9519 GB, free: 9.977 MB / 0.6355 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(5,68.0%) 16,(5,68.0%) 16} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001145/1.34, allocations: 0.4976 MB / 0.9524 GB, free: 9.488 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003631/1.34, allocations: 138.4 kB / 0.9525 GB, free: 9.352 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008298/1.349, allocations: 4.287 MB / 0.9567 GB, free: 5.117 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.215e-05/1.349, allocations: 24 kB / 0.9567 GB, free: 5.094 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.399e-05/1.349, allocations: 11.94 kB / 0.9567 GB, free: 5.082 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.478e-05/1.349, allocations: 11.95 kB / 0.9567 GB, free: 5.07 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01244/1.361, allocations: 6.998 MB / 0.9636 GB, free: 14.09 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.526e-05/1.361, allocations: 7.625 kB / 0.9636 GB, free: 14.09 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001227/1.363, allocations: 365 kB / 0.9639 GB, free: 13.75 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001341/1.364, allocations: 473.4 kB / 0.9644 GB, free: 13.28 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002477/1.364, allocations: 107.1 kB / 0.9645 GB, free: 13.18 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008019/1.372, allocations: 5.957 MB / 0.9703 GB, free: 6.973 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.697e-06/1.372, allocations: 6.562 kB / 0.9703 GB, free: 6.969 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009703/1.382, allocations: 5.717 MB / 0.9759 GB, free: 1.207 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007266/1.383, allocations: 215.3 kB / 0.9761 GB, free: 0.9766 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002964/1.383, allocations: 44 kB / 0.9761 GB, free: 0.9336 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001109/1.384, allocations: 150.3 kB / 0.9763 GB, free: 0.7891 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003879/1.385, allocations: 197.7 kB / 0.9765 GB, free: 0.5977 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003712/1.385, allocations: 191.6 kB / 0.9766 GB, free: 424 kB / 0.6511 GB Notification: Performance of sorting global known variables: time 0.0007344/1.386, allocations: 0.4973 MB / 0.9771 GB, free: 15.91 MB / 0.6667 GB Notification: Performance of sort global known variables: time 1.7e-07/1.386, allocations: 0 / 0.9771 GB, free: 15.91 MB / 0.6667 GB Notification: Performance of remove unused functions: time 0.007504/1.393, allocations: 2.323 MB / 0.9794 GB, free: 13.59 MB / 0.6667 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 8 (junctionNM1.junctionN.outlet.m_flow,flowResistance6.inlet.m_flow,flowResistance8.inlet.m_flow,flowResistance9.inlet.m_flow,junctionNM.junctionN.outlet.m_flow,flowResistance1.inlet.m_flow,flowResistance3.inlet.m_flow,flowResistance4.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 (184): * Single equations (assignments): 168 * Array equations: 10 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(5,68.0%) 16,(5,68.0%) 16} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00864/1.402, allocations: 3.183 MB / 0.9825 GB, free: 10.68 MB / 0.6667 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_ThermodynamicState132.X Notification: Performance of simCode: created initialization part: time 0.007661/1.41, allocations: 3.895 MB / 0.9863 GB, free: 6.773 MB / 0.6667 GB Notification: Performance of simCode: created event and clocks part: time 6.963e-06/1.41, allocations: 0 / 0.9863 GB, free: 6.773 MB / 0.6667 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_ThermodynamicState269.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_ThermodynamicState403.X Notification: Performance of simCode: created simulation system equations: time 0.004222/1.414, allocations: 2.467 MB / 0.9887 GB, free: 4.309 MB / 0.6667 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00297/1.417, allocations: 0.5784 MB / 0.9893 GB, free: 3.746 MB / 0.6667 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008293/1.425, allocations: 5.376 MB / 0.9945 GB, free: 14.36 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001329/1.427, allocations: 1.622 MB / 0.9961 GB, free: 12.71 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 0.002768/1.429, allocations: 0.7133 MB / 0.9968 GB, free: 12 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008501/1.43, allocations: 247.3 kB / 0.9971 GB, free: 11.76 MB / 0.6823 GB Notification: Performance of SimCode: time 1.072e-06/1.43, allocations: 4 kB / 0.9971 GB, free: 11.76 MB / 0.6823 GB Error: Internal error Expression.listToArray2: Number of elements in the list does not match the dimension size. Error: Template error: A template call failed (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so: (null)). One possible reason could be that a template imported function call failed (which should not happen for functions called from within template code; templates assert pure 'match'/non-failing semantics).