Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermofluidStream_OM_adaptions_ThermofluidStream.Topology.Tests.TestDynamicTopology.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.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_OM_adaptions_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_OM_adaptions_ThermofluidStream.Topology.Tests.TestDynamicTopology") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.006795/0.006795, allocations: 172.3 kB / 15.12 MB, free: 6.031 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.73/1.73, 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.001047/0.001047, allocations: 94.84 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.845/0.845, allocations: 90.59 MB / 408.4 MB, free: 14.96 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003203/0.0003204, allocations: 8 kB / 485.2 MB, free: 2.074 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4049/0.4053, allocations: 66.28 MB / 0.5386 GB, free: 45.29 MB / 426.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Topology.Tests.TestDynamicTopology): time 0.8049/1.21, allocations: 424.9 MB / 0.9535 GB, free: 1.438 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.07608/1.286, allocations: 60.74 MB / 1.013 GB, free: 4.574 MB / 0.6823 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.005594/1.292, allocations: 51.69 kB / 1.013 GB, free: 4.523 MB / 0.6823 GB Notification: Performance of NFTyping.typeComponents: time 0.01063/1.303, allocations: 2.672 MB / 1.016 GB, free: 1.84 MB / 0.6823 GB Notification: Performance of NFTyping.typeBindings: time 0.5813/1.884, allocations: 13.71 MB / 1.029 GB, free: 5.691 MB / 0.6823 GB Notification: Performance of NFTyping.typeClassSections: time 0.03477/1.919, allocations: 9.067 MB / 1.038 GB, free: 5.578 MB / 0.6823 GB Notification: Performance of NFFlatten.flatten: time 0.01258/1.931, allocations: 4.34 MB / 1.042 GB, free: 5.574 MB / 0.6823 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004048/1.936, allocations: 1.95 MB / 1.044 GB, free: 21.24 MB / 0.698 GB Notification: Performance of NFEvalConstants.evaluate: time 0.008398/1.944, allocations: 2.572 MB / 1.046 GB, free: 21.21 MB / 0.698 GB Notification: Performance of NFSimplifyModel.simplify: time 0.006142/1.95, allocations: 2.049 MB / 1.048 GB, free: 21.21 MB / 0.698 GB Notification: Performance of NFPackage.collectConstants: time 0.001601/1.952, allocations: 191.9 kB / 1.049 GB, free: 21.21 MB / 0.698 GB Notification: Performance of NFFlatten.collectFunctions: time 0.08321/2.035, allocations: 38.62 MB / 1.086 GB, free: 18.14 MB / 0.698 GB Notification: Performance of NFScalarize.scalarize: time 0.00239/2.038, allocations: 1.21 MB / 1.087 GB, free: 17.84 MB / 0.698 GB Notification: Performance of NFVerifyModel.verify: time 0.002628/2.04, allocations: 1.014 MB / 1.088 GB, free: 17.81 MB / 0.698 GB Notification: Performance of NFConvertDAE.convert: time 0.04602/2.086, allocations: 17.11 MB / 1.105 GB, free: 7.281 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 4.889e-06/2.086, allocations: 0 / 1.105 GB, free: 7.281 MB / 0.698 GB Notification: Performance of FrontEnd: time 3.076e-06/2.086, allocations: 0 / 1.105 GB, free: 7.281 MB / 0.698 GB Notification: Performance of Transformations before backend: time 0.0002867/2.087, allocations: 0 / 1.105 GB, free: 7.281 MB / 0.698 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.0293/2.116, allocations: 9.256 MB / 1.114 GB, free: 14.57 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 4.592e-05/2.116, allocations: 8.031 kB / 1.114 GB, free: 14.56 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002466/2.118, allocations: 0.5057 MB / 1.115 GB, free: 14.05 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00618/2.125, allocations: 2.255 MB / 1.117 GB, free: 12.54 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002799/2.125, allocations: 317.7 kB / 1.117 GB, free: 12.36 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001673/2.127, allocations: 437.1 kB / 1.118 GB, free: 12.08 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01887/2.145, allocations: 7.253 MB / 1.125 GB, free: 7.293 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.376e-05/2.146, allocations: 2.344 kB / 1.125 GB, free: 7.293 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005308/2.146, allocations: 171.8 kB / 1.125 GB, free: 7.258 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005464/2.147, allocations: 404 kB / 1.125 GB, free: 6.93 MB / 0.7136 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01942/2.166, allocations: 8.235 MB / 1.133 GB, free: 1.562 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06608/2.232, allocations: 28 MB / 1.161 GB, free: 9.219 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01475/2.247, allocations: 4.415 MB / 1.165 GB, free: 6.605 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01375/2.261, allocations: 8.087 MB / 1.173 GB, free: 13.26 MB / 0.7605 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001372/2.261, allocations: 82.41 kB / 1.173 GB, free: 13.2 MB / 0.7605 GB Notification: Performance of pre-optimization done (n=491): time 1.786e-05/2.261, allocations: 0 / 1.173 GB, free: 13.2 MB / 0.7605 GB Notification: Performance of matching and sorting (n=495): time 0.04953/2.311, allocations: 20.9 MB / 1.193 GB, free: 14.48 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000105/2.311, allocations: 129.1 kB / 1.193 GB, free: 14.34 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002455/2.313, allocations: 1.646 MB / 1.195 GB, free: 13.08 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 0.001149/2.314, allocations: 103.8 kB / 1.195 GB, free: 13.04 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009808/2.315, allocations: 1.399 MB / 1.197 GB, free: 12.14 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 0.00221/2.318, allocations: 1.649 MB / 1.198 GB, free: 10.71 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003781/2.318, allocations: 74.94 kB / 1.198 GB, free: 10.7 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.0003183/2.318, allocations: 462 kB / 1.199 GB, free: 10.31 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004237/2.323, allocations: 2.687 MB / 1.201 GB, free: 8.699 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004651/2.327, allocations: 2.939 MB / 1.204 GB, free: 6.902 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004895/2.332, allocations: 3.04 MB / 1.207 GB, free: 5.223 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.476e-05/2.332, allocations: 1.203 kB / 1.207 GB, free: 5.223 MB / 0.7761 GB Notification: Performance of matching and sorting (n=503) (initialization): time 0.01501/2.347, allocations: 7.689 MB / 1.215 GB, free: 256 kB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 3.463e-05/2.347, allocations: 7.953 kB / 1.215 GB, free: 248 kB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.826e-05/2.347, allocations: 0 / 1.215 GB, free: 248 kB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007107/2.354, allocations: 1.845 MB / 1.216 GB, free: 14.68 MB / 0.7917 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003626/2.358, allocations: 0.7451 MB / 1.217 GB, free: 14 MB / 0.7917 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01363/2.372, allocations: 11.75 MB / 1.229 GB, free: 4.895 MB / 0.7917 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004405/2.376, allocations: 323.2 kB / 1.229 GB, free: 4.637 MB / 0.7917 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00143/2.378, allocations: 398.8 kB / 1.229 GB, free: 4.301 MB / 0.7917 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): 363 * Array equations: 30 * Algorithm blocks: 0 * Record equations: 4 * 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 {2 4,2 4,2 4,1 5,2 6} Notification: Performance of prepare postOptimizeDAE: time 0.002655/2.38, allocations: 1.118 MB / 1.23 GB, free: 3.684 MB / 0.7917 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009147/2.381, allocations: 318.3 kB / 1.231 GB, free: 3.371 MB / 0.7917 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02081/2.402, allocations: 9.674 MB / 1.24 GB, free: 12.83 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001655/2.402, allocations: 58.11 kB / 1.24 GB, free: 12.78 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.563e-05/2.402, allocations: 8 kB / 1.24 GB, free: 12.77 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.933e-05/2.402, allocations: 27.91 kB / 1.24 GB, free: 12.74 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0299/2.432, allocations: 15.85 MB / 1.256 GB, free: 2.613 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.008e-05/2.432, allocations: 4 kB / 1.256 GB, free: 2.609 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003061/2.435, allocations: 0.7507 MB / 1.257 GB, free: 1.918 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006806/2.442, allocations: 1.881 MB / 1.258 GB, free: 320 kB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009979/2.443, allocations: 217.1 kB / 1.259 GB, free: 176 kB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0138/2.457, allocations: 11.76 MB / 1.27 GB, free: 7.062 MB / 0.823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.891e-06/2.457, allocations: 15.94 kB / 1.27 GB, free: 7.047 MB / 0.823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02/2.477, allocations: 12.43 MB / 1.282 GB, free: 15.14 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001321/2.479, allocations: 369.1 kB / 1.283 GB, free: 14.77 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006022/2.479, allocations: 100.2 kB / 1.283 GB, free: 14.75 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002242/2.481, allocations: 322.3 kB / 1.283 GB, free: 14.49 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007215/2.482, allocations: 425.3 kB / 1.283 GB, free: 14.12 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007251/2.483, allocations: 405 kB / 1.284 GB, free: 13.78 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.001582/2.484, allocations: 1.126 MB / 1.285 GB, free: 12.94 MB / 0.8386 GB Notification: Performance of sort global known variables: time 2.6e-07/2.484, allocations: 0 / 1.285 GB, free: 12.94 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.01554/2.5, allocations: 4.669 MB / 1.289 GB, free: 8.805 MB / 0.8386 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 (416): * Single equations (assignments): 375 * Array equations: 30 * Algorithm blocks: 0 * Record equations: 4 * 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,2 4,1 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.01974/2.52, allocations: 6.259 MB / 1.296 GB, free: 3.23 MB / 0.8386 GB Warning: SimCodeUtil.makeSES_SIMPLE_ASSIGN failed for: {dynamicPressureInflow3.inlet.state.X[1], dynamicPressureInflow3.inlet.state.X[2]} = $TMP_ThermofluidStream_Topology_Tests_TestDynamicTopology_source3_outlet_Medium_ThermodynamicState1.X Warning: SimCodeUtil.makeSES_SIMPLE_ASSIGN failed for: {dynamicPressureInflow1.inlet.state.X[1], dynamicPressureInflow1.inlet.state.X[2]} = $TMP_ThermofluidStream_Topology_Tests_TestDynamicTopology_source1_outlet_Medium_ThermodynamicState283.X Notification: Performance of simCode: created initialization part: time 0.01454/2.534, allocations: 8.061 MB / 1.303 GB, free: 13.8 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 1.03e-05/2.534, allocations: 1.172 kB / 1.303 GB, free: 13.8 MB / 0.8542 GB Warning: SimCodeUtil.makeSES_SIMPLE_ASSIGN failed for: {dynamicPressureInflow1.inlet.state.X[1], dynamicPressureInflow1.inlet.state.X[2]} = $TMP_ThermofluidStream_Topology_Tests_TestDynamicTopology_source1_outlet_Medium_ThermodynamicState579.X Warning: SimCodeUtil.makeSES_SIMPLE_ASSIGN failed for: {dynamicPressureInflow3.inlet.state.X[1], dynamicPressureInflow3.inlet.state.X[2]} = $TMP_ThermofluidStream_Topology_Tests_TestDynamicTopology_source3_outlet_Medium_ThermodynamicState875.X Notification: Performance of simCode: created simulation system equations: time 0.008538/2.543, allocations: 4.817 MB / 1.308 GB, free: 10.54 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00723/2.55, allocations: 1.217 MB / 1.309 GB, free: 9.559 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02132/2.572, allocations: 11.49 MB / 1.32 GB, free: 15.75 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003117/2.575, allocations: 2.901 MB / 1.323 GB, free: 13.07 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 0.00757/2.582, allocations: 1.591 MB / 1.325 GB, free: 11.52 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002296/2.585, allocations: 0.5351 MB / 1.325 GB, free: 11.02 MB / 0.8698 GB Notification: Performance of SimCode: time 1.683e-06/2.585, allocations: 0 / 1.325 GB, free: 11.02 MB / 0.8698 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).