Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState.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/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/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(ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestExamplesVariants_HeatingSystem_SteadyState",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestExamplesVariants_HeatingSystem_SteadyState",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.001507/0.001507, allocations: 186 kB / 16.41 MB, free: 5.727 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.018/2.018, allocations: 205.4 MB / 222.5 MB, free: 9.113 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.001158/0.001157, allocations: 86.86 kB / 270.9 MB, free: 8.363 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.5528/0.5528, allocations: 43.56 MB / 362.7 MB, free: 52.14 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006679/0.0006682, allocations: 8 kB / 431.5 MB, free: 6.059 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1384/0.1391, allocations: 58.84 MB / 490.3 MB, free: 11.13 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 10.07/10.21, allocations: 3.164 GB / 3.643 GB, free: 126.4 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003476/10.21, allocations: 85.05 kB / 3.643 GB, free: 126.4 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 14.1/24.31, allocations: 3.099 GB / 6.741 GB, free: 55.88 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.984e-06/24.31, allocations: 0 / 6.741 GB, free: 55.88 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.0003495/24.31, allocations: 65.81 kB / 6.742 GB, free: 55.86 MB / 0.5417 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 538 * Number of variables: 538 Notification: Performance of Generate backend data structure: time 0.02018/24.33, allocations: 3.904 MB / 6.745 GB, free: 53.91 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.933e-05/24.33, allocations: 11.44 kB / 6.745 GB, free: 53.91 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001987/24.33, allocations: 350 kB / 6.746 GB, free: 53.85 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001986/24.33, allocations: 318.8 kB / 6.746 GB, free: 53.7 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009206/24.34, allocations: 2.085 MB / 6.748 GB, free: 53.23 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003608/24.34, allocations: 214.5 kB / 6.748 GB, free: 53.17 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001204/24.34, allocations: 189.4 kB / 6.748 GB, free: 53.17 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01003/24.35, allocations: 3.352 MB / 6.752 GB, free: 52.66 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.157e-05/24.35, allocations: 0 / 6.752 GB, free: 52.66 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000453/24.35, allocations: 89.75 kB / 6.752 GB, free: 52.66 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003693/24.35, allocations: 205 kB / 6.752 GB, free: 52.65 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009689/24.36, allocations: 3.092 MB / 6.755 GB, free: 52.61 MB / 0.5417 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03369/24.4, allocations: 12.49 MB / 6.767 GB, free: 46.91 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00723/24.4, allocations: 2.284 MB / 6.769 GB, free: 45.95 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01441/24.42, allocations: 5.649 MB / 6.775 GB, free: 42.04 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.783e-05/24.42, allocations: 56.16 kB / 6.775 GB, free: 41.99 MB / 0.5417 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001729/24.42, allocations: 253.4 kB / 6.775 GB, free: 41.88 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=161): time 7.815e-06/24.42, allocations: 0 / 6.775 GB, free: 41.88 MB / 0.5417 GB Notification: Performance of matching and sorting (n=263): time 1.035/25.46, allocations: 52.19 MB / 6.826 GB, free: 0.7461 MB / 0.5417 GB Error: Jacobian StateSetJac0 contains non-linear components. This indicates a singular system or internal generation errors. Notification: Performance of inlineWhenForInitialization (initialization): time 0.7929/26.25, allocations: 51.82 MB / 6.877 GB, free: 45.69 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004516/26.25, allocations: 1.689 MB / 6.878 GB, free: 45.5 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0008963/26.25, allocations: 72.98 kB / 6.879 GB, free: 45.46 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009605/26.25, allocations: 0.99 MB / 6.879 GB, free: 45.14 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.001627/26.26, allocations: 0.8769 MB / 6.88 GB, free: 44.68 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005827/26.26, allocations: 55.53 kB / 6.88 GB, free: 44.68 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.000253/26.26, allocations: 428.7 kB / 6.881 GB, free: 44.37 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008231/26.27, allocations: 2.205 MB / 6.883 GB, free: 44.36 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008564/26.27, allocations: 2.781 MB / 6.886 GB, free: 43.76 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01029/26.28, allocations: 2.649 MB / 6.888 GB, free: 43.72 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.46e-05/26.28, allocations: 3.219 kB / 6.888 GB, free: 43.72 MB / 0.5417 GB Notification: Performance of matching and sorting (n=355) (initialization): time 0.02726/26.31, allocations: 7.437 MB / 6.896 GB, free: 43.52 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.001376/26.31, allocations: 6.095 MB / 6.901 GB, free: 37.17 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.956e-05/26.31, allocations: 17.53 kB / 6.901 GB, free: 37.17 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.08617/26.4, allocations: 12.19 MB / 6.913 GB, free: 37.01 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003353/26.4, allocations: 352 kB / 6.914 GB, free: 37.01 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03185/26.43, allocations: 8.762 MB / 6.922 GB, free: 35.84 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006735/26.44, allocations: 277.4 kB / 6.923 GB, free: 35.83 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007477/26.44, allocations: 150.7 kB / 6.923 GB, free: 35.83 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.61e-05/26.44, allocations: 8.75 kB / 6.923 GB, free: 35.83 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02638/26.47, allocations: 7.104 MB / 6.93 GB, free: 35.72 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.984e-05/26.47, allocations: 13.59 kB / 6.93 GB, free: 35.72 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.04272/26.51, allocations: 7.175 MB / 6.937 GB, free: 35.65 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003511/26.52, allocations: 391.8 kB / 6.937 GB, free: 35.65 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02922/26.54, allocations: 8.223 MB / 6.945 GB, free: 33.09 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005951/26.55, allocations: 279.5 kB / 6.945 GB, free: 33.02 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008987/26.55, allocations: 148.9 kB / 6.945 GB, free: 33 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 70 * Number of states: 0 () * Number of discrete variables: 4 (tank.regularFlow[1],tank.regularFlow[2],tank.inFlow[1],tank.inFlow[2]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (165): * Single equations (assignments): 163 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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: 0 * Non-linear torn systems: 2 {16 79,19 78} Notification: Performance of prepare postOptimizeDAE: time 0.003005/26.55, allocations: 0.7617 MB / 6.946 GB, free: 32.57 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00104/26.56, allocations: 255.3 kB / 6.946 GB, free: 32.43 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03067/26.59, allocations: 8.1 MB / 6.954 GB, free: 29.64 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.619e-05/26.59, allocations: 34.45 kB / 6.954 GB, free: 29.64 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.304e-06/26.59, allocations: 3.156 kB / 6.954 GB, free: 29.64 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.02722/26.61, allocations: 7.13 MB / 6.961 GB, free: 26.97 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05086/26.66, allocations: 14.07 MB / 6.975 GB, free: 21.46 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.625e-05/26.66, allocations: 3.938 kB / 6.975 GB, free: 21.46 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001809/26.67, allocations: 191.6 kB / 6.975 GB, free: 21.45 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.08493/26.75, allocations: 11.78 MB / 6.987 GB, free: 20.23 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009641/26.75, allocations: 86.05 kB / 6.987 GB, free: 20.19 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02808/26.78, allocations: 8.462 MB / 6.995 GB, free: 15.89 MB / 0.5417 GB Error: Jacobian StateSetJac10 contains non-linear components. This indicates a singular system or internal generation errors. Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.9065/27.69, allocations: 60.67 MB / 7.054 GB, free: 57.83 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04843/27.74, allocations: 10.71 MB / 7.065 GB, free: 57.39 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004825/27.74, allocations: 0.856 MB / 7.066 GB, free: 57.3 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001792/27.74, allocations: 50.19 kB / 7.066 GB, free: 57.3 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007998/27.75, allocations: 254.9 kB / 7.066 GB, free: 57.3 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001479/27.75, allocations: 208.7 kB / 7.066 GB, free: 57.29 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008746/27.75, allocations: 112.6 kB / 7.066 GB, free: 57.29 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.004258/27.76, allocations: 1.279 MB / 7.068 GB, free: 57.15 MB / 0.5573 GB Notification: Performance of sort global known variables: time 1.102e-06/27.76, allocations: 0 / 7.068 GB, free: 57.15 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.02188/27.78, allocations: 3.206 MB / 7.071 GB, free: 57.15 MB / 0.5573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 1 ($STATESET1.x) * Number of discrete variables: 4 (tank.regularFlow[1],tank.regularFlow[2],tank.inFlow[1],tank.inFlow[2]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (96): * Single equations (assignments): 90 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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: 0 * Non-linear torn systems: 2 {15 78,19 108} Notification: Performance of Backend phase and start with SimCode phase: time 0.07241/27.85, allocations: 13.97 MB / 7.084 GB, free: 55.71 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.0614/27.91, allocations: 9.232 MB / 7.093 GB, free: 55.51 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 1.62e-05/27.91, allocations: 0 / 7.093 GB, free: 55.51 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.02235/27.94, allocations: 3.256 MB / 7.096 GB, free: 55.43 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01043/27.95, allocations: 0.9047 MB / 7.097 GB, free: 55.41 MB / 0.5573 GB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:4493:9-4493:59:writable] Error: Internal error function createStateSetsSets failed. [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:748:5-748:146:writable] Error: Internal error function createSimCode failed [Transformation from optimised DAE to simulation code structure failed]