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.001567/0.001567, allocations: 95.34 kB / 16.99 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001542/0.001542, allocations: 203.8 kB / 17.9 MB, free: 5.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.381/1.381, allocations: 227.3 MB / 245.9 MB, free: 12.03 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2163/0.2163, allocations: 45.91 MB / 344 MB, free: 12.3 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002721/0.0002721, allocations: 7.984 kB / 418.1 MB, free: 20.77 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.126/0.1263, allocations: 63.46 MB / 481.5 MB, free: 5.297 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState): time 0.341/0.4673, allocations: 67.68 MB / 0.5363 GB, free: 7.449 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.03246/0.4998, allocations: 20.71 MB / 0.5565 GB, free: 8.652 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004808/0.5047, allocations: 103 kB / 0.5566 GB, free: 8.598 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003723/0.5084, allocations: 0.9105 MB / 0.5575 GB, free: 7.805 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0101/0.5185, allocations: 2.701 MB / 0.5602 GB, free: 5.609 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.016/0.5346, allocations: 5.461 MB / 0.5655 GB, free: 1.789 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.007823/0.5424, allocations: 3.784 MB / 0.5692 GB, free: 14.72 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003127/0.5455, allocations: 1.5 MB / 0.5707 GB, free: 13.2 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.2061/0.7517, allocations: 123.9 MB / 0.6917 GB, free: 1.223 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.4088/1.161, allocations: 53.34 MB / 0.7438 GB, free: 120 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 0.0009391/1.162, allocations: 124 kB / 0.7439 GB, free: 119.9 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01429/1.176, allocations: 8.024 MB / 0.7517 GB, free: 113.9 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.001653/1.178, allocations: 0.8612 MB / 0.7526 GB, free: 113.3 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.00114/1.179, allocations: 0.5272 MB / 0.7531 GB, free: 113 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.006499/1.185, allocations: 3.808 MB / 0.7568 GB, free: 109.7 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 5.11e-06/1.185, allocations: 3.438 kB / 0.7568 GB, free: 109.7 MB / 0.5294 GB Notification: Performance of FrontEnd: time 3.296e-06/1.185, allocations: 0 / 0.7568 GB, free: 109.7 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 9.248e-05/1.185, allocations: 1.531 kB / 0.7568 GB, free: 109.7 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.007329/1.193, allocations: 2.996 MB / 0.7597 GB, free: 106.9 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 4.824e-05/1.193, allocations: 17.42 kB / 0.7597 GB, free: 106.9 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009384/1.194, allocations: 342.9 kB / 0.7601 GB, free: 106.7 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00101/1.195, allocations: 314.9 kB / 0.7604 GB, free: 106.4 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00282/1.198, allocations: 1.514 MB / 0.7619 GB, free: 105.2 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001591/1.198, allocations: 215.5 kB / 0.7621 GB, free: 105 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002746/1.198, allocations: 191.1 kB / 0.7622 GB, free: 104.9 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004409/1.202, allocations: 3.253 MB / 0.7654 GB, free: 102.5 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.754e-05/1.202, allocations: 11.17 kB / 0.7654 GB, free: 102.5 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002195/1.203, allocations: 87.58 kB / 0.7655 GB, free: 102.5 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002468/1.203, allocations: 256.8 kB / 0.7658 GB, free: 102.3 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004531/1.207, allocations: 3.088 MB / 0.7688 GB, free: 100.2 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.02131/1.229, allocations: 14 MB / 0.7824 GB, free: 87.97 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003688/1.233, allocations: 2.206 MB / 0.7846 GB, free: 86.57 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.008073/1.241, allocations: 5.708 MB / 0.7902 GB, free: 81.48 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.216e-05/1.241, allocations: 50.69 kB / 0.7902 GB, free: 81.43 MB / 0.5294 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001114/1.242, allocations: 231.6 kB / 0.7904 GB, free: 81.22 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=160): time 9.417e-06/1.242, allocations: 0 / 0.7904 GB, free: 81.22 MB / 0.5294 GB Notification: Performance of matching and sorting (n=262): time 0.4775/1.719, allocations: 56.07 MB / 0.8452 GB, free: 30.52 MB / 0.5294 GB Error: Jacobian StateSetJac0 contains non-linear components. This indicates a singular system or internal generation errors. Notification: Performance of inlineWhenForInitialization (initialization): time 0.1978/1.917, allocations: 59.34 MB / 0.9031 GB, free: 5.473 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002588/1.92, allocations: 1.842 MB / 0.9049 GB, free: 3.59 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0006868/1.921, allocations: 72.55 kB / 0.905 GB, free: 3.516 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007824/1.921, allocations: 1.083 MB / 0.9061 GB, free: 2.426 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009922/1.922, allocations: 0.8849 MB / 0.9069 GB, free: 1.551 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002281/1.923, allocations: 52 kB / 0.907 GB, free: 1.5 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001822/1.923, allocations: 423.9 kB / 0.9074 GB, free: 1.082 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004038/1.927, allocations: 2.184 MB / 0.9095 GB, free: 14.89 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004584/1.931, allocations: 2.813 MB / 0.9123 GB, free: 11.83 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005458/1.937, allocations: 2.618 MB / 0.9148 GB, free: 9.211 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.754e-05/1.937, allocations: 8 kB / 0.9148 GB, free: 9.203 MB / 0.5762 GB Notification: Performance of matching and sorting (n=361) (initialization): time 0.01662/1.954, allocations: 7.518 MB / 0.9222 GB, free: 1.734 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 0.2838/2.237, allocations: 7.507 MB / 0.9295 GB, free: 226.9 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.622e-05/2.238, allocations: 22.81 kB / 0.9295 GB, free: 226.9 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.04922/2.287, allocations: 11.98 MB / 0.9412 GB, free: 226.8 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001774/2.289, allocations: 353.4 kB / 0.9416 GB, free: 226.8 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01985/2.308, allocations: 8.772 MB / 0.9501 GB, free: 223.4 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005491/2.314, allocations: 276.4 kB / 0.9504 GB, free: 223.3 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008817/2.315, allocations: 151.3 kB / 0.9505 GB, free: 223.3 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.599e-05/2.315, allocations: 7.406 kB / 0.9505 GB, free: 223.3 MB / 0.5762 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01773/2.333, allocations: 7.097 MB / 0.9575 GB, free: 220.8 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001143/2.333, allocations: 19.28 kB / 0.9575 GB, free: 220.8 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02938/2.362, allocations: 7.952 MB / 0.9653 GB, free: 214.6 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001958/2.364, allocations: 399.3 kB / 0.9656 GB, free: 214.2 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0141/2.378, allocations: 8.276 MB / 0.9737 GB, free: 206 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00366/2.382, allocations: 269 kB / 0.974 GB, free: 205.8 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003626/2.382, allocations: 147.9 kB / 0.9741 GB, free: 205.6 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 83 * 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 {16 79,19 78} Notification: Performance of prepare postOptimizeDAE: time 0.001505/2.384, allocations: 0.7846 MB / 0.9749 GB, free: 204.8 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005213/2.385, allocations: 247.5 kB / 0.9751 GB, free: 204.7 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01331/2.398, allocations: 7.94 MB / 0.9829 GB, free: 196.8 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.019e-05/2.398, allocations: 38.5 kB / 0.9829 GB, free: 196.8 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.338e-06/2.398, allocations: 0 / 0.9829 GB, free: 196.8 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01105/2.409, allocations: 6.979 MB / 0.9897 GB, free: 189.7 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0236/2.433, allocations: 13.93 MB / 1.003 GB, free: 175.7 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.347e-05/2.433, allocations: 0 / 1.003 GB, free: 175.7 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008864/2.434, allocations: 199.9 kB / 1.004 GB, free: 175.5 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.04054/2.474, allocations: 11.59 MB / 1.015 GB, free: 164 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006424/2.475, allocations: 79.95 kB / 1.015 GB, free: 163.9 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01392/2.489, allocations: 8.49 MB / 1.023 GB, free: 155.4 MB / 0.5762 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.194/2.683, allocations: 56.19 MB / 1.078 GB, free: 98.98 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01855/2.701, allocations: 10.71 MB / 1.089 GB, free: 88.15 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002453/2.704, allocations: 0.8451 MB / 1.089 GB, free: 87.29 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005464/2.704, allocations: 52 kB / 1.089 GB, free: 87.24 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0027/2.707, allocations: 262.8 kB / 1.09 GB, free: 86.99 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003962/2.708, allocations: 198.1 kB / 1.09 GB, free: 86.8 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002675/2.708, allocations: 111.9 kB / 1.09 GB, free: 86.69 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.001494/2.709, allocations: 1.225 MB / 1.091 GB, free: 85.44 MB / 0.5762 GB Notification: Performance of sort global known variables: time 2.9e-07/2.709, allocations: 7.938 kB / 1.091 GB, free: 85.43 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.008451/2.718, allocations: 2.909 MB / 1.094 GB, free: 82.75 MB / 0.5762 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 (94): * Single equations (assignments): 88 * 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 106} Notification: Performance of Backend phase and start with SimCode phase: time 0.02519/2.743, allocations: 13.5 MB / 1.107 GB, free: 69.41 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.02395/2.767, allocations: 9.256 MB / 1.116 GB, free: 60.12 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 9.217e-06/2.767, allocations: 4 kB / 1.116 GB, free: 60.12 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.00871/2.776, allocations: 3.273 MB / 1.119 GB, free: 56.84 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004759/2.781, allocations: 0.9243 MB / 1.12 GB, free: 55.93 MB / 0.5762 GB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:4497:9-4497: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]