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: "" <> buildModelFMU(ThermofluidStream.Processes.Tests.Nozzle,fileNamePrefix="ThermofluidStream_ThermofluidStream_Processes_Tests_Nozzle",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Processes.Tests.Nozzle,fileNamePrefix="ThermofluidStream_ThermofluidStream_Processes_Tests_Nozzle",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001258/0.001258, allocations: 99.55 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.001567/0.001567, 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.459/1.459, 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.8006/0.8006, allocations: 89.65 MB / 380.6 MB, free: 11.41 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000409/0.0004092, allocations: 12.94 kB / 460 MB, free: 24.32 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1497/0.1502, allocations: 68.84 MB / 0.5165 GB, free: 11.62 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Processes.Tests.Nozzle): time 0.6301/0.7803, allocations: 203.7 MB / 0.7154 GB, free: 14.41 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.01741/0.7977, allocations: 12.9 MB / 0.728 GB, free: 1.484 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001473/0.7993, allocations: 15.88 kB / 0.728 GB, free: 1.469 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.002401/0.8017, allocations: 0.6767 MB / 0.7287 GB, free: 0.7852 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.01349/0.8152, allocations: 4.02 MB / 0.7326 GB, free: 12.75 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.006197/0.8214, allocations: 1.731 MB / 0.7343 GB, free: 11.02 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.002387/0.8238, allocations: 1.042 MB / 0.7353 GB, free: 9.977 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000505/0.8243, allocations: 283.3 kB / 0.7356 GB, free: 9.695 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002176/0.8265, allocations: 0.8571 MB / 0.7364 GB, free: 8.836 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00071/0.8273, allocations: 485.9 kB / 0.7369 GB, free: 8.359 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 9.41e-05/0.8274, allocations: 48 kB / 0.7369 GB, free: 8.312 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.02127/0.8486, allocations: 9.121 MB / 0.7458 GB, free: 15.18 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0006532/0.8493, allocations: 279.1 kB / 0.7461 GB, free: 14.91 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0005229/0.8499, allocations: 237.1 kB / 0.7463 GB, free: 14.67 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0101/0.86, allocations: 3.602 MB / 0.7498 GB, free: 11.06 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 4.629e-06/0.86, allocations: 0 / 0.7498 GB, free: 11.06 MB / 0.5606 GB Notification: Performance of FrontEnd: time 2.304e-06/0.86, allocations: 4 kB / 0.7498 GB, free: 11.05 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 1.574e-05/0.8601, allocations: 0 / 0.7498 GB, free: 11.05 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.006181/0.8663, allocations: 2.256 MB / 0.752 GB, free: 8.746 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 5.841e-05/0.8663, allocations: 12.03 kB / 0.752 GB, free: 8.734 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002327/0.8666, allocations: 152 kB / 0.7522 GB, free: 8.578 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002069/0.8668, allocations: 126.5 kB / 0.7523 GB, free: 8.453 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009794/0.8678, allocations: 0.588 MB / 0.7529 GB, free: 7.824 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.704e-05/0.8678, allocations: 73.97 kB / 0.753 GB, free: 7.75 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001378/0.868, allocations: 99.89 kB / 0.753 GB, free: 7.652 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001928/0.8699, allocations: 1.346 MB / 0.7544 GB, free: 6.289 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.133e-05/0.8699, allocations: 0 / 0.7544 GB, free: 6.289 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.708e-05/0.8701, allocations: 43.92 kB / 0.7544 GB, free: 6.246 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001249/0.8702, allocations: 89.91 kB / 0.7545 GB, free: 6.16 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001981/0.8722, allocations: 1.491 MB / 0.7559 GB, free: 4.664 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006617/0.8788, allocations: 5.183 MB / 0.761 GB, free: 15 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001469/0.8803, allocations: 0.8528 MB / 0.7618 GB, free: 14.13 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002148/0.8825, allocations: 2.418 MB / 0.7642 GB, free: 11.2 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.603e-05/0.8825, allocations: 47.69 kB / 0.7642 GB, free: 11.14 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=114): time 3.787e-06/0.8825, allocations: 4 kB / 0.7643 GB, free: 11.14 MB / 0.5762 GB Notification: Performance of matching and sorting (n=114): time 0.00387/0.8864, allocations: 2.046 MB / 0.7662 GB, free: 9.039 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.502e-05/0.8865, allocations: 90.23 kB / 0.7663 GB, free: 8.934 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007814/0.8873, allocations: 0.6098 MB / 0.7669 GB, free: 8.316 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 8.254e-05/0.8874, allocations: 41.7 kB / 0.767 GB, free: 8.27 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002945/0.8877, allocations: 396.9 kB / 0.7673 GB, free: 7.875 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003302/0.888, allocations: 382.3 kB / 0.7677 GB, free: 7.496 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.997e-05/0.8881, allocations: 23.98 kB / 0.7677 GB, free: 7.473 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001518/0.8882, allocations: 342 kB / 0.7681 GB, free: 7.133 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006826/0.8889, allocations: 453.8 kB / 0.7685 GB, free: 6.691 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000758/0.8897, allocations: 0.5162 MB / 0.769 GB, free: 6.172 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007992/0.8905, allocations: 0.5042 MB / 0.7695 GB, free: 5.668 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.248e-06/0.8905, allocations: 0 / 0.7695 GB, free: 5.668 MB / 0.5762 GB Notification: Performance of matching and sorting (n=118) (initialization): time 0.002339/0.8928, allocations: 1.34 MB / 0.7708 GB, free: 4.312 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.884e-05/0.8929, allocations: 15.92 kB / 0.7708 GB, free: 4.297 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.899e-06/0.8929, allocations: 0 / 0.7708 GB, free: 4.297 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004837/0.8934, allocations: 121.6 kB / 0.7709 GB, free: 4.172 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007021/0.8941, allocations: 183.8 kB / 0.7711 GB, free: 3.992 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002965/0.8971, allocations: 3.156 MB / 0.7742 GB, free: 0.5664 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007636/0.8979, allocations: 95.2 kB / 0.7743 GB, free: 484 kB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001656/0.898, allocations: 63.97 kB / 0.7743 GB, free: 420 kB / 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.0004903/0.8985, allocations: 257.6 kB / 0.7746 GB, free: 152 kB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001861/0.8987, allocations: 94.86 kB / 0.7747 GB, free: 56 kB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003674/0.9024, allocations: 2.028 MB / 0.7767 GB, free: 14 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.691e-05/0.9025, allocations: 15.95 kB / 0.7767 GB, free: 13.98 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.724e-06/0.9025, allocations: 7.938 kB / 0.7767 GB, free: 13.97 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.503e-05/0.9025, allocations: 11.95 kB / 0.7767 GB, free: 13.96 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004561/0.9071, allocations: 2.926 MB / 0.7795 GB, free: 10.96 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.606e-06/0.9071, allocations: 3.938 kB / 0.7796 GB, free: 10.96 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006815/0.9078, allocations: 171.8 kB / 0.7797 GB, free: 10.79 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004408/0.9082, allocations: 137.5 kB / 0.7798 GB, free: 10.65 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.481e-05/0.9083, allocations: 35.97 kB / 0.7799 GB, free: 10.61 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002857/0.9112, allocations: 3.156 MB / 0.783 GB, free: 7.191 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.749e-06/0.9112, allocations: 7.984 kB / 0.783 GB, free: 7.184 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003509/0.9147, allocations: 2.21 MB / 0.7851 GB, free: 4.934 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004466/0.9152, allocations: 191.7 kB / 0.7853 GB, free: 4.727 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001422/0.9154, allocations: 23.98 kB / 0.7853 GB, free: 4.703 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005491/0.9159, allocations: 51.8 kB / 0.7854 GB, free: 4.652 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001766/0.9161, allocations: 100.9 kB / 0.7855 GB, free: 4.551 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001257/0.9162, allocations: 59.97 kB / 0.7855 GB, free: 4.492 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0006262/0.9169, allocations: 479 kB / 0.786 GB, free: 4.031 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.8e-07/0.9169, allocations: 0 / 0.786 GB, free: 4.031 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.003126/0.92, allocations: 0.9752 MB / 0.7869 GB, free: 3.055 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.007747/0.9278, allocations: 4.78 MB / 0.7916 GB, free: 14.14 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.002993/0.9308, allocations: 1.566 MB / 0.7931 GB, free: 12.54 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 6.082e-06/0.9308, allocations: 0 / 0.7931 GB, free: 12.54 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.001568/0.9324, allocations: 0.9838 MB / 0.7941 GB, free: 11.54 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002052/0.9345, allocations: 347.5 kB / 0.7944 GB, free: 11.2 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01262/0.9471, allocations: 7.453 MB / 0.8017 GB, free: 3.457 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006636/0.9478, allocations: 1.09 MB / 0.8028 GB, free: 2.344 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.001308/0.9491, allocations: 0.5058 MB / 0.8033 GB, free: 1.836 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005685/0.9497, allocations: 415.3 kB / 0.8037 GB, free: 1.43 MB / 0.6075 GB Notification: Performance of SimCode: time 6.11e-07/0.9497, allocations: 0 / 0.8037 GB, free: 1.43 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/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).