Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.Processes.Tests.Nozzle.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.Processes.Tests.Nozzle,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|nozzle.inlet.m_flow|nozzle1.inlet.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.Processes.Tests.Nozzle") translateModel(ThermofluidStream.Processes.Tests.Nozzle,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|nozzle.inlet.m_flow|nozzle1.inlet.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.Processes.Tests.Nozzle") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001226/0.001226, allocations: 100.1 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.001495/0.001495, allocations: 177.3 kB / 15.94 MB, free: 220 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.372/1.372, allocations: 223.2 MB / 239.9 MB, free: 5.457 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.7582/0.7582, allocations: 89.61 MB / 380.6 MB, free: 11.45 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004066/0.0004067, allocations: 19.11 kB / 459.9 MB, free: 24.51 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1505/0.1509, allocations: 68.82 MB / 0.5163 GB, free: 11.78 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Processes.Tests.Nozzle): time 0.5228/0.6738, allocations: 203.7 MB / 0.7152 GB, free: 14.54 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.0165/0.6903, allocations: 12.91 MB / 0.7278 GB, free: 1.602 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00131/0.6917, allocations: 11.94 kB / 0.7279 GB, free: 1.59 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.002164/0.6938, allocations: 0.6767 MB / 0.7285 GB, free: 0.9062 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.01347/0.7073, allocations: 4.024 MB / 0.7324 GB, free: 12.87 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.005835/0.7132, allocations: 1.715 MB / 0.7341 GB, free: 11.16 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.002309/0.7155, allocations: 1.046 MB / 0.7351 GB, free: 10.11 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005091/0.716, allocations: 292.2 kB / 0.7354 GB, free: 9.816 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001934/0.718, allocations: 0.8571 MB / 0.7363 GB, free: 8.957 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006843/0.7187, allocations: 485.9 kB / 0.7367 GB, free: 8.48 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 9.417e-05/0.7188, allocations: 48 kB / 0.7368 GB, free: 8.434 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.02128/0.7401, allocations: 9.117 MB / 0.7457 GB, free: 15.3 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0006293/0.7408, allocations: 275.1 kB / 0.7459 GB, free: 15.04 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0005304/0.7413, allocations: 241.1 kB / 0.7462 GB, free: 14.79 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.01167/0.753, allocations: 3.602 MB / 0.7497 GB, free: 11.18 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 4.909e-06/0.753, allocations: 0 / 0.7497 GB, free: 11.18 MB / 0.5606 GB Notification: Performance of FrontEnd: time 2.775e-06/0.7531, allocations: 0 / 0.7497 GB, free: 11.18 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 2.064e-05/0.7531, allocations: 0 / 0.7497 GB, free: 11.18 MB / 0.5606 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 246 * Number of variables: 246 Notification: Performance of Generate backend data structure: time 0.006292/0.7594, allocations: 2.26 MB / 0.7519 GB, free: 8.871 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.565e-05/0.7594, allocations: 12.03 kB / 0.7519 GB, free: 8.859 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002685/0.7597, allocations: 126.5 kB / 0.752 GB, free: 8.734 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009344/0.7607, allocations: 0.5919 MB / 0.7526 GB, free: 8.102 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.055e-05/0.7607, allocations: 69.92 kB / 0.7527 GB, free: 8.031 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001331/0.7609, allocations: 103.9 kB / 0.7528 GB, free: 7.93 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001891/0.7628, allocations: 1.346 MB / 0.7541 GB, free: 6.566 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.666e-05/0.7628, allocations: 0 / 0.7541 GB, free: 6.566 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.315e-05/0.7629, allocations: 43.92 kB / 0.7541 GB, free: 6.523 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001299/0.763, allocations: 89.91 kB / 0.7542 GB, free: 6.438 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001966/0.765, allocations: 1.491 MB / 0.7557 GB, free: 4.941 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006613/0.7716, allocations: 5.182 MB / 0.7607 GB, free: 15.28 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001428/0.7731, allocations: 0.845 MB / 0.7616 GB, free: 14.41 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002078/0.7752, allocations: 2.414 MB / 0.7639 GB, free: 11.48 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.212e-05/0.7752, allocations: 47.67 kB / 0.764 GB, free: 11.43 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=114): time 5.42e-06/0.7753, allocations: 0 / 0.764 GB, free: 11.43 MB / 0.5762 GB Notification: Performance of matching and sorting (n=114): time 0.003932/0.7792, allocations: 2.05 MB / 0.766 GB, free: 9.328 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.524e-05/0.7793, allocations: 90.23 kB / 0.766 GB, free: 9.223 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007884/0.7801, allocations: 0.6098 MB / 0.7666 GB, free: 8.605 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 8.115e-05/0.7802, allocations: 41.7 kB / 0.7667 GB, free: 8.559 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002921/0.7805, allocations: 392.9 kB / 0.7671 GB, free: 8.168 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003402/0.7808, allocations: 386.3 kB / 0.7674 GB, free: 7.785 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.473e-05/0.7809, allocations: 16 kB / 0.7674 GB, free: 7.77 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001364/0.781, allocations: 341.9 kB / 0.7678 GB, free: 7.43 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000668/0.7817, allocations: 461.8 kB / 0.7682 GB, free: 6.98 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007187/0.7824, allocations: 0.5123 MB / 0.7687 GB, free: 6.465 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008882/0.7833, allocations: 0.5081 MB / 0.7692 GB, free: 5.953 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.428e-06/0.7833, allocations: 3.938 kB / 0.7692 GB, free: 5.949 MB / 0.5762 GB Notification: Performance of matching and sorting (n=118) (initialization): time 0.002367/0.7857, allocations: 1.344 MB / 0.7705 GB, free: 4.594 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.337e-05/0.7857, allocations: 4 kB / 0.7705 GB, free: 4.59 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.118e-05/0.7858, allocations: 4 kB / 0.7705 GB, free: 4.586 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004651/0.7862, allocations: 117.6 kB / 0.7706 GB, free: 4.465 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006846/0.7869, allocations: 179.8 kB / 0.7708 GB, free: 4.289 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003237/0.7902, allocations: 3.16 MB / 0.7739 GB, free: 0.8594 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008291/0.791, allocations: 87.22 kB / 0.774 GB, free: 0.7734 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001645/0.7912, allocations: 71.94 kB / 0.774 GB, free: 0.7031 MB / 0.5762 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 (108): * Single equations (assignments): 98 * Array equations: 8 * Algorithm blocks: 0 * Record equations: 0 * 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 {(1,100.0%) 5,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005256/0.7917, allocations: 265.6 kB / 0.7743 GB, free: 444 kB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002066/0.7919, allocations: 90.88 kB / 0.7744 GB, free: 352 kB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003584/0.7955, allocations: 2.035 MB / 0.7764 GB, free: 14.27 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.719e-05/0.7956, allocations: 19.95 kB / 0.7764 GB, free: 14.25 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.693e-06/0.7956, allocations: 4 kB / 0.7764 GB, free: 14.25 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.371e-05/0.7956, allocations: 7.969 kB / 0.7764 GB, free: 14.24 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004412/0.8, allocations: 2.926 MB / 0.7793 GB, free: 11.25 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.793e-06/0.8001, allocations: 0 / 0.7793 GB, free: 11.25 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006236/0.8007, allocations: 175.7 kB / 0.7794 GB, free: 11.07 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000413/0.8011, allocations: 129.5 kB / 0.7795 GB, free: 10.94 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.074e-05/0.8012, allocations: 48.02 kB / 0.7796 GB, free: 10.89 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002681/0.8039, allocations: 3.148 MB / 0.7827 GB, free: 7.48 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.717e-06/0.8039, allocations: 4.031 kB / 0.7827 GB, free: 7.477 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003462/0.8074, allocations: 2.214 MB / 0.7848 GB, free: 5.219 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004627/0.8079, allocations: 199.7 kB / 0.785 GB, free: 5.004 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001368/0.808, allocations: 16 kB / 0.785 GB, free: 4.988 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005695/0.8086, allocations: 59.73 kB / 0.7851 GB, free: 4.93 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001584/0.8087, allocations: 84.94 kB / 0.7852 GB, free: 4.844 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001311/0.8089, allocations: 67.91 kB / 0.7852 GB, free: 4.777 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0007219/0.8096, allocations: 475 kB / 0.7857 GB, free: 4.32 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.41e-07/0.8096, allocations: 0 / 0.7857 GB, free: 4.32 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.003503/0.8131, allocations: 0.9869 MB / 0.7867 GB, free: 3.332 MB / 0.5919 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (dynamicPressureOutflow1.inlet.m_flow,dynamicPressureOutflow.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 (102): * Single equations (assignments): 92 * Array equations: 8 * Algorithm blocks: 0 * Record equations: 0 * 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 {(1,100.0%) 5,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003421/0.8166, allocations: 1.243 MB / 0.7879 GB, free: 2.082 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.003417/0.82, allocations: 1.57 MB / 0.7894 GB, free: 500 kB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 7.695e-06/0.82, allocations: 0 / 0.7894 GB, free: 500 kB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.001551/0.8216, allocations: 0.9838 MB / 0.7904 GB, free: 15.47 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001841/0.8234, allocations: 338.4 kB / 0.7907 GB, free: 15.15 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004389/0.8278, allocations: 2.475 MB / 0.7931 GB, free: 12.64 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007068/0.8286, allocations: 1.097 MB / 0.7942 GB, free: 11.52 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.001474/0.8301, allocations: 0.5013 MB / 0.7947 GB, free: 11.02 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002813/0.8304, allocations: 107.4 kB / 0.7948 GB, free: 10.91 MB / 0.6075 GB Notification: Performance of SimCode: time 9.02e-07/0.8304, allocations: 7.938 kB / 0.7948 GB, free: 10.9 MB / 0.6075 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).