Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_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_ModelicaTest_Fluid_TestExamplesVariants_HeatingSystem_SteadyState",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState,fileNamePrefix="ModelicaTest_3_2_3_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.001508/0.001509, allocations: 183.5 kB / 15.76 MB, free: 6.367 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.757/1.757, allocations: 205.4 MB / 221.9 MB, free: 13.84 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.001215/0.001216, allocations: 86.88 kB / 270.2 MB, free: 13.37 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2319/0.2319, allocations: 43.56 MB / 362.1 MB, free: 11.31 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003395/0.0003395, allocations: 11.98 kB / 431.5 MB, free: 19.51 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1238/0.1242, allocations: 58.85 MB / 490.3 MB, free: 8.59 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.416/8.54, allocations: 3.164 GB / 3.643 GB, free: 71.18 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002952/8.541, allocations: 88.39 kB / 3.643 GB, free: 71.13 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 11.31/19.85, allocations: 3.099 GB / 6.741 GB, free: 26.53 MB / 0.5417 GB Notification: Performance of FrontEnd: time 2.916e-06/19.85, allocations: 0 / 6.741 GB, free: 26.53 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.000388/19.85, allocations: 63.92 kB / 6.742 GB, free: 26.46 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.01854/19.87, allocations: 3.917 MB / 6.745 GB, free: 22.48 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 5.431e-05/19.87, allocations: 8.031 kB / 6.745 GB, free: 22.47 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002029/19.87, allocations: 347.4 kB / 6.746 GB, free: 22.12 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002365/19.88, allocations: 316.8 kB / 6.746 GB, free: 21.81 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008421/19.89, allocations: 2.09 MB / 6.748 GB, free: 19.66 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003054/19.89, allocations: 219.2 kB / 6.748 GB, free: 19.44 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001179/19.89, allocations: 188 kB / 6.748 GB, free: 19.25 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007208/19.89, allocations: 3.352 MB / 6.752 GB, free: 15.73 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.684e-05/19.89, allocations: 7.938 kB / 6.752 GB, free: 15.72 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000288/19.89, allocations: 87.97 kB / 6.752 GB, free: 15.63 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002325/19.89, allocations: 203.8 kB / 6.752 GB, free: 15.43 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004973/19.9, allocations: 3.087 MB / 6.755 GB, free: 12.34 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.4233/20.32, allocations: 12.48 MB / 6.767 GB, free: 44.93 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004768/20.33, allocations: 2.285 MB / 6.769 GB, free: 44.79 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00945/20.34, allocations: 5.651 MB / 6.775 GB, free: 42.1 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.722e-05/20.34, allocations: 50.78 kB / 6.775 GB, free: 42.06 MB / 0.5417 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001311/20.34, allocations: 252.8 kB / 6.775 GB, free: 42.06 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=161): time 5.36e-06/20.34, allocations: 0 / 6.775 GB, free: 42.06 MB / 0.5417 GB Notification: Performance of matching and sorting (n=263): time 0.553/20.89, allocations: 52.19 MB / 6.826 GB, free: 38.89 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.1879/21.08, allocations: 51.83 MB / 6.877 GB, free: 33.02 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003338/21.08, allocations: 1.694 MB / 6.878 GB, free: 32.81 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.001009/21.08, allocations: 66.89 kB / 6.879 GB, free: 32.78 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009654/21.09, allocations: 1.071 MB / 6.88 GB, free: 32.39 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.001155/21.09, allocations: 0.8768 MB / 6.88 GB, free: 31.83 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002527/21.09, allocations: 55.97 kB / 6.88 GB, free: 31.83 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001904/21.09, allocations: 413.2 kB / 6.881 GB, free: 31.52 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004025/21.09, allocations: 2.207 MB / 6.883 GB, free: 31.52 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004367/21.1, allocations: 2.784 MB / 6.886 GB, free: 30.91 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005529/21.1, allocations: 2.645 MB / 6.888 GB, free: 30.87 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.742e-05/21.1, allocations: 7.219 kB / 6.888 GB, free: 30.87 MB / 0.5417 GB Notification: Performance of matching and sorting (n=355) (initialization): time 0.01523/21.12, allocations: 7.558 MB / 6.896 GB, free: 30.6 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.001552/21.12, allocations: 6.356 MB / 6.902 GB, free: 23.97 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.501e-05/21.12, allocations: 15.56 kB / 6.902 GB, free: 23.97 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.04565/21.16, allocations: 12.19 MB / 6.914 GB, free: 23.8 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001738/21.17, allocations: 351 kB / 6.914 GB, free: 23.8 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01654/21.18, allocations: 8.759 MB / 6.923 GB, free: 20.37 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004575/21.19, allocations: 274.7 kB / 6.923 GB, free: 20.32 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006147/21.19, allocations: 156.6 kB / 6.923 GB, free: 20.29 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.395e-05/21.19, allocations: 3.812 kB / 6.923 GB, free: 20.29 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01354/21.2, allocations: 7.1 MB / 6.93 GB, free: 17.88 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.089e-05/21.2, allocations: 21.86 kB / 6.93 GB, free: 17.88 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02526/21.23, allocations: 7.901 MB / 6.938 GB, free: 14.57 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002131/21.23, allocations: 390.4 kB / 6.938 GB, free: 14.27 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01576/21.24, allocations: 8.227 MB / 6.946 GB, free: 23.38 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004669/21.25, allocations: 271 kB / 6.946 GB, free: 23.18 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009011/21.25, allocations: 158.2 kB / 6.947 GB, free: 23.05 MB / 0.5573 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.002844/21.25, allocations: 0.7638 MB / 6.947 GB, free: 22.38 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009324/21.25, allocations: 250.1 kB / 6.948 GB, free: 22.13 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0161/21.27, allocations: 8.109 MB / 6.956 GB, free: 15.56 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.332e-05/21.27, allocations: 33.83 kB / 6.956 GB, free: 15.53 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.791e-06/21.27, allocations: 3.969 kB / 6.956 GB, free: 15.53 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01483/21.28, allocations: 7.13 MB / 6.963 GB, free: 9.457 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4289/21.71, allocations: 14.17 MB / 6.976 GB, free: 57.88 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.514e-05/21.71, allocations: 2.75 kB / 6.976 GB, free: 57.88 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001107/21.71, allocations: 193.3 kB / 6.977 GB, free: 57.88 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0504/21.77, allocations: 11.77 MB / 6.988 GB, free: 57.74 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008848/21.77, allocations: 86.19 kB / 6.988 GB, free: 57.74 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01672/21.78, allocations: 8.457 MB / 6.996 GB, free: 56.63 MB / 0.5573 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.227/22.01, allocations: 60.63 MB / 7.056 GB, free: 51.2 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02342/22.03, allocations: 10.71 MB / 7.066 GB, free: 50.66 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003186/22.04, allocations: 0.852 MB / 7.067 GB, free: 50.43 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001248/22.04, allocations: 58.31 kB / 7.067 GB, free: 50.43 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003927/22.04, allocations: 259.3 kB / 7.067 GB, free: 50.42 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006644/22.04, allocations: 205.7 kB / 7.067 GB, free: 50.41 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005122/22.04, allocations: 109.4 kB / 7.068 GB, free: 50.41 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.002878/22.05, allocations: 1.281 MB / 7.069 GB, free: 50.27 MB / 0.5573 GB Notification: Performance of sort global known variables: time 1.132e-06/22.05, allocations: 0 / 7.069 GB, free: 50.27 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.01399/22.06, allocations: 3.207 MB / 7.072 GB, free: 50.25 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.03643/22.1, allocations: 13.97 MB / 7.086 GB, free: 48.73 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.02879/22.13, allocations: 9.244 MB / 7.095 GB, free: 47.51 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 1.305e-05/22.13, allocations: 0 / 7.095 GB, free: 47.51 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.01016/22.14, allocations: 3.279 MB / 7.098 GB, free: 46.55 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005887/22.14, allocations: 0.9047 MB / 7.099 GB, free: 46.33 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]