Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermofluidStream_OM_adaptions_ThermofluidStream.Processes.Tests.Nozzle.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.Processes.Tests.Nozzle,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|nozzle.inlet.m_flow|nozzle1.inlet.m_flow",fileNamePrefix="ThermofluidStream_OM_adaptions_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_OM_adaptions_ThermofluidStream.Processes.Tests.Nozzle") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.009285/0.009286, allocations: 171.1 kB / 15.12 MB, free: 6.027 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.587/1.587, allocations: 205.4 MB / 221.3 MB, free: 13.84 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.001002/0.001002, allocations: 86.94 kB / 269.6 MB, free: 13.37 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.7987/0.7987, allocations: 90.59 MB / 408.4 MB, free: 14.98 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005207/0.0005207, allocations: 11.98 kB / 485.2 MB, free: 2.082 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4932/0.4937, allocations: 66.27 MB / 0.5386 GB, free: 45.56 MB / 426.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Processes.Tests.Nozzle): time 0.2581/0.7519, allocations: 203.5 MB / 0.7373 GB, free: 24 kB / 0.5417 GB Notification: Performance of NFInst.instExpressions: time 0.409/1.161, allocations: 19.04 MB / 0.7559 GB, free: 5.559 MB / 0.5574 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001148/1.162, allocations: 17.88 kB / 0.7559 GB, free: 5.555 MB / 0.5574 GB Notification: Performance of NFTyping.typeComponents: time 0.001772/1.164, allocations: 0.6715 MB / 0.7566 GB, free: 5.551 MB / 0.5574 GB Notification: Performance of NFTyping.typeBindings: time 0.01257/1.176, allocations: 4.007 MB / 0.7605 GB, free: 5.508 MB / 0.5574 GB Notification: Performance of NFTyping.typeClassSections: time 0.009493/1.186, allocations: 3.09 MB / 0.7635 GB, free: 5.473 MB / 0.5574 GB Notification: Performance of NFFlatten.flatten: time 0.001973/1.188, allocations: 0.9903 MB / 0.7645 GB, free: 5.473 MB / 0.5574 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004737/1.188, allocations: 279.1 kB / 0.7648 GB, free: 5.41 MB / 0.5574 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001802/1.19, allocations: 0.8354 MB / 0.7656 GB, free: 5.398 MB / 0.5574 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006334/1.191, allocations: 472.6 kB / 0.766 GB, free: 5.398 MB / 0.5574 GB Notification: Performance of NFPackage.collectConstants: time 9.163e-05/1.191, allocations: 43.97 kB / 0.7661 GB, free: 5.398 MB / 0.5574 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03147/1.222, allocations: 12.18 MB / 0.778 GB, free: 5.391 MB / 0.5574 GB Notification: Performance of NFScalarize.scalarize: time 0.0007695/1.223, allocations: 269.7 kB / 0.7782 GB, free: 5.387 MB / 0.5574 GB Notification: Performance of NFVerifyModel.verify: time 0.001074/1.224, allocations: 237.3 kB / 0.7784 GB, free: 21.36 MB / 0.573 GB Notification: Performance of NFConvertDAE.convert: time 0.01425/1.239, allocations: 4.73 MB / 0.7831 GB, free: 20.98 MB / 0.573 GB Notification: Performance of FrontEnd - DAE generated: time 2.725e-06/1.239, allocations: 2.734 kB / 0.7831 GB, free: 20.98 MB / 0.573 GB Notification: Performance of FrontEnd: time 1.452e-06/1.239, allocations: 0 / 0.7831 GB, free: 20.98 MB / 0.573 GB Notification: Performance of Transformations before backend: time 6.583e-05/1.239, allocations: 2.781 kB / 0.7831 GB, free: 20.98 MB / 0.573 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.008919/1.248, allocations: 2.689 MB / 0.7857 GB, free: 19.59 MB / 0.573 GB Notification: Performance of prepare preOptimizeDAE: time 3.503e-05/1.248, allocations: 8.094 kB / 0.7857 GB, free: 19.59 MB / 0.573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002486/1.248, allocations: 119.8 kB / 0.7858 GB, free: 19.53 MB / 0.573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008841/1.249, allocations: 0.567 MB / 0.7864 GB, free: 19.25 MB / 0.573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.123e-05/1.249, allocations: 68.62 kB / 0.7864 GB, free: 19.25 MB / 0.573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001479/1.249, allocations: 91.27 kB / 0.7865 GB, free: 19.25 MB / 0.573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001805/1.251, allocations: 1.399 MB / 0.7879 GB, free: 19.18 MB / 0.573 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.183e-05/1.251, allocations: 1.547 kB / 0.7879 GB, free: 19.18 MB / 0.573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.263e-05/1.251, allocations: 41.59 kB / 0.7879 GB, free: 19.18 MB / 0.573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.457e-05/1.251, allocations: 83.66 kB / 0.788 GB, free: 19.18 MB / 0.573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00173/1.253, allocations: 1.528 MB / 0.7895 GB, free: 19.17 MB / 0.573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006469/1.259, allocations: 5.322 MB / 0.7947 GB, free: 15.67 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001398/1.261, allocations: 0.9435 MB / 0.7956 GB, free: 15.52 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0019/1.263, allocations: 1.999 MB / 0.7976 GB, free: 13.46 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.419e-05/1.263, allocations: 39.75 kB / 0.7976 GB, free: 13.42 MB / 0.573 GB Notification: Performance of pre-optimization done (n=122): time 4.078e-06/1.263, allocations: 0 / 0.7976 GB, free: 13.42 MB / 0.573 GB Notification: Performance of matching and sorting (n=122): time 0.004025/1.267, allocations: 2.486 MB / 0.8 GB, free: 12.66 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.88e-05/1.267, allocations: 97.06 kB / 0.8001 GB, free: 12.55 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005638/1.267, allocations: 494 kB / 0.8006 GB, free: 12.36 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 9.145e-05/1.268, allocations: 44.91 kB / 0.8006 GB, free: 12.33 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.000228/1.268, allocations: 358.9 kB / 0.801 GB, free: 12.13 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003262/1.268, allocations: 417.5 kB / 0.8014 GB, free: 11.83 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.622e-05/1.268, allocations: 18.39 kB / 0.8014 GB, free: 11.83 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0002311/1.268, allocations: 398.5 kB / 0.8018 GB, free: 11.49 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000882/1.269, allocations: 0.5296 MB / 0.8023 GB, free: 11.42 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009088/1.27, allocations: 0.5964 MB / 0.8029 GB, free: 11.33 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001019/1.271, allocations: 0.5892 MB / 0.8035 GB, free: 11.29 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.71e-06/1.271, allocations: 0 / 0.8035 GB, free: 11.29 MB / 0.573 GB Notification: Performance of matching and sorting (n=124) (initialization): time 0.003148/1.274, allocations: 1.524 MB / 0.8049 GB, free: 11.01 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 2.921e-05/1.274, allocations: 2.938 kB / 0.8049 GB, free: 11.01 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.799e-05/1.274, allocations: 1.406 kB / 0.8049 GB, free: 11.01 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005482/1.275, allocations: 120.5 kB / 0.8051 GB, free: 10.97 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007526/1.276, allocations: 193.4 kB / 0.8052 GB, free: 10.94 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003918/1.28, allocations: 3.152 MB / 0.8083 GB, free: 8.301 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009388/1.281, allocations: 83.48 kB / 0.8084 GB, free: 8.254 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002316/1.281, allocations: 99.45 kB / 0.8085 GB, free: 8.242 MB / 0.573 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): 96 * Array equations: 8 * Algorithm blocks: 0 * Record equations: 2 * 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.0006345/1.282, allocations: 267.4 kB / 0.8088 GB, free: 8.109 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001905/1.282, allocations: 87.3 kB / 0.8088 GB, free: 8.062 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003855/1.286, allocations: 1.99 MB / 0.8108 GB, free: 7.641 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.85e-05/1.286, allocations: 16.73 kB / 0.8108 GB, free: 7.637 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.524e-06/1.286, allocations: 6.688 kB / 0.8108 GB, free: 7.633 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.485e-05/1.286, allocations: 6.891 kB / 0.8108 GB, free: 7.629 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005314/1.291, allocations: 3.279 MB / 0.814 GB, free: 6.578 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.755e-06/1.291, allocations: 2.938 kB / 0.814 GB, free: 6.578 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006229/1.292, allocations: 202 kB / 0.8142 GB, free: 6.551 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003559/1.292, allocations: 120.6 kB / 0.8143 GB, free: 6.504 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.837e-05/1.292, allocations: 54.61 kB / 0.8144 GB, free: 6.492 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002589/1.295, allocations: 3.159 MB / 0.8175 GB, free: 3.84 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.777e-06/1.295, allocations: 7.578 kB / 0.8175 GB, free: 3.84 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003791/1.299, allocations: 2.645 MB / 0.82 GB, free: 3.246 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000366/1.299, allocations: 178.5 kB / 0.8202 GB, free: 3.082 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000128/1.299, allocations: 21.91 kB / 0.8202 GB, free: 3.082 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005206/1.3, allocations: 53.55 kB / 0.8203 GB, free: 3.066 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001818/1.3, allocations: 101.9 kB / 0.8204 GB, free: 3.027 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001768/1.3, allocations: 104.8 kB / 0.8205 GB, free: 3.012 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.0004076/1.3, allocations: 338.9 kB / 0.8208 GB, free: 2.875 MB / 0.573 GB Notification: Performance of sort global known variables: time 1.122e-06/1.3, allocations: 3.031 kB / 0.8208 GB, free: 2.875 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.004714/1.305, allocations: 1.394 MB / 0.8222 GB, free: 2.57 MB / 0.573 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 (110): * Single equations (assignments): 98 * Array equations: 8 * Algorithm blocks: 0 * Record equations: 2 * 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.005372/1.311, allocations: 1.952 MB / 0.8241 GB, free: 1.918 MB / 0.573 GB Warning: SimCodeUtil.makeSES_SIMPLE_ASSIGN failed for: {dynamicPressureInflow1.inlet.state.X[1], dynamicPressureInflow1.inlet.state.X[2]} = $TMP_ThermofluidStream_Processes_Tests_Nozzle_source1_outlet_Medium_ThermodynamicState1.X Warning: SimCodeUtil.makeSES_SIMPLE_ASSIGN failed for: {dynamicPressureInflow.inlet.state.X[1], dynamicPressureInflow.inlet.state.X[2]} = $TMP_ThermofluidStream_Processes_Tests_Nozzle_source_outlet_Medium_ThermodynamicState72.X Notification: Performance of simCode: created initialization part: time 0.003191/1.314, allocations: 1.945 MB / 0.826 GB, free: 1.418 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 3.887e-06/1.314, allocations: 0 / 0.826 GB, free: 1.418 MB / 0.573 GB Warning: SimCodeUtil.makeSES_SIMPLE_ASSIGN failed for: {dynamicPressureInflow.inlet.state.X[1], dynamicPressureInflow.inlet.state.X[2]} = $TMP_ThermofluidStream_Processes_Tests_Nozzle_source_outlet_Medium_ThermodynamicState145.X Warning: SimCodeUtil.makeSES_SIMPLE_ASSIGN failed for: {dynamicPressureInflow1.inlet.state.X[1], dynamicPressureInflow1.inlet.state.X[2]} = $TMP_ThermofluidStream_Processes_Tests_Nozzle_source1_outlet_Medium_ThermodynamicState216.X Notification: Performance of simCode: created simulation system equations: time 0.001804/1.316, allocations: 1.271 MB / 0.8272 GB, free: 0.9844 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00176/1.317, allocations: 325 kB / 0.8275 GB, free: 0.8867 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004204/1.322, allocations: 2.486 MB / 0.83 GB, free: 15.36 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008301/1.322, allocations: 1.09 MB / 0.831 GB, free: 14.25 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 0.001579/1.324, allocations: 348.3 kB / 0.8314 GB, free: 13.93 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005021/1.325, allocations: 147.2 kB / 0.8315 GB, free: 13.8 MB / 0.5886 GB Notification: Performance of SimCode: time 1.483e-06/1.325, allocations: 0 / 0.8315 GB, free: 13.8 MB / 0.5886 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).