Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.Topology.Tests.TestDynamicTopology.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 dev (/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.Topology.Tests.TestDynamicTopology,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|dynamicJunctionNM.dynamicJunctionN.junction.outlet.m_flow|dynamicJunctionNM1.dynamicJunctionN.junction.outlet.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_ThermofluidStream.Topology.Tests.TestDynamicTopology") translateModel(ThermofluidStream.Topology.Tests.TestDynamicTopology,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|dynamicJunctionNM.dynamicJunctionN.junction.outlet.m_flow|dynamicJunctionNM1.dynamicJunctionN.junction.outlet.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_ThermofluidStream.Topology.Tests.TestDynamicTopology") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001212/0.001212, allocations: 99.86 kB / 15.05 MB, free: 1.105 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.001219/0.00122, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.524/1.524, allocations: 223.2 MB / 239.9 MB, free: 5.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.766/0.766, allocations: 89.6 MB / 380.6 MB, free: 11.46 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000402/0.0004021, allocations: 10.38 kB / 459.9 MB, free: 24.42 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1508/0.1513, allocations: 68.83 MB / 0.5163 GB, free: 11.78 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Topology.Tests.TestDynamicTopology): time 1.272/1.424, allocations: 425.6 MB / 0.932 GB, free: 2.688 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.06518/1.489, allocations: 46.1 MB / 0.977 GB, free: 9.117 MB / 0.6387 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.005908/1.495, allocations: 49.72 kB / 0.977 GB, free: 9.086 MB / 0.6387 GB Notification: Performance of NFTyping.typeComponents: time 0.01156/1.506, allocations: 2.693 MB / 0.9797 GB, free: 6.715 MB / 0.6387 GB Notification: Performance of NFTyping.typeBindings: time 0.04838/1.555, allocations: 13.81 MB / 0.9932 GB, free: 9.504 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.01535/1.57, allocations: 4.472 MB / 0.9975 GB, free: 5.176 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.009577/1.58, allocations: 4.578 MB / 1.002 GB, free: 0.7734 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003694/1.584, allocations: 1.989 MB / 1.004 GB, free: 14.73 MB / 0.67 GB Notification: Performance of NFEvalConstants.evaluate: time 0.007138/1.591, allocations: 2.681 MB / 1.007 GB, free: 12.43 MB / 0.67 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005072/1.596, allocations: 2.178 MB / 1.009 GB, free: 10.68 MB / 0.67 GB Notification: Performance of NFPackage.collectConstants: time 0.001315/1.597, allocations: 200 kB / 1.009 GB, free: 10.49 MB / 0.67 GB Notification: Performance of NFFlatten.collectFunctions: time 0.06201/1.659, allocations: 30.86 MB / 1.039 GB, free: 11.74 MB / 0.7012 GB Notification: Performance of NFScalarize.scalarize: time 0.003161/1.662, allocations: 1.246 MB / 1.04 GB, free: 10.49 MB / 0.7012 GB Notification: Performance of NFVerifyModel.verify: time 0.002463/1.665, allocations: 1.042 MB / 1.041 GB, free: 9.438 MB / 0.7012 GB Notification: Performance of NFConvertDAE.convert: time 0.03649/1.701, allocations: 14.1 MB / 1.055 GB, free: 11.31 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.61e-06/1.701, allocations: 0 / 1.055 GB, free: 11.31 MB / 0.7169 GB Notification: Performance of FrontEnd: time 5.039e-06/1.701, allocations: 4 kB / 1.055 GB, free: 11.31 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 0.000317/1.702, allocations: 0 / 1.055 GB, free: 11.31 MB / 0.7169 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1130 * Number of variables: 1130 Notification: Performance of Generate backend data structure: time 0.02526/1.727, allocations: 8.13 MB / 1.063 GB, free: 3.094 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.88e-05/1.727, allocations: 16.02 kB / 1.063 GB, free: 3.078 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001896/1.729, allocations: 0.5327 MB / 1.063 GB, free: 2.539 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005515/1.735, allocations: 2.42 MB / 1.066 GB, free: 48 kB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002905/1.735, allocations: 312.5 kB / 1.066 GB, free: 15.73 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001189/1.736, allocations: 439.7 kB / 1.067 GB, free: 15.31 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01286/1.749, allocations: 7.116 MB / 1.074 GB, free: 8.102 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.163e-05/1.749, allocations: 0 / 1.074 GB, free: 8.102 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000411/1.749, allocations: 176 kB / 1.074 GB, free: 7.93 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006006/1.75, allocations: 408.6 kB / 1.074 GB, free: 7.523 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01392/1.764, allocations: 8.104 MB / 1.082 GB, free: 15.39 MB / 0.7481 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3402/2.104, allocations: 27.69 MB / 1.109 GB, free: 330.1 MB / 0.7481 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006641/2.111, allocations: 4.243 MB / 1.113 GB, free: 328.2 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 0.005408/2.116, allocations: 8.129 MB / 1.121 GB, free: 319.2 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.719e-05/2.117, allocations: 81.86 kB / 1.121 GB, free: 319.1 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=475): time 1.416e-05/2.117, allocations: 4.688 kB / 1.121 GB, free: 319.1 MB / 0.7481 GB Notification: Performance of matching and sorting (n=479): time 0.04268/2.159, allocations: 19.69 MB / 1.14 GB, free: 309.7 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.981e-05/2.159, allocations: 129.1 kB / 1.141 GB, free: 309.6 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002879/2.162, allocations: 2.104 MB / 1.143 GB, free: 308.8 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 0.001064/2.163, allocations: 102.4 kB / 1.143 GB, free: 308.7 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.000881/2.164, allocations: 1.522 MB / 1.144 GB, free: 307.5 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 0.001929/2.166, allocations: 1.594 MB / 1.146 GB, free: 306.3 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004283/2.167, allocations: 76.7 kB / 1.146 GB, free: 306.2 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0002024/2.167, allocations: 461.7 kB / 1.146 GB, free: 305.8 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004173/2.171, allocations: 2.533 MB / 1.149 GB, free: 304.8 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004528/2.176, allocations: 2.778 MB / 1.151 GB, free: 303.7 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004364/2.18, allocations: 2.876 MB / 1.154 GB, free: 302.3 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.197e-06/2.18, allocations: 0.9844 kB / 1.154 GB, free: 302.3 MB / 0.7481 GB Notification: Performance of matching and sorting (n=491) (initialization): time 0.01229/2.192, allocations: 7.385 MB / 1.161 GB, free: 299.3 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 4.082e-05/2.192, allocations: 3.938 kB / 1.161 GB, free: 299.3 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.991e-05/2.192, allocations: 7.172 kB / 1.161 GB, free: 299.3 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006505/2.199, allocations: 1.786 MB / 1.163 GB, free: 298.7 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003275/2.202, allocations: 0.7056 MB / 1.164 GB, free: 298.5 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01173/2.214, allocations: 11.72 MB / 1.175 GB, free: 289.2 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00415/2.218, allocations: 326.7 kB / 1.176 GB, free: 289 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001413/2.22, allocations: 269.8 kB / 1.176 GB, free: 289 MB / 0.7481 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 (404): * Single equations (assignments): 367 * Array equations: 30 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(5,68.0%) 26,(5,68.0%) 26} * Non-linear torn systems: 5 {1 5,2 4,2 4,1 5,2 6} Notification: Performance of prepare postOptimizeDAE: time 0.003838/2.223, allocations: 1.126 MB / 1.177 GB, free: 288.2 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00185/2.225, allocations: 351.6 kB / 1.177 GB, free: 288 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01931/2.245, allocations: 11 MB / 1.188 GB, free: 282 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000169/2.245, allocations: 54.36 kB / 1.188 GB, free: 282 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.646e-05/2.245, allocations: 8.406 kB / 1.188 GB, free: 282 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.649e-05/2.245, allocations: 23.91 kB / 1.188 GB, free: 282 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03246/2.277, allocations: 15.11 MB / 1.203 GB, free: 266.9 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.354e-05/2.278, allocations: 3.938 kB / 1.203 GB, free: 266.9 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002994/2.281, allocations: 0.6865 MB / 1.204 GB, free: 266.3 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006762/2.287, allocations: 1.822 MB / 1.205 GB, free: 264.4 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001267/2.289, allocations: 172.2 kB / 1.206 GB, free: 264.3 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01341/2.302, allocations: 11.74 MB / 1.217 GB, free: 252.2 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.479e-06/2.302, allocations: 0 / 1.217 GB, free: 252.2 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0312/2.333, allocations: 11.65 MB / 1.228 GB, free: 240.5 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002201/2.336, allocations: 440.6 kB / 1.229 GB, free: 240 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002065/2.338, allocations: 92.62 kB / 1.229 GB, free: 239.9 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005135/2.343, allocations: 318.2 kB / 1.229 GB, free: 239.7 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001713/2.345, allocations: 374.8 kB / 1.23 GB, free: 239.3 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00129/2.346, allocations: 269.9 kB / 1.23 GB, free: 239 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.002874/2.349, allocations: 1.524 MB / 1.231 GB, free: 237.5 MB / 0.7481 GB Notification: Performance of sort global known variables: time 4.81e-07/2.349, allocations: 0 / 1.231 GB, free: 237.5 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.01383/2.363, allocations: 3.448 MB / 1.235 GB, free: 234.4 MB / 0.7481 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 8 (dynamicJunctionNM1.dynamicSplitterN.nozzle_in.inlet.m_flow,dynamicPressureInflow3.inlet.m_flow,dynamicPressureOutflow4.inlet.m_flow,dynamicPressureOutflow5.inlet.m_flow,dynamicJunctionNM.dynamicSplitterN.nozzle_in.inlet.m_flow,dynamicPressureInflow1.inlet.m_flow,dynamicPressureOutflow1.inlet.m_flow,dynamicPressureOutflow2.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 (400): * Single equations (assignments): 363 * Array equations: 30 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(5,68.0%) 26,(5,68.0%) 26} * Non-linear torn systems: 5 {1 5,2 4,2 4,1 5,2 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.01321/2.376, allocations: 4.029 MB / 1.239 GB, free: 231.4 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.01352/2.389, allocations: 7.389 MB / 1.246 GB, free: 224 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 6.202e-06/2.389, allocations: 0 / 1.246 GB, free: 224 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.00723/2.397, allocations: 4.312 MB / 1.25 GB, free: 219.6 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007337/2.404, allocations: 1.345 MB / 1.251 GB, free: 218.4 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01991/2.424, allocations: 11.63 MB / 1.263 GB, free: 206.8 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003006/2.427, allocations: 2.953 MB / 1.266 GB, free: 203.8 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 0.007251/2.434, allocations: 2.368 MB / 1.268 GB, free: 201.6 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002351/2.437, allocations: 415.2 kB / 1.268 GB, free: 201.2 MB / 0.7481 GB Notification: Performance of SimCode: time 1.824e-06/2.437, allocations: 0 / 1.268 GB, free: 201.2 MB / 0.7481 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).