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.00136/0.00136, allocations: 122.8 kB / 17.79 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00149/0.00149, allocations: 197.2 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.429/1.429, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2475/0.2475, allocations: 46.11 MB / 344.3 MB, free: 11.48 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001551/0.001551, allocations: 75.88 kB / 480.9 MB, free: 4.516 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3796/0.3812, allocations: 62.42 MB / 0.5305 GB, free: 13.38 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState): time 0.1016/0.4829, allocations: 90.46 MB / 0.6189 GB, free: 7.02 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.03534/0.5183, allocations: 21.34 MB / 0.6397 GB, free: 1.625 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002939/0.5213, allocations: 95.44 kB / 0.6398 GB, free: 1.531 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003156/0.5245, allocations: 0.9395 MB / 0.6407 GB, free: 0.5859 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01057/0.5351, allocations: 3.733 MB / 0.6444 GB, free: 12.83 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.01455/0.5497, allocations: 5.674 MB / 0.6499 GB, free: 7.16 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.01017/0.5599, allocations: 6.929 MB / 0.6567 GB, free: 220 kB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00389/0.5638, allocations: 1.821 MB / 0.6585 GB, free: 14.37 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.5037/1.068, allocations: 74.97 MB / 0.7317 GB, free: 59.27 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.05873/1.126, allocations: 31.93 MB / 0.7629 GB, free: 49.55 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.001216/1.128, allocations: 247.9 kB / 0.7631 GB, free: 49.55 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01386/1.141, allocations: 6.112 MB / 0.7691 GB, free: 48.56 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.002218/1.144, allocations: 1.067 MB / 0.7701 GB, free: 48.56 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.003424/1.147, allocations: 1.491 MB / 0.7716 GB, free: 48.51 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.01084/1.158, allocations: 5.514 MB / 0.7769 GB, free: 45.02 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 6.652e-06/1.158, allocations: 0 / 0.7769 GB, free: 45.02 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.713e-06/1.158, allocations: 0 / 0.7769 GB, free: 45.02 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 0.0001383/1.158, allocations: 0 / 0.7769 GB, free: 45.02 MB / 0.5606 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.009721/1.168, allocations: 3.489 MB / 0.7804 GB, free: 41.99 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 5.418e-05/1.168, allocations: 12.03 kB / 0.7804 GB, free: 41.98 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005957/1.169, allocations: 349.5 kB / 0.7807 GB, free: 41.76 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001066/1.17, allocations: 312.4 kB / 0.781 GB, free: 41.45 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00307/1.173, allocations: 1.666 MB / 0.7826 GB, free: 40.12 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001533/1.173, allocations: 213.5 kB / 0.7828 GB, free: 39.96 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002971/1.173, allocations: 182.1 kB / 0.783 GB, free: 39.85 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004505/1.178, allocations: 3.293 MB / 0.7862 GB, free: 37.42 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.414e-05/1.178, allocations: 1.875 kB / 0.7862 GB, free: 37.42 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002121/1.178, allocations: 87.38 kB / 0.7863 GB, free: 37.4 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000229/1.178, allocations: 253.8 kB / 0.7865 GB, free: 37.18 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004386/1.183, allocations: 3.1 MB / 0.7896 GB, free: 35.12 MB / 0.5606 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.01671/1.199, allocations: 13.85 MB / 0.8031 GB, free: 22.92 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003677/1.203, allocations: 2.2 MB / 0.8052 GB, free: 21.54 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001651/1.205, allocations: 1.182 MB / 0.8064 GB, free: 20.79 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00764/1.212, allocations: 5.619 MB / 0.8119 GB, free: 15.05 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.861e-05/1.213, allocations: 51.88 kB / 0.8119 GB, free: 15 MB / 0.5606 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0006892/1.213, allocations: 158 kB / 0.8121 GB, free: 14.84 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=158): time 4.469e-06/1.213, allocations: 0 / 0.8121 GB, free: 14.84 MB / 0.5606 GB Notification: Performance of matching and sorting (n=259): time 0.5107/1.724, allocations: 55.32 MB / 0.8661 GB, free: 7.559 MB / 0.6075 GB Error: Jacobian StateSetJac0 contains non-linear components. This indicates a singular system or internal generation errors. Notification: Performance of inlineWhenForInitialization (initialization): time 0.1439/1.868, allocations: 45.51 MB / 0.9106 GB, free: 9.652 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003297/1.871, allocations: 1.862 MB / 0.9124 GB, free: 7.75 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 0.0006406/1.872, allocations: 65.7 kB / 0.9124 GB, free: 7.68 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 0.000916/1.873, allocations: 1.094 MB / 0.9135 GB, free: 6.582 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 0.001351/1.874, allocations: 0.873 MB / 0.9144 GB, free: 5.715 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001954/1.876, allocations: 0.5643 MB / 0.9149 GB, free: 5.145 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 0.0001082/1.876, allocations: 305.1 kB / 0.9152 GB, free: 4.844 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004689/1.881, allocations: 2.186 MB / 0.9173 GB, free: 2.652 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005334/1.886, allocations: 2.82 MB / 0.9201 GB, free: 15.58 MB / 0.67 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01194/1.898, allocations: 5.416 MB / 0.9254 GB, free: 9.949 MB / 0.67 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.95e-05/1.898, allocations: 4 kB / 0.9254 GB, free: 9.945 MB / 0.67 GB Notification: Performance of matching and sorting (n=359) (initialization): time 0.01875/1.917, allocations: 7.473 MB / 0.9327 GB, free: 2.523 MB / 0.67 GB Notification: Performance of prepare postOptimizeDAE: time 7.521e-05/1.917, allocations: 19.92 kB / 0.9327 GB, free: 2.504 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.716e-05/1.917, allocations: 20 kB / 0.9327 GB, free: 2.484 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.04562/1.963, allocations: 11.82 MB / 0.9443 GB, free: 6.68 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001749/1.965, allocations: 349.6 kB / 0.9446 GB, free: 6.359 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01894/1.984, allocations: 8.64 MB / 0.953 GB, free: 13.68 MB / 0.7012 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003613/1.987, allocations: 195.4 kB / 0.9532 GB, free: 13.5 MB / 0.7012 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007064/1.988, allocations: 151.9 kB / 0.9534 GB, free: 13.35 MB / 0.7012 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.005578/1.994, allocations: 2.684 MB / 0.956 GB, free: 10.66 MB / 0.7012 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.00481/1.999, allocations: 2.753 MB / 0.9587 GB, free: 7.648 MB / 0.7012 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0114/2.01, allocations: 5.289 MB / 0.9638 GB, free: 2.141 MB / 0.7012 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.735e-05/2.01, allocations: 8 kB / 0.9638 GB, free: 2.133 MB / 0.7012 GB Notification: Performance of matching and sorting (n=359) (initialization_lambda0): time 0.01715/2.027, allocations: 7.208 MB / 0.9709 GB, free: 10.98 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 3.889e-05/2.027, allocations: 12 kB / 0.9709 GB, free: 10.97 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.745e-05/2.027, allocations: 20 kB / 0.9709 GB, free: 10.95 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02625/2.054, allocations: 7.675 MB / 0.9784 GB, free: 3.277 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001936/2.056, allocations: 394.7 kB / 0.9788 GB, free: 2.918 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3216/2.377, allocations: 8.134 MB / 0.9867 GB, free: 320.9 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003728/2.381, allocations: 194.4 kB / 0.9869 GB, free: 320.9 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005822/2.382, allocations: 149.4 kB / 0.9871 GB, free: 320.9 MB / 0.7169 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.inFlow[2],tank.inFlow[1],tank.regularFlow[2],tank.regularFlow[1]) * 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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(15,79), (18,78)} Notification: Performance of prepare postOptimizeDAE: time 0.0008341/2.382, allocations: 340.8 kB / 0.9874 GB, free: 320.6 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008049/2.383, allocations: 250.6 kB / 0.9876 GB, free: 320.6 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0169/2.4, allocations: 7.821 MB / 0.9953 GB, free: 317.9 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.061e-05/2.4, allocations: 35.27 kB / 0.9953 GB, free: 317.9 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.773e-06/2.4, allocations: 3.562 kB / 0.9953 GB, free: 317.9 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01352/2.414, allocations: 6.887 MB / 1.002 GB, free: 315.2 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02684/2.441, allocations: 13.77 MB / 1.015 GB, free: 307.8 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.803e-05/2.441, allocations: 0 / 1.015 GB, free: 307.8 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008898/2.442, allocations: 187.3 kB / 1.016 GB, free: 307.7 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.03921/2.481, allocations: 11.25 MB / 1.027 GB, free: 297.3 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008019/2.482, allocations: 79.95 kB / 1.027 GB, free: 297.2 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01556/2.497, allocations: 8.331 MB / 1.035 GB, free: 288.9 MB / 0.7169 GB Warning: There are tearing variables with annotation attribute '__OpenModelica_tearingSelect = TearingSelect.never'. Use -d=tearingdump and -d=tearingdumpV for more information. Error: Jacobian StateSetJac9 contains non-linear components. This indicates a singular system or internal generation errors. Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.1256/2.623, allocations: 42.23 MB / 1.076 GB, free: 246.9 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01834/2.641, allocations: 10.44 MB / 1.086 GB, free: 236.3 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002147/2.644, allocations: 0.7968 MB / 1.087 GB, free: 235.5 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007143/2.644, allocations: 52 kB / 1.087 GB, free: 235.5 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00278/2.647, allocations: 179.8 kB / 1.087 GB, free: 235.3 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005042/2.648, allocations: 198.1 kB / 1.087 GB, free: 235.1 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003358/2.648, allocations: 107.9 kB / 1.088 GB, free: 235 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.00178/2.65, allocations: 1.273 MB / 1.089 GB, free: 233.7 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.21e-07/2.65, allocations: 0 / 1.089 GB, free: 233.7 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.008655/2.658, allocations: 2.911 MB / 1.092 GB, free: 231 MB / 0.7169 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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(15,77), (19,105)} Notification: Performance of Backend phase and start with SimCode phase: time 0.02726/2.686, allocations: 12.98 MB / 1.104 GB, free: 218.3 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.02509/2.711, allocations: 9.224 MB / 1.113 GB, free: 209 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 9.898e-06/2.711, allocations: 2 kB / 1.113 GB, free: 209 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.009548/2.72, allocations: 3.21 MB / 1.116 GB, free: 205.8 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005786/2.726, allocations: 1.059 MB / 1.118 GB, free: 204.8 MB / 0.7169 GB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:4690:9-4690:59:writable] Error: Internal error function createStateSetsSets failed. [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:804:5-804:146:writable] Error: Internal error function createSimCode failed [Transformation from optimised DAE to simulation code structure failed]