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: "" <> buildModelFMU(ThermofluidStream.Examples.SimpleStream,fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream_Examples_SimpleStream",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Examples.SimpleStream,fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream_Examples_SimpleStream",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.006238/0.006238, allocations: 169.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.893/1.893, 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.00102/0.00102, allocations: 86.86 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.9818/0.9818, allocations: 90.59 MB / 408.4 MB, free: 14.96 MB / 298.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0003777/0.000378, allocations: 8 kB / 485.3 MB, free: 1.969 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5612/0.5616, allocations: 66.27 MB / 0.5386 GB, free: 45.49 MB / 426.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Examples.SimpleStream): time 0.8704/1.432, allocations: 221.8 MB / 0.7553 GB, free: 5.266 MB / 0.5573 GB Notification: Performance of NFInst.instExpressions: time 0.0448/1.477, allocations: 27.7 MB / 0.7823 GB, free: 5.039 MB / 0.5573 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002095/1.479, allocations: 20.56 kB / 0.7823 GB, free: 5.039 MB / 0.5573 GB Notification: Performance of NFTyping.typeComponents: time 0.00437/1.484, allocations: 0.9429 MB / 0.7832 GB, free: 5.031 MB / 0.5573 GB Notification: Performance of NFTyping.typeBindings: time 0.02226/1.506, allocations: 3.49 MB / 0.7867 GB, free: 4.992 MB / 0.5573 GB Notification: Performance of NFTyping.typeClassSections: time 0.01433/1.52, allocations: 2.314 MB / 0.7889 GB, free: 4.965 MB / 0.5573 GB Notification: Performance of NFFlatten.flatten: time 0.004451/1.525, allocations: 1.189 MB / 0.7901 GB, free: 4.965 MB / 0.5573 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001453/1.526, allocations: 488 kB / 0.7905 GB, free: 4.867 MB / 0.5573 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003538/1.53, allocations: 0.8984 MB / 0.7914 GB, free: 4.855 MB / 0.5573 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00195/1.532, allocations: 0.5461 MB / 0.792 GB, free: 4.852 MB / 0.5573 GB Notification: Performance of NFPackage.collectConstants: time 0.0004549/1.532, allocations: 47.81 kB / 0.792 GB, free: 4.852 MB / 0.5573 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03129/1.563, allocations: 9.138 MB / 0.8009 GB, free: 4.844 MB / 0.5573 GB Notification: Performance of NFScalarize.scalarize: time 0.001622/1.565, allocations: 318.6 kB / 0.8012 GB, free: 4.844 MB / 0.5573 GB Notification: Performance of NFVerifyModel.verify: time 0.001833/1.567, allocations: 300.2 kB / 0.8015 GB, free: 20.81 MB / 0.573 GB Notification: Performance of NFConvertDAE.convert: time 0.01759/1.585, allocations: 4.114 MB / 0.8055 GB, free: 20.16 MB / 0.573 GB Notification: Performance of FrontEnd - DAE generated: time 5.391e-06/1.585, allocations: 0 / 0.8055 GB, free: 20.16 MB / 0.573 GB Notification: Performance of FrontEnd: time 4.608e-06/1.585, allocations: 4 kB / 0.8055 GB, free: 20.16 MB / 0.573 GB Notification: Performance of Transformations before backend: time 0.0001098/1.585, allocations: 0 / 0.8055 GB, free: 20.16 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.0104/1.595, allocations: 2.527 MB / 0.808 GB, free: 18.56 MB / 0.573 GB Notification: Performance of prepare preOptimizeDAE: time 6.046e-05/1.595, allocations: 8.219 kB / 0.808 GB, free: 18.56 MB / 0.573 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007418/1.596, allocations: 183.5 kB / 0.8082 GB, free: 18.49 MB / 0.573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007374/1.597, allocations: 149.8 kB / 0.8083 GB, free: 18.42 MB / 0.573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001795/1.599, allocations: 0.6702 MB / 0.809 GB, free: 18.04 MB / 0.573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000118/1.599, allocations: 86.38 kB / 0.8091 GB, free: 18.04 MB / 0.573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004096/1.599, allocations: 130.1 kB / 0.8092 GB, free: 18.02 MB / 0.573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003814/1.603, allocations: 1.772 MB / 0.8109 GB, free: 17.61 MB / 0.573 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.468e-05/1.603, allocations: 0 / 0.8109 GB, free: 17.61 MB / 0.573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001567/1.603, allocations: 48.98 kB / 0.811 GB, free: 17.61 MB / 0.573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001872/1.604, allocations: 111.5 kB / 0.8111 GB, free: 17.59 MB / 0.573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003167/1.607, allocations: 1.888 MB / 0.8129 GB, free: 17.32 MB / 0.573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01307/1.62, allocations: 8.137 MB / 0.8209 GB, free: 11.55 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001779/1.622, allocations: 0.9489 MB / 0.8218 GB, free: 11.33 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0028/1.625, allocations: 2.379 MB / 0.8241 GB, free: 8.73 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.12e-05/1.625, allocations: 43.95 kB / 0.8242 GB, free: 8.688 MB / 0.573 GB Notification: Performance of pre-optimization done (n=105): time 8.666e-06/1.625, allocations: 3.984 kB / 0.8242 GB, free: 8.684 MB / 0.573 GB Notification: Performance of matching and sorting (n=107): time 0.009846/1.634, allocations: 4.065 MB / 0.8281 GB, free: 7.539 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.563e-05/1.635, allocations: 60.34 kB / 0.8282 GB, free: 7.477 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009644/1.636, allocations: 0.4901 MB / 0.8287 GB, free: 7.289 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.0001008/1.636, allocations: 46.77 kB / 0.8287 GB, free: 7.258 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003993/1.636, allocations: 496.7 kB / 0.8292 GB, free: 6.961 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003963/1.637, allocations: 368.1 kB / 0.8295 GB, free: 6.691 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.625e-05/1.637, allocations: 24.84 kB / 0.8296 GB, free: 6.688 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0002208/1.637, allocations: 391.6 kB / 0.8299 GB, free: 6.348 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009119/1.638, allocations: 0.5305 MB / 0.8304 GB, free: 6.281 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009405/1.639, allocations: 0.6115 MB / 0.831 GB, free: 6.164 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.001258/1.64, allocations: 0.679 MB / 0.8317 GB, free: 6.02 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.414e-06/1.64, allocations: 0 / 0.8317 GB, free: 6.02 MB / 0.573 GB Notification: Performance of matching and sorting (n=115) (initialization): time 0.003325/1.643, allocations: 1.568 MB / 0.8332 GB, free: 5.734 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 2.938e-05/1.643, allocations: 3.125 kB / 0.8332 GB, free: 5.734 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.674e-05/1.643, allocations: 1.375 kB / 0.8332 GB, free: 5.734 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006965/1.644, allocations: 167.9 kB / 0.8334 GB, free: 5.691 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008098/1.645, allocations: 206 kB / 0.8336 GB, free: 5.652 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003733/1.649, allocations: 2.539 MB / 0.8361 GB, free: 4.113 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009411/1.65, allocations: 91.3 kB / 0.8362 GB, free: 4.082 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002416/1.65, allocations: 106.6 kB / 0.8363 GB, free: 4.062 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.0008429/1.651, allocations: 319.3 kB / 0.8366 GB, free: 3.926 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002619/1.651, allocations: 82.06 kB / 0.8366 GB, free: 3.883 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005167/1.656, allocations: 1.979 MB / 0.8386 GB, free: 3.441 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.169e-05/1.656, allocations: 19.19 kB / 0.8386 GB, free: 3.438 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.295e-05/1.656, allocations: 3.312 kB / 0.8386 GB, free: 3.438 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.6e-05/1.656, allocations: 7.969 kB / 0.8386 GB, free: 3.43 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006515/1.663, allocations: 3.511 MB / 0.842 GB, free: 2.309 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.207e-06/1.663, allocations: 0 / 0.842 GB, free: 2.309 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007271/1.664, allocations: 206.5 kB / 0.8422 GB, free: 2.27 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005836/1.664, allocations: 179.4 kB / 0.8424 GB, free: 2.211 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001301/1.664, allocations: 58.33 kB / 0.8425 GB, free: 2.195 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003333/1.668, allocations: 2.54 MB / 0.8449 GB, free: 0.6172 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.415e-06/1.668, allocations: 0 / 0.8449 GB, free: 0.6172 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004295/1.672, allocations: 2.568 MB / 0.8475 GB, free: 14.95 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005007/1.673, allocations: 150.3 kB / 0.8476 GB, free: 14.78 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002207/1.673, allocations: 22.83 kB / 0.8476 GB, free: 14.77 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000956/1.674, allocations: 105.7 kB / 0.8477 GB, free: 14.69 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002314/1.674, allocations: 98.83 kB / 0.8478 GB, free: 14.6 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000261/1.674, allocations: 98.56 kB / 0.8479 GB, free: 14.52 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.0006005/1.675, allocations: 351 kB / 0.8482 GB, free: 14.25 MB / 0.5886 GB Notification: Performance of sort global known variables: time 1.71e-07/1.675, allocations: 0 / 0.8482 GB, free: 14.25 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.004973/1.68, allocations: 1.171 MB / 0.8494 GB, free: 13.2 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.01312/1.693, allocations: 5.343 MB / 0.8546 GB, free: 8.938 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.004379/1.697, allocations: 1.727 MB / 0.8563 GB, free: 7.742 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 9.879e-06/1.697, allocations: 4 kB / 0.8563 GB, free: 7.738 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.002206/1.7, allocations: 1.06 MB / 0.8573 GB, free: 6.996 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002104/1.702, allocations: 330.7 kB / 0.8576 GB, free: 6.75 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01897/1.721, allocations: 8.36 MB / 0.8658 GB, free: 15.77 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001627/1.723, allocations: 1.196 MB / 0.867 GB, free: 14.58 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 0.001948/1.725, allocations: 375.9 kB / 0.8673 GB, free: 14.22 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001025/1.726, allocations: 0.5015 MB / 0.8678 GB, free: 14.06 MB / 0.6042 GB Notification: Performance of SimCode: time 1.713e-06/1.726, allocations: 0 / 0.8678 GB, free: 14.06 MB / 0.6042 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).