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: "" <> buildModelFMU(ThermofluidStream.Examples.SimpleStream,fileNamePrefix="ThermofluidStream_ThermofluidStream_Examples_SimpleStream",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Examples.SimpleStream,fileNamePrefix="ThermofluidStream_ThermofluidStream_Examples_SimpleStream",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.001336/0.001336, allocations: 99.86 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.001361/0.001361, 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.427/1.427, allocations: 223.2 MB / 239.9 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.7417/0.7417, allocations: 89.65 MB / 380.6 MB, free: 11.43 MB / 318.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0004061/0.0004062, allocations: 15.19 kB / 460 MB, free: 24.32 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1579/0.1583, allocations: 68.82 MB / 0.5165 GB, free: 11.63 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Examples.SimpleStream): time 0.6533/0.8117, allocations: 222.1 MB / 0.7333 GB, free: 11.95 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.03298/0.8447, allocations: 22.84 MB / 0.7557 GB, free: 5.055 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001926/0.8467, allocations: 19.94 kB / 0.7557 GB, free: 5.035 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.003386/0.8501, allocations: 0.9491 MB / 0.7566 GB, free: 4.082 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.01393/0.864, allocations: 3.488 MB / 0.76 GB, free: 0.5859 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.005489/0.8695, allocations: 1.442 MB / 0.7614 GB, free: 15.14 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.003895/0.8735, allocations: 1.271 MB / 0.7627 GB, free: 13.87 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008658/0.8744, allocations: 495.1 kB / 0.7631 GB, free: 13.38 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002409/0.8768, allocations: 0.9388 MB / 0.764 GB, free: 12.44 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0008829/0.8777, allocations: 0.5952 MB / 0.7646 GB, free: 11.84 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0001042/0.8778, allocations: 52 kB / 0.7647 GB, free: 11.79 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01783/0.8956, allocations: 7.404 MB / 0.7719 GB, free: 4.379 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.00112/0.8968, allocations: 338.9 kB / 0.7722 GB, free: 4.047 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0009521/0.8978, allocations: 309 kB / 0.7725 GB, free: 3.738 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.01319/0.911, allocations: 3.489 MB / 0.7759 GB, free: 248 kB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 7.304e-06/0.9111, allocations: 4 kB / 0.7759 GB, free: 244 kB / 0.5762 GB Notification: Performance of FrontEnd: time 4.188e-06/0.9111, allocations: 0 / 0.7759 GB, free: 244 kB / 0.5762 GB Notification: Performance of Transformations before backend: time 4.413e-05/0.9111, allocations: 0 / 0.7759 GB, free: 244 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.007931/0.9191, allocations: 2.331 MB / 0.7782 GB, free: 13.85 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 5.633e-05/0.9192, allocations: 12.03 kB / 0.7782 GB, free: 13.84 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003361/0.9195, allocations: 181.8 kB / 0.7784 GB, free: 13.65 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003219/0.9198, allocations: 162.1 kB / 0.7786 GB, free: 13.49 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001473/0.9213, allocations: 0.7367 MB / 0.7793 GB, free: 12.71 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.065e-05/0.9214, allocations: 86.34 kB / 0.7794 GB, free: 12.62 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001914/0.9216, allocations: 127.9 kB / 0.7795 GB, free: 12.5 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002779/0.9244, allocations: 1.746 MB / 0.7812 GB, free: 10.71 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.183e-05/0.9244, allocations: 0 / 0.7812 GB, free: 10.71 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001098/0.9246, allocations: 55.94 kB / 0.7812 GB, free: 10.66 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001505/0.9247, allocations: 106.4 kB / 0.7813 GB, free: 10.55 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002592/0.9273, allocations: 1.86 MB / 0.7832 GB, free: 8.688 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01102/0.9383, allocations: 8.035 MB / 0.791 GB, free: 15.8 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001557/0.94, allocations: 0.9179 MB / 0.7919 GB, free: 14.86 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002081/0.9421, allocations: 2.355 MB / 0.7942 GB, free: 11.99 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.625e-05/0.9421, allocations: 43.56 kB / 0.7942 GB, free: 11.94 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=101): time 5.921e-06/0.9421, allocations: 3.938 kB / 0.7942 GB, free: 11.94 MB / 0.6075 GB Notification: Performance of matching and sorting (n=103): time 0.007134/0.9493, allocations: 3.787 MB / 0.7979 GB, free: 8.059 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.738e-05/0.9494, allocations: 64.34 kB / 0.798 GB, free: 7.984 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009524/0.9503, allocations: 0.6647 MB / 0.7986 GB, free: 7.312 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 8.16e-05/0.9504, allocations: 41.7 kB / 0.7987 GB, free: 7.266 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003707/0.9508, allocations: 0.5272 MB / 0.7992 GB, free: 6.73 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002822/0.9511, allocations: 354.8 kB / 0.7995 GB, free: 6.379 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.712e-05/0.9512, allocations: 16 kB / 0.7996 GB, free: 6.363 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001556/0.9513, allocations: 345.9 kB / 0.7999 GB, free: 6.02 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007481/0.9521, allocations: 0.4939 MB / 0.8004 GB, free: 5.527 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008564/0.9529, allocations: 0.5763 MB / 0.8009 GB, free: 4.934 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.001098/0.954, allocations: 0.6528 MB / 0.8016 GB, free: 4.266 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/0.954, allocations: 0 / 0.8016 GB, free: 4.266 MB / 0.6075 GB Notification: Performance of matching and sorting (n=112) (initialization): time 0.002613/0.9567, allocations: 1.473 MB / 0.803 GB, free: 2.785 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 3.081e-05/0.9567, allocations: 4 kB / 0.803 GB, free: 2.781 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.606e-05/0.9567, allocations: 4 kB / 0.803 GB, free: 2.777 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006802/0.9574, allocations: 176.7 kB / 0.8032 GB, free: 2.602 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007106/0.9581, allocations: 195.7 kB / 0.8034 GB, free: 2.41 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3613/1.319, allocations: 2.535 MB / 0.8058 GB, free: 225.1 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001104/1.321, allocations: 93.95 kB / 0.8059 GB, free: 225.1 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002048/1.321, allocations: 69.97 kB / 0.806 GB, free: 225.1 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.0006728/1.322, allocations: 323.8 kB / 0.8063 GB, free: 225 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002069/1.322, allocations: 93.16 kB / 0.8064 GB, free: 225 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004924/1.327, allocations: 2.133 MB / 0.8085 GB, free: 224.9 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.338e-05/1.327, allocations: 11.06 kB / 0.8085 GB, free: 224.9 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.135e-06/1.327, allocations: 2.812 kB / 0.8085 GB, free: 224.9 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.017e-05/1.327, allocations: 9.453 kB / 0.8085 GB, free: 224.9 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005775/1.333, allocations: 3.347 MB / 0.8118 GB, free: 223.9 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.275e-06/1.333, allocations: 1.344 kB / 0.8118 GB, free: 223.9 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007187/1.333, allocations: 183.6 kB / 0.812 GB, free: 223.9 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006732/1.334, allocations: 183.7 kB / 0.8121 GB, free: 223.9 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.497e-05/1.334, allocations: 45.25 kB / 0.8122 GB, free: 223.8 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002649/1.337, allocations: 2.534 MB / 0.8146 GB, free: 221.9 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.547e-06/1.337, allocations: 4.453 kB / 0.8146 GB, free: 221.9 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004238/1.341, allocations: 2.349 MB / 0.8169 GB, free: 220.9 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006533/1.342, allocations: 175.5 kB / 0.8171 GB, free: 220.7 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001499/1.342, allocations: 24.52 kB / 0.8171 GB, free: 220.7 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006993/1.343, allocations: 99.12 kB / 0.8172 GB, free: 220.7 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001967/1.343, allocations: 94.5 kB / 0.8173 GB, free: 220.7 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001411/1.343, allocations: 66 kB / 0.8174 GB, free: 220.7 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0006894/1.344, allocations: 497.9 kB / 0.8179 GB, free: 220.4 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.1e-07/1.344, allocations: 4.281 kB / 0.8179 GB, free: 220.4 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.002917/1.347, allocations: 0.9192 MB / 0.8188 GB, free: 220.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.007501/1.354, allocations: 4.66 MB / 0.8233 GB, free: 218.1 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.00281/1.357, allocations: 1.603 MB / 0.8249 GB, free: 217.4 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 4.728e-06/1.357, allocations: 0 / 0.8249 GB, free: 217.4 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.001697/1.359, allocations: 0.9675 MB / 0.8258 GB, free: 217 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002043/1.361, allocations: 357.4 kB / 0.8262 GB, free: 216.9 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01517/1.376, allocations: 8.677 MB / 0.8346 GB, free: 212.3 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001029/1.377, allocations: 1.225 MB / 0.8358 GB, free: 211.5 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.001614/1.379, allocations: 492.7 kB / 0.8363 GB, free: 211.4 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007352/1.379, allocations: 0.5049 MB / 0.8368 GB, free: 211 MB / 0.6075 GB Notification: Performance of SimCode: time 1.223e-06/1.379, allocations: 0 / 0.8368 GB, free: 211 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).