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: "" <> buildModelFMU(ThermofluidStream.Processes.Tests.Nozzle,fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream_Processes_Tests_Nozzle",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Processes.Tests.Nozzle,fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream_Processes_Tests_Nozzle",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.007802/0.007801, allocations: 171.8 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.759/1.759, 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.0009986/0.0009986, allocations: 98.78 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.8984/0.8984, allocations: 90.59 MB / 408.4 MB, free: 14.96 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003557/0.0003557, allocations: 16 kB / 485.3 MB, free: 1.953 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5038/0.5042, allocations: 66.26 MB / 0.5387 GB, free: 45.55 MB / 426.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Processes.Tests.Nozzle): time 0.2593/0.7635, allocations: 203.5 MB / 0.7374 GB, free: 15.97 MB / 0.5573 GB Notification: Performance of NFInst.instExpressions: time 0.4838/1.247, allocations: 19.04 MB / 0.756 GB, free: 5.426 MB / 0.5573 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001422/1.249, allocations: 19.44 kB / 0.756 GB, free: 5.422 MB / 0.5573 GB Notification: Performance of NFTyping.typeComponents: time 0.002257/1.251, allocations: 0.6708 MB / 0.7567 GB, free: 5.418 MB / 0.5573 GB Notification: Performance of NFTyping.typeBindings: time 0.01388/1.265, allocations: 4.01 MB / 0.7606 GB, free: 5.375 MB / 0.5573 GB Notification: Performance of NFTyping.typeClassSections: time 0.01092/1.276, allocations: 3.094 MB / 0.7636 GB, free: 5.34 MB / 0.5573 GB Notification: Performance of NFFlatten.flatten: time 0.002601/1.279, allocations: 0.9788 MB / 0.7646 GB, free: 5.34 MB / 0.5573 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005518/1.279, allocations: 284.8 kB / 0.7649 GB, free: 5.277 MB / 0.5573 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002505/1.282, allocations: 0.8304 MB / 0.7657 GB, free: 5.266 MB / 0.5573 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007518/1.282, allocations: 470 kB / 0.7661 GB, free: 5.266 MB / 0.5573 GB Notification: Performance of NFPackage.collectConstants: time 9.269e-05/1.282, allocations: 44.53 kB / 0.7662 GB, free: 5.266 MB / 0.5573 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0369/1.319, allocations: 12.19 MB / 0.7781 GB, free: 5.258 MB / 0.5573 GB Notification: Performance of NFScalarize.scalarize: time 0.0009868/1.32, allocations: 270 kB / 0.7783 GB, free: 5.254 MB / 0.5573 GB Notification: Performance of NFVerifyModel.verify: time 0.0008566/1.321, allocations: 238.6 kB / 0.7785 GB, free: 5.223 MB / 0.5573 GB Notification: Performance of NFConvertDAE.convert: time 0.02072/1.342, allocations: 4.728 MB / 0.7832 GB, free: 4.84 MB / 0.5573 GB Notification: Performance of FrontEnd - DAE generated: time 6.282e-06/1.342, allocations: 2.828 kB / 0.7832 GB, free: 4.84 MB / 0.5573 GB Notification: Performance of FrontEnd: time 3.426e-06/1.342, allocations: 0 / 0.7832 GB, free: 4.84 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 4.916e-05/1.342, allocations: 0 / 0.7832 GB, free: 4.84 MB / 0.5573 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.01242/1.355, allocations: 2.698 MB / 0.7858 GB, free: 19.45 MB / 0.573 GB Notification: Performance of prepare preOptimizeDAE: time 5.658e-05/1.355, allocations: 10.05 kB / 0.7858 GB, free: 19.45 MB / 0.573 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000421/1.355, allocations: 152.9 kB / 0.786 GB, free: 19.41 MB / 0.573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002832/1.355, allocations: 120.1 kB / 0.7861 GB, free: 19.36 MB / 0.573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001116/1.357, allocations: 0.5604 MB / 0.7866 GB, free: 19.08 MB / 0.573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.599e-05/1.357, allocations: 64.8 kB / 0.7867 GB, free: 19.07 MB / 0.573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001498/1.357, allocations: 96.47 kB / 0.7868 GB, free: 19.07 MB / 0.573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002197/1.359, allocations: 1.397 MB / 0.7881 GB, free: 19 MB / 0.573 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.852e-05/1.359, allocations: 4 kB / 0.7881 GB, free: 19 MB / 0.573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001013/1.359, allocations: 38.11 kB / 0.7882 GB, free: 19 MB / 0.573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001506/1.359, allocations: 84.62 kB / 0.7883 GB, free: 19 MB / 0.573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002302/1.362, allocations: 1.528 MB / 0.7897 GB, free: 19 MB / 0.573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008934/1.371, allocations: 5.32 MB / 0.7949 GB, free: 15.47 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001505/1.372, allocations: 0.9405 MB / 0.7959 GB, free: 15.32 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002318/1.374, allocations: 2 MB / 0.7978 GB, free: 13.26 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.297e-05/1.375, allocations: 47.91 kB / 0.7979 GB, free: 13.22 MB / 0.573 GB Notification: Performance of pre-optimization done (n=122): time 5.22e-06/1.375, allocations: 2.906 kB / 0.7979 GB, free: 13.22 MB / 0.573 GB Notification: Performance of matching and sorting (n=122): time 0.004386/1.379, allocations: 2.486 MB / 0.8003 GB, free: 12.46 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.002e-05/1.379, allocations: 96.22 kB / 0.8004 GB, free: 12.36 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006568/1.38, allocations: 490.1 kB / 0.8008 GB, free: 12.17 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 9.347e-05/1.38, allocations: 43.86 kB / 0.8009 GB, free: 12.14 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002831/1.38, allocations: 362.1 kB / 0.8012 GB, free: 11.93 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003782/1.38, allocations: 420 kB / 0.8016 GB, free: 11.63 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.658e-05/1.381, allocations: 16.75 kB / 0.8017 GB, free: 11.63 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0002163/1.381, allocations: 398.9 kB / 0.802 GB, free: 11.29 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008011/1.382, allocations: 0.5235 MB / 0.8025 GB, free: 11.23 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008499/1.382, allocations: 0.6013 MB / 0.8031 GB, free: 11.13 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001007/1.383, allocations: 0.5887 MB / 0.8037 GB, free: 11.09 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.59e-06/1.383, allocations: 0 / 0.8037 GB, free: 11.09 MB / 0.573 GB Notification: Performance of matching and sorting (n=124) (initialization): time 0.002975/1.386, allocations: 1.528 MB / 0.8052 GB, free: 10.81 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 3.195e-05/1.387, allocations: 5.531 kB / 0.8052 GB, free: 10.81 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.29e-05/1.387, allocations: 0 / 0.8052 GB, free: 10.81 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005087/1.387, allocations: 114 kB / 0.8053 GB, free: 10.77 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007094/1.388, allocations: 194.8 kB / 0.8055 GB, free: 10.74 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004074/1.392, allocations: 3.15 MB / 0.8086 GB, free: 8.102 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001234/1.393, allocations: 91.7 kB / 0.8087 GB, free: 8.055 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002861/1.393, allocations: 97.86 kB / 0.8088 GB, free: 8.043 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.0007884/1.394, allocations: 266.3 kB / 0.809 GB, free: 7.906 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004104/1.395, allocations: 84.62 kB / 0.8091 GB, free: 7.863 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003902/1.399, allocations: 1.99 MB / 0.811 GB, free: 7.438 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.699e-05/1.399, allocations: 19.75 kB / 0.8111 GB, free: 7.434 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.598e-06/1.399, allocations: 3.312 kB / 0.8111 GB, free: 7.434 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.591e-05/1.399, allocations: 9.719 kB / 0.8111 GB, free: 7.426 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005679/1.404, allocations: 3.278 MB / 0.8143 GB, free: 6.379 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.086e-05/1.404, allocations: 4.906 kB / 0.8143 GB, free: 6.379 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000695/1.405, allocations: 192.6 kB / 0.8145 GB, free: 6.352 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003868/1.405, allocations: 121.1 kB / 0.8146 GB, free: 6.305 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001107/1.406, allocations: 54.61 kB / 0.8146 GB, free: 6.293 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003017/1.409, allocations: 3.163 MB / 0.8177 GB, free: 3.645 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.875e-06/1.409, allocations: 2.188 kB / 0.8177 GB, free: 3.645 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00375/1.412, allocations: 2.652 MB / 0.8203 GB, free: 3.047 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003642/1.413, allocations: 178 kB / 0.8205 GB, free: 2.883 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001315/1.413, allocations: 22.06 kB / 0.8205 GB, free: 2.883 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000522/1.413, allocations: 51.52 kB / 0.8205 GB, free: 2.867 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000177/1.414, allocations: 99.58 kB / 0.8206 GB, free: 2.828 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001817/1.414, allocations: 109.7 kB / 0.8207 GB, free: 2.812 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.0004464/1.414, allocations: 340.1 kB / 0.8211 GB, free: 2.68 MB / 0.573 GB Notification: Performance of sort global known variables: time 1.5e-07/1.414, allocations: 4 kB / 0.8211 GB, free: 2.676 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.005029/1.419, allocations: 1.385 MB / 0.8224 GB, free: 2.375 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.01188/1.431, allocations: 5.929 MB / 0.8282 GB, free: 12 kB / 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.00402/1.435, allocations: 1.953 MB / 0.8301 GB, free: 15.46 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 6.492e-06/1.435, allocations: 0 / 0.8301 GB, free: 15.46 MB / 0.5886 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.002142/1.437, allocations: 1.278 MB / 0.8314 GB, free: 14.48 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001937/1.439, allocations: 315 kB / 0.8317 GB, free: 14.25 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01511/1.455, allocations: 7.616 MB / 0.8391 GB, free: 7.945 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007995/1.455, allocations: 1.09 MB / 0.8402 GB, free: 6.844 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 0.001642/1.457, allocations: 344.6 kB / 0.8405 GB, free: 6.531 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008945/1.458, allocations: 445.4 kB / 0.8409 GB, free: 6.371 MB / 0.5886 GB Notification: Performance of SimCode: time 1.322e-06/1.458, allocations: 0 / 0.8409 GB, free: 6.371 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/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).