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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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/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 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001459/0.001459, allocations: 109.9 kB / 16.41 MB, free: 6.5 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001543/0.001544, allocations: 185.5 kB / 17.34 MB, free: 5.762 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.295/1.295, allocations: 205.1 MB / 223.2 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1915/0.1915, allocations: 43.53 MB / 314.1 MB, free: 464 kB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002369/0.002369, allocations: 71.88 kB / 441.3 MB, free: 6.145 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1061/0.1084, allocations: 57.79 MB / 499.1 MB, free: 12.28 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState): time 0.3168/0.4253, allocations: 90.18 MB / 0.5755 GB, free: 7.547 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.03185/0.4572, allocations: 21.29 MB / 0.5963 GB, free: 7.812 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00375/0.461, allocations: 89.75 kB / 0.5964 GB, free: 7.777 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002974/0.464, allocations: 0.9463 MB / 0.5973 GB, free: 6.953 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009864/0.4739, allocations: 3.773 MB / 0.601 GB, free: 4.055 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01269/0.4866, allocations: 5.631 MB / 0.6065 GB, free: 8 kB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.008928/0.4955, allocations: 6.904 MB / 0.6132 GB, free: 9.504 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00282/0.4984, allocations: 1.81 MB / 0.615 GB, free: 7.68 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1778/0.6762, allocations: 74.88 MB / 0.6881 GB, free: 11.94 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0813/0.7575, allocations: 31.9 MB / 0.7193 GB, free: 11.65 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.001216/0.7588, allocations: 248 kB / 0.7195 GB, free: 11.41 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01506/0.7739, allocations: 6.085 MB / 0.7254 GB, free: 5.289 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.002046/0.7759, allocations: 1.071 MB / 0.7265 GB, free: 4.215 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.003602/0.7796, allocations: 1.481 MB / 0.7279 GB, free: 2.727 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.01247/0.7921, allocations: 5.517 MB / 0.7333 GB, free: 13.19 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 6.612e-06/0.7921, allocations: 3.938 kB / 0.7333 GB, free: 13.19 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.863e-06/0.7921, allocations: 0 / 0.7333 GB, free: 13.19 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 0.0001761/0.7923, allocations: 4 kB / 0.7333 GB, free: 13.18 MB / 0.5762 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.01107/0.8034, allocations: 3.575 MB / 0.7368 GB, free: 9.539 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.792e-05/0.8034, allocations: 23.88 kB / 0.7368 GB, free: 9.516 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008952/0.8043, allocations: 343.3 kB / 0.7372 GB, free: 9.168 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001295/0.8057, allocations: 322.1 kB / 0.7375 GB, free: 8.852 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003427/0.8091, allocations: 1.681 MB / 0.7391 GB, free: 7.117 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001931/0.8093, allocations: 223.1 kB / 0.7393 GB, free: 6.887 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003178/0.8096, allocations: 188 kB / 0.7395 GB, free: 6.703 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005289/0.8149, allocations: 3.286 MB / 0.7427 GB, free: 3.289 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.66e-05/0.815, allocations: 11.88 kB / 0.7427 GB, free: 3.277 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002435/0.8152, allocations: 83.95 kB / 0.7428 GB, free: 3.195 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003063/0.8156, allocations: 251.8 kB / 0.7431 GB, free: 2.949 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004923/0.8205, allocations: 3.099 MB / 0.7461 GB, free: 15.85 MB / 0.5919 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.01951/0.84, allocations: 13.87 MB / 0.7596 GB, free: 1.051 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.2305/1.071, allocations: 2.192 MB / 0.7618 GB, free: 225.3 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001949/1.073, allocations: 1.177 MB / 0.7629 GB, free: 225.2 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.008306/1.081, allocations: 5.619 MB / 0.7684 GB, free: 222.3 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.495e-05/1.081, allocations: 51.06 kB / 0.7684 GB, free: 222.2 MB / 0.5919 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.000659/1.082, allocations: 162.5 kB / 0.7686 GB, free: 222.2 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=158): time 3.927e-06/1.082, allocations: 0 / 0.7686 GB, free: 222.2 MB / 0.5919 GB Notification: Performance of matching and sorting (n=259): time 0.4808/1.562, allocations: 56.34 MB / 0.8236 GB, free: 183.1 MB / 0.5919 GB Error: Jacobian StateSetJac0 contains non-linear components. This indicates a singular system or internal generation errors. Notification: Performance of inlineWhenForInitialization (initialization): time 0.1249/1.687, allocations: 46.44 MB / 0.869 GB, free: 136.2 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002531/1.69, allocations: 1.862 MB / 0.8708 GB, free: 134.3 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 0.0005977/1.691, allocations: 73.7 kB / 0.8709 GB, free: 134.2 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.00063/1.691, allocations: 1.114 MB / 0.8719 GB, free: 133.2 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009411/1.692, allocations: 0.9137 MB / 0.8728 GB, free: 132.4 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009624/1.693, allocations: 0.5683 MB / 0.8734 GB, free: 131.8 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 3.769e-05/1.693, allocations: 301.1 kB / 0.8737 GB, free: 131.5 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00339/1.697, allocations: 2.18 MB / 0.8758 GB, free: 129.3 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003703/1.7, allocations: 2.822 MB / 0.8786 GB, free: 126.2 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009237/1.71, allocations: 5.457 MB / 0.8839 GB, free: 120.5 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.715e-05/1.71, allocations: 8 kB / 0.8839 GB, free: 120.5 MB / 0.5919 GB Notification: Performance of matching and sorting (n=359) (initialization): time 0.01392/1.724, allocations: 7.511 MB / 0.8912 GB, free: 112.9 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 3.749e-05/1.724, allocations: 16 kB / 0.8913 GB, free: 112.9 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.815e-05/1.724, allocations: 16 kB / 0.8913 GB, free: 112.9 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.04286/1.767, allocations: 12.27 MB / 0.9032 GB, free: 100.6 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001515/1.768, allocations: 347.4 kB / 0.9036 GB, free: 100.3 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01639/1.784, allocations: 8.648 MB / 0.912 GB, free: 91.56 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003628/1.788, allocations: 195.8 kB / 0.9122 GB, free: 91.37 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006168/1.789, allocations: 155.9 kB / 0.9124 GB, free: 91.22 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.004849/1.794, allocations: 2.68 MB / 0.915 GB, free: 88.53 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.004084/1.798, allocations: 2.755 MB / 0.9177 GB, free: 85.51 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.009927/1.808, allocations: 5.332 MB / 0.9229 GB, free: 79.88 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.335e-05/1.808, allocations: 4 kB / 0.9229 GB, free: 79.88 MB / 0.5919 GB Notification: Performance of matching and sorting (n=359) (initialization_lambda0): time 0.01428/1.822, allocations: 7.256 MB / 0.93 GB, free: 72.57 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 4.321e-05/1.822, allocations: 15.94 kB / 0.93 GB, free: 72.55 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.853e-05/1.822, allocations: 16 kB / 0.93 GB, free: 72.54 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02364/1.846, allocations: 7.735 MB / 0.9375 GB, free: 64.79 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001802/1.848, allocations: 399.3 kB / 0.9379 GB, free: 64.4 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01534/1.863, allocations: 8.168 MB / 0.9459 GB, free: 56.17 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004001/1.867, allocations: 195.8 kB / 0.9461 GB, free: 55.98 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008275/1.868, allocations: 143.9 kB / 0.9462 GB, free: 55.84 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.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.001237/1.869, allocations: 340.1 kB / 0.9466 GB, free: 55.5 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009319/1.87, allocations: 262.4 kB / 0.9468 GB, free: 55.24 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01473/1.885, allocations: 7.85 MB / 0.9545 GB, free: 47.33 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.38e-05/1.885, allocations: 31.98 kB / 0.9545 GB, free: 47.3 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.639e-06/1.885, allocations: 0 / 0.9545 GB, free: 47.3 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01252/1.897, allocations: 6.911 MB / 0.9613 GB, free: 40.28 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02575/1.923, allocations: 13.79 MB / 0.9747 GB, free: 26.4 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.721e-05/1.923, allocations: 4 kB / 0.9747 GB, free: 26.4 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009074/1.924, allocations: 191.9 kB / 0.9749 GB, free: 26.21 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0434/1.968, allocations: 11.67 MB / 0.9863 GB, free: 14.53 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007423/1.968, allocations: 87.89 kB / 0.9864 GB, free: 14.44 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01551/1.984, allocations: 8.362 MB / 0.9945 GB, free: 6.031 MB / 0.5919 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.3931/2.377, allocations: 43.24 MB / 1.037 GB, free: 206.3 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0173/2.394, allocations: 10.45 MB / 1.047 GB, free: 196 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002083/2.397, allocations: 0.8283 MB / 1.048 GB, free: 195.1 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006276/2.397, allocations: 55.94 kB / 1.048 GB, free: 195.1 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002605/2.4, allocations: 171.8 kB / 1.048 GB, free: 194.9 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000447/2.4, allocations: 201.6 kB / 1.048 GB, free: 194.7 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002684/2.401, allocations: 111.9 kB / 1.048 GB, free: 194.6 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.001471/2.402, allocations: 1.269 MB / 1.05 GB, free: 193.3 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.3e-07/2.402, allocations: 0 / 1.05 GB, free: 193.3 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.007569/2.41, allocations: 2.921 MB / 1.052 GB, free: 190.7 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 (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.02556/2.435, allocations: 13.04 MB / 1.065 GB, free: 177.8 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.02415/2.459, allocations: 9.235 MB / 1.074 GB, free: 168.6 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 8.386e-06/2.459, allocations: 0 / 1.074 GB, free: 168.6 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.008817/2.468, allocations: 3.21 MB / 1.077 GB, free: 165.4 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006009/2.474, allocations: 1.049 MB / 1.078 GB, free: 164.4 MB / 0.5919 GB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:4689:9-4689:59:writable] Error: Internal error function createStateSetsSets failed. [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:803:5-803:146:writable] Error: Internal error function createSimCode failed [Transformation from optimised DAE to simulation code structure failed]