Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermofluidStream_OM_adaptions_ThermofluidStream.Examples.SimpleStream.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.Examples.SimpleStream,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|heatCapacitor.T|source.outlet.m_flow|thermalConduction.h|thermalConduction.inlet.m_flow",fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream.Examples.SimpleStream") translateModel(ThermofluidStream.Examples.SimpleStream,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|heatCapacitor.T|source.outlet.m_flow|thermalConduction.h|thermalConduction.inlet.m_flow",fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream.Examples.SimpleStream") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0111/0.01111, allocations: 169.4 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.821/1.821, allocations: 205.4 MB / 221.3 MB, free: 13.82 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.0008667/0.0008668, allocations: 98.8 kB / 269.6 MB, free: 13.35 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.8958/0.8958, allocations: 90.6 MB / 408.4 MB, free: 14.94 MB / 298.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0004095/0.0004098, allocations: 8 kB / 485.2 MB, free: 2.055 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4789/0.4793, allocations: 66.28 MB / 0.5386 GB, free: 45.55 MB / 426.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Examples.SimpleStream): time 0.865/1.344, allocations: 221.8 MB / 0.7552 GB, free: 5.559 MB / 0.5573 GB Notification: Performance of NFInst.instExpressions: time 0.03957/1.384, allocations: 27.7 MB / 0.7822 GB, free: 5.336 MB / 0.5573 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002542/1.387, allocations: 20.28 kB / 0.7822 GB, free: 5.336 MB / 0.5573 GB Notification: Performance of NFTyping.typeComponents: time 0.004689/1.391, allocations: 0.9476 MB / 0.7832 GB, free: 5.324 MB / 0.5573 GB Notification: Performance of NFTyping.typeBindings: time 0.01973/1.411, allocations: 3.489 MB / 0.7866 GB, free: 5.285 MB / 0.5573 GB Notification: Performance of NFTyping.typeClassSections: time 0.0139/1.425, allocations: 2.313 MB / 0.7888 GB, free: 5.258 MB / 0.5573 GB Notification: Performance of NFFlatten.flatten: time 0.004981/1.43, allocations: 1.186 MB / 0.79 GB, free: 5.258 MB / 0.5573 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001451/1.432, allocations: 490.5 kB / 0.7904 GB, free: 5.16 MB / 0.5573 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004231/1.436, allocations: 0.8958 MB / 0.7913 GB, free: 5.148 MB / 0.5573 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002434/1.438, allocations: 0.5399 MB / 0.7918 GB, free: 5.148 MB / 0.5573 GB Notification: Performance of NFPackage.collectConstants: time 0.0008035/1.439, allocations: 47 kB / 0.7919 GB, free: 5.148 MB / 0.5573 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03937/1.479, allocations: 9.137 MB / 0.8008 GB, free: 5.141 MB / 0.5573 GB Notification: Performance of NFScalarize.scalarize: time 0.001717/1.48, allocations: 327.6 kB / 0.8011 GB, free: 5.141 MB / 0.5573 GB Notification: Performance of NFVerifyModel.verify: time 0.002788/1.483, allocations: 294.5 kB / 0.8014 GB, free: 21.11 MB / 0.573 GB Notification: Performance of NFConvertDAE.convert: time 0.02234/1.506, allocations: 4.112 MB / 0.8054 GB, free: 20.46 MB / 0.573 GB Notification: Performance of FrontEnd - DAE generated: time 7.274e-06/1.506, allocations: 4 kB / 0.8054 GB, free: 20.45 MB / 0.573 GB Notification: Performance of FrontEnd: time 4.869e-06/1.506, allocations: 0 / 0.8054 GB, free: 20.45 MB / 0.573 GB Notification: Performance of Transformations before backend: time 0.0001559/1.506, allocations: 0 / 0.8054 GB, free: 20.45 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: 314 * Number of variables: 314 Notification: Performance of Generate backend data structure: time 0.01281/1.519, allocations: 2.529 MB / 0.8079 GB, free: 18.86 MB / 0.573 GB Notification: Performance of prepare preOptimizeDAE: time 5.656e-05/1.519, allocations: 9.969 kB / 0.8079 GB, free: 18.86 MB / 0.573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000992/1.52, allocations: 149.2 kB / 0.8081 GB, free: 18.79 MB / 0.573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00209/1.522, allocations: 0.6635 MB / 0.8087 GB, free: 18.41 MB / 0.573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001168/1.522, allocations: 90.27 kB / 0.8088 GB, free: 18.4 MB / 0.573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004575/1.523, allocations: 130.4 kB / 0.8089 GB, free: 18.39 MB / 0.573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005019/1.528, allocations: 1.773 MB / 0.8106 GB, free: 17.98 MB / 0.573 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.62e-05/1.528, allocations: 2.938 kB / 0.8106 GB, free: 17.98 MB / 0.573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002576/1.528, allocations: 46.33 kB / 0.8107 GB, free: 17.98 MB / 0.573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003026/1.528, allocations: 110.1 kB / 0.8108 GB, free: 17.96 MB / 0.573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005413/1.534, allocations: 1.891 MB / 0.8126 GB, free: 17.69 MB / 0.573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01831/1.552, allocations: 8.131 MB / 0.8206 GB, free: 11.92 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00224/1.554, allocations: 0.9479 MB / 0.8215 GB, free: 11.7 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002743/1.557, allocations: 2.378 MB / 0.8238 GB, free: 9.102 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.307e-05/1.557, allocations: 48.03 kB / 0.8239 GB, free: 9.062 MB / 0.573 GB Notification: Performance of pre-optimization done (n=105): time 8.917e-06/1.557, allocations: 0 / 0.8239 GB, free: 9.062 MB / 0.573 GB Notification: Performance of matching and sorting (n=107): time 0.009638/1.567, allocations: 4.058 MB / 0.8278 GB, free: 7.918 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.325e-05/1.567, allocations: 64.06 kB / 0.8279 GB, free: 7.855 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009624/1.568, allocations: 0.4939 MB / 0.8284 GB, free: 7.668 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.0001228/1.568, allocations: 39.67 kB / 0.8284 GB, free: 7.637 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005211/1.569, allocations: 0.4914 MB / 0.8289 GB, free: 7.336 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004558/1.569, allocations: 371.1 kB / 0.8293 GB, free: 7.066 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.431e-05/1.569, allocations: 26.16 kB / 0.8293 GB, free: 7.062 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0002536/1.57, allocations: 388.6 kB / 0.8296 GB, free: 6.723 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009782/1.571, allocations: 0.5305 MB / 0.8302 GB, free: 6.656 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001057/1.572, allocations: 0.6045 MB / 0.8308 GB, free: 6.543 MB / 0.573 GB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: thermalConduction.deltaE_system = 0.0 ($START.thermalConduction.deltaE_system = 0.0) Notification: Performance of analyzeInitialSystem (initialization): time 0.001382/1.573, allocations: 0.6883 MB / 0.8314 GB, free: 6.395 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.484e-06/1.573, allocations: 3.938 kB / 0.8314 GB, free: 6.391 MB / 0.573 GB Notification: Performance of matching and sorting (n=115) (initialization): time 0.003567/1.577, allocations: 1.559 MB / 0.833 GB, free: 6.105 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 2.923e-05/1.577, allocations: 8.875 kB / 0.833 GB, free: 6.105 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.568e-05/1.577, allocations: 0 / 0.833 GB, free: 6.105 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006791/1.577, allocations: 165.5 kB / 0.8331 GB, free: 6.062 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007834/1.578, allocations: 200.8 kB / 0.8333 GB, free: 6.027 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004065/1.582, allocations: 2.54 MB / 0.8358 GB, free: 4.488 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001203/1.583, allocations: 94.62 kB / 0.8359 GB, free: 4.453 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003004/1.584, allocations: 99.92 kB / 0.836 GB, free: 4.438 MB / 0.573 GB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: thermalConduction.deltaE_system = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (96): * Single equations (assignments): 89 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,88.9%) 14} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001041/1.585, allocations: 319.5 kB / 0.8363 GB, free: 4.301 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003731/1.585, allocations: 83.97 kB / 0.8364 GB, free: 4.258 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004846/1.59, allocations: 1.99 MB / 0.8383 GB, free: 3.812 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.29e-05/1.59, allocations: 13.16 kB / 0.8383 GB, free: 3.812 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.426e-05/1.59, allocations: 4 kB / 0.8383 GB, free: 3.809 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.092e-05/1.59, allocations: 6.953 kB / 0.8383 GB, free: 3.805 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007316/1.597, allocations: 3.518 MB / 0.8418 GB, free: 2.676 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.056e-05/1.598, allocations: 0 / 0.8418 GB, free: 2.676 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000796/1.598, allocations: 209.7 kB / 0.842 GB, free: 2.637 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005639/1.599, allocations: 182.9 kB / 0.8421 GB, free: 2.578 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001361/1.599, allocations: 54.7 kB / 0.8422 GB, free: 2.566 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003688/1.603, allocations: 2.545 MB / 0.8447 GB, free: 1.008 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.026e-06/1.603, allocations: 0 / 0.8447 GB, free: 1.008 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004565/1.607, allocations: 2.557 MB / 0.8472 GB, free: 15.34 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006609/1.608, allocations: 155.4 kB / 0.8473 GB, free: 15.18 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002662/1.608, allocations: 20.3 kB / 0.8473 GB, free: 15.17 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009836/1.609, allocations: 112.5 kB / 0.8474 GB, free: 15.08 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002149/1.61, allocations: 91.73 kB / 0.8475 GB, free: 14.99 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003183/1.61, allocations: 98.5 kB / 0.8476 GB, free: 14.91 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.0006438/1.611, allocations: 351.4 kB / 0.848 GB, free: 14.64 MB / 0.5886 GB Notification: Performance of sort global known variables: time 1.202e-06/1.611, allocations: 6.906 kB / 0.848 GB, free: 14.64 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.005299/1.616, allocations: 1.167 MB / 0.8491 GB, free: 13.59 MB / 0.5886 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (thermalConduction.h,heatCapacitor.T,flowResistance1.inlet.m_flow,flowResistance2.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 (97): * Single equations (assignments): 90 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,88.9%) 14} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0076/1.623, allocations: 1.643 MB / 0.8507 GB, free: 12.15 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.004447/1.628, allocations: 1.734 MB / 0.8524 GB, free: 10.96 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 1.005e-05/1.628, allocations: 0 / 0.8524 GB, free: 10.96 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.002501/1.631, allocations: 1.063 MB / 0.8534 GB, free: 10.21 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002223/1.633, allocations: 305.8 kB / 0.8537 GB, free: 9.977 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006354/1.639, allocations: 3.054 MB / 0.8567 GB, free: 7.227 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001395/1.641, allocations: 1.196 MB / 0.8579 GB, free: 6.039 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 0.002189/1.643, allocations: 376.7 kB / 0.8582 GB, free: 5.684 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007005/1.644, allocations: 147.4 kB / 0.8584 GB, free: 5.551 MB / 0.5886 GB Notification: Performance of SimCode: time 1.102e-06/1.644, allocations: 0 / 0.8584 GB, free: 5.551 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).