Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.Examples.SimpleStream.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.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_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_ThermofluidStream.Examples.SimpleStream") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001229/0.001229, allocations: 96.25 kB / 15.05 MB, free: 1.113 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.001602/0.001602, allocations: 181.3 kB / 15.95 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.486/1.486, allocations: 223.2 MB / 239.9 MB, free: 5.441 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.7614/0.7614, allocations: 89.61 MB / 380.6 MB, free: 11.48 MB / 318.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0003602/0.0003603, allocations: 9.656 kB / 459.9 MB, free: 24.38 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1331/0.1335, allocations: 68.82 MB / 0.5163 GB, free: 11.8 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Examples.SimpleStream): time 0.6291/0.7627, allocations: 222.1 MB / 0.7332 GB, free: 12.15 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.0262/0.7889, allocations: 22.86 MB / 0.7555 GB, free: 5.238 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0017/0.7907, allocations: 19.94 kB / 0.7555 GB, free: 5.219 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.003139/0.7938, allocations: 0.9568 MB / 0.7565 GB, free: 4.258 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.01302/0.8069, allocations: 3.487 MB / 0.7599 GB, free: 0.7656 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.005657/0.8126, allocations: 1.43 MB / 0.7613 GB, free: 15.33 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.003157/0.8157, allocations: 1.271 MB / 0.7625 GB, free: 14.06 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007398/0.8165, allocations: 491.6 kB / 0.763 GB, free: 13.57 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002188/0.8187, allocations: 0.9427 MB / 0.7639 GB, free: 12.63 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007104/0.8194, allocations: 0.5913 MB / 0.7645 GB, free: 12.04 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 9.852e-05/0.8195, allocations: 55.94 kB / 0.7645 GB, free: 11.98 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0156/0.8351, allocations: 7.393 MB / 0.7718 GB, free: 4.578 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0007796/0.8359, allocations: 342.9 kB / 0.7721 GB, free: 4.242 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0008421/0.8368, allocations: 313 kB / 0.7724 GB, free: 3.93 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.01477/0.8516, allocations: 3.497 MB / 0.7758 GB, free: 436 kB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.8517, allocations: 0 / 0.7758 GB, free: 436 kB / 0.5762 GB Notification: Performance of FrontEnd: time 2.043e-06/0.8517, allocations: 0 / 0.7758 GB, free: 436 kB / 0.5762 GB Notification: Performance of Transformations before backend: time 3.683e-05/0.8517, allocations: 0 / 0.7758 GB, free: 436 kB / 0.5762 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.009538/0.8613, allocations: 2.327 MB / 0.7781 GB, free: 14.04 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 6.436e-05/0.8613, allocations: 8.031 kB / 0.7781 GB, free: 14.04 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005659/0.8619, allocations: 158.1 kB / 0.7782 GB, free: 13.88 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001842/0.8638, allocations: 0.7328 MB / 0.779 GB, free: 13.1 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.442e-05/0.8639, allocations: 94.27 kB / 0.779 GB, free: 13.01 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002898/0.8642, allocations: 119.9 kB / 0.7792 GB, free: 12.89 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003919/0.8681, allocations: 1.75 MB / 0.7809 GB, free: 11.1 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.531e-05/0.8682, allocations: 0 / 0.7809 GB, free: 11.1 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001553/0.8684, allocations: 51.95 kB / 0.7809 GB, free: 11.05 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002309/0.8686, allocations: 114.4 kB / 0.781 GB, free: 10.94 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003915/0.8725, allocations: 1.864 MB / 0.7828 GB, free: 9.066 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01389/0.8864, allocations: 8.043 MB / 0.7907 GB, free: 184 kB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002042/0.8885, allocations: 0.9041 MB / 0.7916 GB, free: 15.24 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002273/0.8908, allocations: 2.359 MB / 0.7939 GB, free: 12.37 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.789e-05/0.8909, allocations: 43.56 kB / 0.7939 GB, free: 12.32 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=101): time 5.66e-06/0.8909, allocations: 0 / 0.7939 GB, free: 12.32 MB / 0.6075 GB Notification: Performance of matching and sorting (n=103): time 0.01035/0.9013, allocations: 3.791 MB / 0.7976 GB, free: 8.434 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.302e-05/0.9014, allocations: 60.41 kB / 0.7977 GB, free: 8.363 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001371/0.9028, allocations: 0.657 MB / 0.7983 GB, free: 7.699 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 0.0001296/0.9029, allocations: 41.7 kB / 0.7984 GB, free: 7.652 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005415/0.9035, allocations: 0.5271 MB / 0.7989 GB, free: 7.117 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004579/0.9039, allocations: 354.8 kB / 0.7992 GB, free: 6.766 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.999e-05/0.904, allocations: 16 kB / 0.7992 GB, free: 6.75 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0002398/0.9043, allocations: 349.9 kB / 0.7996 GB, free: 6.402 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001141/0.9054, allocations: 0.4978 MB / 0.8001 GB, free: 5.906 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001187/0.9066, allocations: 0.5724 MB / 0.8006 GB, free: 5.32 MB / 0.6075 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.00145/0.9081, allocations: 0.6483 MB / 0.8012 GB, free: 4.656 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.789e-06/0.9081, allocations: 3.938 kB / 0.8013 GB, free: 4.652 MB / 0.6075 GB Notification: Performance of matching and sorting (n=112) (initialization): time 0.003805/0.9119, allocations: 1.477 MB / 0.8027 GB, free: 3.168 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.889e-05/0.912, allocations: 4 kB / 0.8027 GB, free: 3.164 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.508e-05/0.912, allocations: 8.094 kB / 0.8027 GB, free: 3.156 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009328/0.9129, allocations: 180.6 kB / 0.8029 GB, free: 2.977 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001087/0.914, allocations: 187.7 kB / 0.8031 GB, free: 2.793 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004659/0.9187, allocations: 2.542 MB / 0.8055 GB, free: 120 kB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001613/0.9203, allocations: 103.8 kB / 0.8056 GB, free: 16 kB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.3796/1.3, allocations: 60.81 kB / 0.8057 GB, free: 226 MB / 0.6075 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): 90 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * 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.001036/1.301, allocations: 316.4 kB / 0.806 GB, free: 225.9 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003559/1.301, allocations: 93.78 kB / 0.8061 GB, free: 225.9 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005209/1.307, allocations: 2.128 MB / 0.8082 GB, free: 225.8 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.214e-05/1.307, allocations: 15.25 kB / 0.8082 GB, free: 225.8 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.433e-05/1.307, allocations: 12.86 kB / 0.8082 GB, free: 225.8 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.157e-05/1.307, allocations: 5.234 kB / 0.8082 GB, free: 225.8 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006259/1.313, allocations: 3.349 MB / 0.8115 GB, free: 224.8 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.667e-06/1.313, allocations: 5.609 kB / 0.8115 GB, free: 224.8 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007694/1.314, allocations: 175.9 kB / 0.8116 GB, free: 224.8 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000626/1.315, allocations: 188.3 kB / 0.8118 GB, free: 224.8 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.937e-05/1.315, allocations: 40.39 kB / 0.8119 GB, free: 224.8 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002668/1.317, allocations: 2.538 MB / 0.8143 GB, free: 222.9 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/1.317, allocations: 0 / 0.8143 GB, free: 222.9 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003336/1.321, allocations: 2.351 MB / 0.8166 GB, free: 221.8 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004713/1.321, allocations: 174 kB / 0.8168 GB, free: 221.6 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001422/1.321, allocations: 26.33 kB / 0.8168 GB, free: 221.6 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006953/1.322, allocations: 99.88 kB / 0.8169 GB, free: 221.6 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000219/1.322, allocations: 82.94 kB / 0.817 GB, free: 221.6 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001472/1.322, allocations: 69.83 kB / 0.8171 GB, free: 221.6 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0007288/1.323, allocations: 499.9 kB / 0.8175 GB, free: 221.4 MB / 0.6075 GB Notification: Performance of sort global known variables: time 2.51e-07/1.323, allocations: 0 / 0.8175 GB, free: 221.4 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.003024/1.326, allocations: 0.928 MB / 0.8185 GB, free: 221.3 MB / 0.6075 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 (91): * Single equations (assignments): 85 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * 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.002944/1.329, allocations: 1.178 MB / 0.8196 GB, free: 221.1 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.002861/1.332, allocations: 1.615 MB / 0.8212 GB, free: 220.4 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 3.837e-06/1.332, allocations: 0 / 0.8212 GB, free: 220.4 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.00159/1.334, allocations: 0.9622 MB / 0.8221 GB, free: 220 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002078/1.336, allocations: 350.2 kB / 0.8225 GB, free: 219.9 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005178/1.341, allocations: 3.13 MB / 0.8255 GB, free: 218.3 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001098/1.342, allocations: 1.228 MB / 0.8267 GB, free: 217.5 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.001814/1.344, allocations: 0.4914 MB / 0.8272 GB, free: 217.4 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004231/1.344, allocations: 114.3 kB / 0.8273 GB, free: 217.4 MB / 0.6075 GB Notification: Performance of SimCode: time 1.092e-06/1.344, allocations: 0 / 0.8273 GB, free: 217.4 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).