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: "" <> buildModelFMU(ThermofluidStream.Topology.Tests.TestJunctionNM,fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream_Topology_Tests_TestJunctionNM",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Topology.Tests.TestJunctionNM,fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream_Topology_Tests_TestJunctionNM",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.01067/0.01067, allocations: 169.2 kB / 15.12 MB, free: 5.559 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.716/1.716, allocations: 205.4 MB / 221.3 MB, free: 13.7 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.001289/0.001289, allocations: 90.84 kB / 269.6 MB, free: 13.23 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.7738/0.7738, allocations: 90.59 MB / 408.4 MB, free: 14.98 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003173/0.0003173, allocations: 11.98 kB / 485.3 MB, free: 2 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3947/0.3951, allocations: 66.27 MB / 0.5386 GB, free: 45.71 MB / 426.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Topology.Tests.TestJunctionNM): time 0.7221/1.117, allocations: 276.9 MB / 0.8091 GB, free: 4.887 MB / 0.5573 GB Notification: Performance of NFInst.instExpressions: time 0.04725/1.165, allocations: 41.83 MB / 0.8499 GB, free: 2.621 MB / 0.5573 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002634/1.167, allocations: 30.53 kB / 0.8499 GB, free: 2.617 MB / 0.5573 GB Notification: Performance of NFTyping.typeComponents: time 0.004502/1.172, allocations: 1.369 MB / 0.8513 GB, free: 2.258 MB / 0.5573 GB Notification: Performance of NFTyping.typeBindings: time 0.02376/1.196, allocations: 6.351 MB / 0.8575 GB, free: 0.8398 MB / 0.5573 GB Notification: Performance of NFTyping.typeClassSections: time 0.01736/1.213, allocations: 5.309 MB / 0.8627 GB, free: 15.72 MB / 0.573 GB Notification: Performance of NFFlatten.flatten: time 0.00413/1.217, allocations: 1.947 MB / 0.8646 GB, free: 15.56 MB / 0.573 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001473/1.219, allocations: 0.8732 MB / 0.8654 GB, free: 15.29 MB / 0.573 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004312/1.223, allocations: 1.609 MB / 0.867 GB, free: 15.03 MB / 0.573 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002361/1.225, allocations: 0.9289 MB / 0.8679 GB, free: 14.87 MB / 0.573 GB Notification: Performance of NFPackage.collectConstants: time 0.0005438/1.226, allocations: 83.31 kB / 0.868 GB, free: 14.87 MB / 0.573 GB Notification: Performance of NFFlatten.collectFunctions: time 0.04152/1.267, allocations: 19.59 MB / 0.8871 GB, free: 1.719 MB / 0.573 GB Notification: Performance of NFScalarize.scalarize: time 0.001302/1.269, allocations: 0.555 MB / 0.8876 GB, free: 1.367 MB / 0.573 GB Notification: Performance of NFVerifyModel.verify: time 0.001362/1.27, allocations: 461.7 kB / 0.8881 GB, free: 1.102 MB / 0.573 GB Notification: Performance of NFConvertDAE.convert: time 0.02298/1.293, allocations: 8.18 MB / 0.8961 GB, free: 10.18 MB / 0.5886 GB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/1.293, allocations: 0 / 0.8961 GB, free: 10.18 MB / 0.5886 GB Notification: Performance of FrontEnd: time 5.51e-06/1.293, allocations: 4 kB / 0.8961 GB, free: 10.18 MB / 0.5886 GB Notification: Performance of Transformations before backend: time 6.682e-05/1.293, allocations: 0 / 0.8961 GB, free: 10.18 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.01298/1.306, allocations: 4.462 MB / 0.9004 GB, free: 5.887 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 4.97e-05/1.306, allocations: 8.031 kB / 0.9004 GB, free: 5.879 MB / 0.5886 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000707/1.307, allocations: 280.3 kB / 0.9007 GB, free: 5.715 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005441/1.308, allocations: 227.7 kB / 0.9009 GB, free: 5.492 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001904/1.31, allocations: 0.9959 MB / 0.9019 GB, free: 4.742 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001059/1.31, allocations: 141.1 kB / 0.902 GB, free: 4.664 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003156/1.31, allocations: 200.8 kB / 0.9022 GB, free: 4.535 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004398/1.314, allocations: 3.122 MB / 0.9053 GB, free: 2.445 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.497e-05/1.314, allocations: 4 kB / 0.9053 GB, free: 2.441 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001732/1.315, allocations: 75.83 kB / 0.9054 GB, free: 2.426 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002211/1.315, allocations: 173.4 kB / 0.9055 GB, free: 2.285 MB / 0.5886 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004321/1.319, allocations: 3.426 MB / 0.9089 GB, free: 0 / 0.5886 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01563/1.335, allocations: 12.73 MB / 0.9213 GB, free: 4.336 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002808/1.338, allocations: 1.814 MB / 0.9231 GB, free: 3.211 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00316/1.341, allocations: 3.517 MB / 0.9265 GB, free: 15.13 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.559e-05/1.341, allocations: 60.73 kB / 0.9266 GB, free: 15.07 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=212): time 5.691e-06/1.341, allocations: 0 / 0.9266 GB, free: 15.07 MB / 0.6198 GB Notification: Performance of matching and sorting (n=216): time 0.01575/1.357, allocations: 9.468 MB / 0.9358 GB, free: 8.012 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.609e-05/1.357, allocations: 103.1 kB / 0.9359 GB, free: 7.895 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008616/1.358, allocations: 0.7046 MB / 0.9366 GB, free: 7.352 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 0.0001922/1.358, allocations: 55.02 kB / 0.9366 GB, free: 7.316 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003687/1.358, allocations: 0.6496 MB / 0.9373 GB, free: 6.863 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006044/1.359, allocations: 0.7232 MB / 0.938 GB, free: 6.242 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001213/1.359, allocations: 34.56 kB / 0.938 GB, free: 6.234 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 0.0001649/1.359, allocations: 374.2 kB / 0.9384 GB, free: 5.891 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001549/1.361, allocations: 1.183 MB / 0.9395 GB, free: 5.156 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001752/1.362, allocations: 1.294 MB / 0.9408 GB, free: 4.332 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001897/1.364, allocations: 1.326 MB / 0.9421 GB, free: 3.574 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.548e-06/1.364, allocations: 0 / 0.9421 GB, free: 3.574 MB / 0.6198 GB Notification: Performance of matching and sorting (n=224) (initialization): time 0.005433/1.37, allocations: 3.333 MB / 0.9453 GB, free: 1.004 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 2.362e-05/1.37, allocations: 8 kB / 0.9454 GB, free: 0.9961 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.135e-05/1.37, allocations: 0 / 0.9454 GB, free: 0.9961 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001251/1.371, allocations: 449.1 kB / 0.9458 GB, free: 0.5547 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001097/1.372, allocations: 346.2 kB / 0.9461 GB, free: 236 kB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007733/1.38, allocations: 5.936 MB / 0.9519 GB, free: 10.05 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001746/1.382, allocations: 151.5 kB / 0.9521 GB, free: 9.906 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004369/1.382, allocations: 179.9 kB / 0.9522 GB, free: 9.73 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.001181/1.383, allocations: 0.5 MB / 0.9527 GB, free: 9.238 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003683/1.384, allocations: 138.3 kB / 0.9528 GB, free: 9.102 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008555/1.392, allocations: 4.288 MB / 0.957 GB, free: 4.863 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.466e-05/1.393, allocations: 31.98 kB / 0.9571 GB, free: 4.832 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.607e-05/1.393, allocations: 8 kB / 0.9571 GB, free: 4.824 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.912e-05/1.393, allocations: 11.95 kB / 0.9571 GB, free: 4.812 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01187/1.404, allocations: 6.996 MB / 0.9639 GB, free: 13.83 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.552e-05/1.405, allocations: 11.02 kB / 0.9639 GB, free: 13.82 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001156/1.406, allocations: 360.2 kB / 0.9643 GB, free: 13.49 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00128/1.407, allocations: 480 kB / 0.9647 GB, free: 13.02 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002238/1.407, allocations: 105.9 kB / 0.9648 GB, free: 12.91 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007654/1.415, allocations: 5.952 MB / 0.9706 GB, free: 6.715 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.018e-06/1.415, allocations: 3.188 kB / 0.9706 GB, free: 6.715 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009341/1.424, allocations: 5.732 MB / 0.9762 GB, free: 0.9336 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006685/1.425, allocations: 211 kB / 0.9764 GB, free: 0.7109 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002599/1.425, allocations: 46.89 kB / 0.9765 GB, free: 0.668 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00117/1.426, allocations: 151.5 kB / 0.9766 GB, free: 0.5195 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000405/1.427, allocations: 204.1 kB / 0.9768 GB, free: 336 kB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003513/1.427, allocations: 187.9 kB / 0.977 GB, free: 148 kB / 0.6511 GB Notification: Performance of sorting global known variables: time 0.000699/1.428, allocations: 0.4912 MB / 0.9775 GB, free: 15.65 MB / 0.6667 GB Notification: Performance of sort global known variables: time 2.01e-07/1.428, allocations: 4 kB / 0.9775 GB, free: 15.64 MB / 0.6667 GB Notification: Performance of remove unused functions: time 0.007656/1.436, allocations: 2.322 MB / 0.9798 GB, free: 13.32 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.0191/1.455, allocations: 10.91 MB / 0.9904 GB, free: 2.531 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.007651/1.462, allocations: 3.891 MB / 0.9942 GB, free: 14.63 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 7.073e-06/1.462, allocations: 0 / 0.9942 GB, free: 14.63 MB / 0.6823 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.004378/1.467, allocations: 2.469 MB / 0.9966 GB, free: 12.16 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003077/1.47, allocations: 0.5777 MB / 0.9972 GB, free: 11.59 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2988/1.769, allocations: 15.22 MB / 1.012 GB, free: 282.2 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001422/1.77, allocations: 1.624 MB / 1.014 GB, free: 281.4 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 0.003232/1.773, allocations: 0.7115 MB / 1.014 GB, free: 281.4 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001979/1.775, allocations: 0.8473 MB / 1.015 GB, free: 281.4 MB / 0.6823 GB Notification: Performance of SimCode: time 5.641e-06/1.776, allocations: 2.469 kB / 1.015 GB, free: 281.4 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/jenkins1/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).