Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestExamplesVariants_HeatingSystem_SteadyState",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestExamplesVariants_HeatingSystem_SteadyState",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008468/0.0008465, allocations: 98.55 kB / 17 MB, free: 6.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009542/0.0009542, allocations: 193.9 kB / 17.9 MB, free: 5.91 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.362/1.362, allocations: 227.4 MB / 246 MB, free: 11.98 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2124/0.2124, allocations: 45.91 MB / 344.1 MB, free: 12.21 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002758/0.0002759, allocations: 8 kB / 418.2 MB, free: 20.77 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1221/0.1224, allocations: 63.48 MB / 481.6 MB, free: 5.281 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState): time 0.3338/0.4563, allocations: 86.65 MB / 0.555 GB, free: 10.2 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.03444/0.4908, allocations: 20.6 MB / 0.5751 GB, free: 9.883 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004467/0.4953, allocations: 107.1 kB / 0.5752 GB, free: 9.777 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00362/0.4989, allocations: 0.7765 MB / 0.5759 GB, free: 8.996 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01171/0.5107, allocations: 3.436 MB / 0.5793 GB, free: 5.543 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01302/0.5237, allocations: 4.483 MB / 0.5837 GB, free: 1.066 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0129/0.5366, allocations: 8.616 MB / 0.5921 GB, free: 8.434 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004496/0.5412, allocations: 1.499 MB / 0.5935 GB, free: 6.918 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.5136/1.055, allocations: 125.9 MB / 0.7165 GB, free: 117.6 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.07473/1.13, allocations: 55.04 MB / 0.7702 GB, free: 84.61 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 0.0009569/1.131, allocations: 120 kB / 0.7703 GB, free: 84.49 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0143/1.145, allocations: 7.988 MB / 0.7781 GB, free: 78.49 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.002264/1.147, allocations: 0.9406 MB / 0.7791 GB, free: 77.84 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.001265/1.149, allocations: 0.5271 MB / 0.7796 GB, free: 77.53 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.006333/1.155, allocations: 3.837 MB / 0.7833 GB, free: 74.4 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 5.861e-06/1.155, allocations: 0 / 0.7833 GB, free: 74.4 MB / 0.5294 GB Notification: Performance of FrontEnd: time 2.074e-06/1.155, allocations: 0 / 0.7833 GB, free: 74.4 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 6.577e-05/1.155, allocations: 0 / 0.7833 GB, free: 74.4 MB / 0.5294 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.006366/1.161, allocations: 3.017 MB / 0.7863 GB, free: 71.62 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 4.432e-05/1.161, allocations: 16.03 kB / 0.7863 GB, free: 71.6 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006024/1.162, allocations: 338.3 kB / 0.7866 GB, free: 71.39 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007669/1.163, allocations: 315.3 kB / 0.7869 GB, free: 71.08 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002205/1.165, allocations: 1.517 MB / 0.7884 GB, free: 69.9 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001503/1.165, allocations: 214.8 kB / 0.7886 GB, free: 69.75 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002451/1.165, allocations: 185.6 kB / 0.7888 GB, free: 69.62 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004317/1.17, allocations: 3.278 MB / 0.792 GB, free: 67.22 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.371e-05/1.17, allocations: 6.719 kB / 0.792 GB, free: 67.21 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00022/1.17, allocations: 86.36 kB / 0.7921 GB, free: 67.2 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002647/1.17, allocations: 253 kB / 0.7923 GB, free: 66.98 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004565/1.175, allocations: 3.091 MB / 0.7953 GB, free: 64.93 MB / 0.5294 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.01604/1.191, allocations: 13.87 MB / 0.8089 GB, free: 52.73 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003444/1.194, allocations: 2.193 MB / 0.811 GB, free: 51.35 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001659/1.196, allocations: 1.181 MB / 0.8122 GB, free: 50.59 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.007023/1.203, allocations: 5.642 MB / 0.8177 GB, free: 45.52 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.139e-05/1.203, allocations: 58.52 kB / 0.8177 GB, free: 45.46 MB / 0.5294 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0007928/1.204, allocations: 234.2 kB / 0.818 GB, free: 45.25 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=158): time 3.246e-06/1.204, allocations: 0 / 0.818 GB, free: 45.25 MB / 0.5294 GB Notification: Performance of matching and sorting (n=259): time 0.4593/1.663, allocations: 54.82 MB / 0.8715 GB, free: 11.71 MB / 0.545 GB Error: Jacobian StateSetJac0 contains non-linear components. This indicates a singular system or internal generation errors. Notification: Performance of inlineWhenForInitialization (initialization): time 0.1442/1.808, allocations: 45.73 MB / 0.9161 GB, free: 15.13 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004101/1.812, allocations: 1.854 MB / 0.918 GB, free: 13.24 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 0.0009036/1.813, allocations: 65.7 kB / 0.918 GB, free: 13.17 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.001291/1.814, allocations: 1.091 MB / 0.9191 GB, free: 12.07 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.001707/1.816, allocations: 0.8656 MB / 0.9199 GB, free: 11.21 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005177/1.816, allocations: 56 kB / 0.92 GB, free: 11.16 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0002679/1.816, allocations: 419.7 kB / 0.9204 GB, free: 10.74 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006039/1.822, allocations: 2.154 MB / 0.9225 GB, free: 8.586 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006627/1.829, allocations: 2.802 MB / 0.9252 GB, free: 5.531 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00802/1.837, allocations: 2.588 MB / 0.9277 GB, free: 2.941 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.618e-05/1.837, allocations: 4 kB / 0.9277 GB, free: 2.938 MB / 0.5919 GB Notification: Performance of matching and sorting (n=359) (initialization): time 0.3025/2.14, allocations: 7.43 MB / 0.935 GB, free: 246.7 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004/2.14, allocations: 0.6425 MB / 0.9356 GB, free: 246 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.465e-05/2.14, allocations: 19.16 kB / 0.9357 GB, free: 246 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.04475/2.185, allocations: 11.98 MB / 0.9474 GB, free: 245.1 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001515/2.187, allocations: 349.4 kB / 0.9477 GB, free: 245.1 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01548/2.202, allocations: 8.671 MB / 0.9562 GB, free: 241.6 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003701/2.206, allocations: 278.1 kB / 0.9564 GB, free: 241.6 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004534/2.206, allocations: 149.8 kB / 0.9566 GB, free: 241.6 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.1e-05/2.206, allocations: 3.656 kB / 0.9566 GB, free: 241.6 MB / 0.5919 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01278/2.219, allocations: 7.006 MB / 0.9634 GB, free: 238.7 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.298e-05/2.219, allocations: 21.53 kB / 0.9634 GB, free: 238.7 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02304/2.242, allocations: 7.888 MB / 0.9711 GB, free: 232 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001888/2.244, allocations: 399.3 kB / 0.9715 GB, free: 231.6 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0148/2.259, allocations: 8.175 MB / 0.9795 GB, free: 223.4 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003781/2.263, allocations: 266.1 kB / 0.9797 GB, free: 223.2 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007596/2.264, allocations: 147.9 kB / 0.9799 GB, free: 223 MB / 0.5919 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 84 * 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 (171): * Single equations (assignments): 169 * 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 {15 79,18 78} Notification: Performance of prepare postOptimizeDAE: time 0.002078/2.266, allocations: 0.7774 MB / 0.9806 GB, free: 222.3 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008763/2.267, allocations: 245.8 kB / 0.9809 GB, free: 222.2 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01568/2.282, allocations: 7.88 MB / 0.9886 GB, free: 214.3 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.422e-05/2.282, allocations: 28.66 kB / 0.9886 GB, free: 214.3 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.807e-06/2.282, allocations: 3.984 kB / 0.9886 GB, free: 214.3 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01283/2.295, allocations: 6.919 MB / 0.9954 GB, free: 207.2 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02622/2.321, allocations: 13.81 MB / 1.009 GB, free: 193.4 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.775e-05/2.322, allocations: 4.578 kB / 1.009 GB, free: 193.4 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009156/2.322, allocations: 195.9 kB / 1.009 GB, free: 193.2 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.03959/2.362, allocations: 11.5 MB / 1.02 GB, free: 181.7 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006584/2.363, allocations: 85.45 kB / 1.02 GB, free: 181.7 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01449/2.377, allocations: 8.372 MB / 1.029 GB, free: 173.2 MB / 0.5919 GB Error: Jacobian StateSetJac9 contains non-linear components. This indicates a singular system or internal generation errors. Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.1164/2.494, allocations: 45.64 MB / 1.073 GB, free: 127.2 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01815/2.512, allocations: 10.44 MB / 1.083 GB, free: 116.7 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001732/2.514, allocations: 0.8176 MB / 1.084 GB, free: 115.9 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006945/2.514, allocations: 48.06 kB / 1.084 GB, free: 115.8 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002807/2.517, allocations: 257.6 kB / 1.084 GB, free: 115.6 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004116/2.518, allocations: 202.1 kB / 1.085 GB, free: 115.4 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003165/2.518, allocations: 104 kB / 1.085 GB, free: 115.3 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.002208/2.52, allocations: 1.257 MB / 1.086 GB, free: 114 MB / 0.5919 GB Notification: Performance of sort global known variables: time 6.01e-07/2.52, allocations: 3.938 kB / 1.086 GB, free: 114 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.00917/2.529, allocations: 2.91 MB / 1.089 GB, free: 111.3 MB / 0.5919 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 (93): * Single equations (assignments): 87 * 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 77,19 105} Notification: Performance of Backend phase and start with SimCode phase: time 0.02652/2.556, allocations: 12.98 MB / 1.101 GB, free: 98.56 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.02534/2.581, allocations: 9.112 MB / 1.11 GB, free: 89.43 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 9.728e-06/2.581, allocations: 0 / 1.11 GB, free: 89.43 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.008684/2.59, allocations: 3.231 MB / 1.113 GB, free: 86.19 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005431/2.596, allocations: 1.009 MB / 1.114 GB, free: 85.19 MB / 0.5919 GB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:4548:9-4548:59:writable] Error: Internal error function createStateSetsSets failed. [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:754:5-754:146:writable] Error: Internal error function createSimCode failed [Transformation from optimised DAE to simulation code structure failed]