Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/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_4_1_0-beta_om_ModelicaTest_Fluid_TestExamplesVariants_HeatingSystem_SteadyState",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState,fileNamePrefix="ModelicaTest_4_1_0-beta_om_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.001784/0.001784, allocations: 118.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002147/0.002147, allocations: 198 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.399/1.399, allocations: 227.4 MB / 247 MB, free: 10.42 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2244/0.2244, allocations: 46.11 MB / 344.3 MB, free: 11.46 MB / 286.1 MB Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002195/0.002195, allocations: 75.88 kB / 480.9 MB, free: 4.492 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3322/0.3344, allocations: 62.45 MB / 0.5306 GB, free: 13.38 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState): time 0.1037/0.4382, allocations: 90.46 MB / 0.619 GB, free: 6.965 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.03252/0.4708, allocations: 21.35 MB / 0.6398 GB, free: 1.555 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002874/0.4737, allocations: 87.44 kB / 0.6399 GB, free: 1.469 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002913/0.4767, allocations: 0.9473 MB / 0.6408 GB, free: 0.5156 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01099/0.4877, allocations: 3.733 MB / 0.6445 GB, free: 12.76 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.01401/0.5017, allocations: 5.675 MB / 0.65 GB, free: 7.086 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.01034/0.5121, allocations: 6.929 MB / 0.6568 GB, free: 144 kB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003373/0.5155, allocations: 1.813 MB / 0.6586 GB, free: 14.3 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.4691/0.9846, allocations: 74.91 MB / 0.7317 GB, free: 59.02 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.06365/1.048, allocations: 31.93 MB / 0.7629 GB, free: 49.31 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.00103/1.049, allocations: 246.3 kB / 0.7631 GB, free: 49.31 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01378/1.063, allocations: 6.117 MB / 0.7691 GB, free: 48.31 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.00204/1.065, allocations: 1.068 MB / 0.7701 GB, free: 48.31 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.002859/1.068, allocations: 1.495 MB / 0.7716 GB, free: 48.26 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.00985/1.078, allocations: 5.529 MB / 0.777 GB, free: 44.74 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 6.833e-06/1.078, allocations: 0 / 0.777 GB, free: 44.74 MB / 0.5606 GB Notification: Performance of FrontEnd: time 2.164e-06/1.078, allocations: 0 / 0.777 GB, free: 44.74 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 7.459e-05/1.078, allocations: 0 / 0.777 GB, free: 44.74 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.007558/1.086, allocations: 3.589 MB / 0.7805 GB, free: 41.52 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.823e-05/1.086, allocations: 12.03 kB / 0.7805 GB, free: 41.51 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004726/1.086, allocations: 346.9 kB / 0.7808 GB, free: 41.29 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008367/1.087, allocations: 322.1 kB / 0.7812 GB, free: 40.98 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002192/1.089, allocations: 1.681 MB / 0.7828 GB, free: 39.63 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001356/1.089, allocations: 215 kB / 0.783 GB, free: 39.48 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002447/1.09, allocations: 180.7 kB / 0.7832 GB, free: 39.36 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003986/1.094, allocations: 3.302 MB / 0.7864 GB, free: 36.93 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.498e-05/1.094, allocations: 9.531 kB / 0.7864 GB, free: 36.93 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002107/1.094, allocations: 85.88 kB / 0.7865 GB, free: 36.9 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002541/1.094, allocations: 246.8 kB / 0.7867 GB, free: 36.69 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00399/1.098, allocations: 3.105 MB / 0.7898 GB, free: 34.62 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.01421/1.112, allocations: 13.85 MB / 0.8033 GB, free: 22.43 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00342/1.116, allocations: 2.204 MB / 0.8054 GB, free: 21.04 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001494/1.117, allocations: 1.181 MB / 0.8066 GB, free: 20.29 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.006441/1.124, allocations: 5.633 MB / 0.8121 GB, free: 14.59 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.079e-05/1.124, allocations: 51.88 kB / 0.8121 GB, free: 14.53 MB / 0.5606 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0005837/1.124, allocations: 162.5 kB / 0.8123 GB, free: 14.37 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=158): time 3.186e-06/1.124, allocations: 0 / 0.8123 GB, free: 14.37 MB / 0.5606 GB Notification: Performance of matching and sorting (n=259): time 0.5174/1.642, allocations: 55.36 MB / 0.8664 GB, free: 7.047 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.1442/1.786, allocations: 45.55 MB / 0.9108 GB, free: 9.125 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002894/1.789, allocations: 1.866 MB / 0.9127 GB, free: 7.219 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 0.0006592/1.79, allocations: 65.7 kB / 0.9127 GB, free: 7.148 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 0.000985/1.791, allocations: 1.121 MB / 0.9138 GB, free: 6.023 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 0.001169/1.792, allocations: 0.9026 MB / 0.9147 GB, free: 5.133 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001228/1.793, allocations: 0.5722 MB / 0.9153 GB, free: 4.555 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 0.0001293/1.793, allocations: 305.1 kB / 0.9155 GB, free: 4.254 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004585/1.798, allocations: 2.18 MB / 0.9177 GB, free: 2.066 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005477/1.803, allocations: 2.817 MB / 0.9204 GB, free: 15 MB / 0.67 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01274/1.816, allocations: 5.418 MB / 0.9257 GB, free: 9.367 MB / 0.67 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.075e-05/1.816, allocations: 8 kB / 0.9257 GB, free: 9.359 MB / 0.67 GB Notification: Performance of matching and sorting (n=359) (initialization): time 0.01831/1.835, allocations: 7.485 MB / 0.933 GB, free: 1.926 MB / 0.67 GB Notification: Performance of prepare postOptimizeDAE: time 4.491e-05/1.835, allocations: 12 kB / 0.933 GB, free: 1.914 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.845e-05/1.835, allocations: 20 kB / 0.9331 GB, free: 1.895 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.04698/1.882, allocations: 11.84 MB / 0.9446 GB, free: 6.078 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001627/1.883, allocations: 346 kB / 0.945 GB, free: 5.762 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01907/1.902, allocations: 8.625 MB / 0.9534 GB, free: 13.09 MB / 0.7012 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003649/1.906, allocations: 193.9 kB / 0.9536 GB, free: 12.91 MB / 0.7012 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006583/1.907, allocations: 155.9 kB / 0.9537 GB, free: 12.75 MB / 0.7012 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.005723/1.913, allocations: 2.684 MB / 0.9563 GB, free: 10.06 MB / 0.7012 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.005241/1.918, allocations: 2.759 MB / 0.959 GB, free: 7.051 MB / 0.7012 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0121/1.93, allocations: 5.291 MB / 0.9642 GB, free: 1.539 MB / 0.7012 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.302e-05/1.93, allocations: 8 kB / 0.9642 GB, free: 1.531 MB / 0.7012 GB Notification: Performance of matching and sorting (n=359) (initialization_lambda0): time 0.01745/1.948, allocations: 7.219 MB / 0.9713 GB, free: 10.38 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 3.347e-05/1.948, allocations: 12.16 kB / 0.9713 GB, free: 10.36 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.574e-05/1.948, allocations: 24 kB / 0.9713 GB, free: 10.34 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0271/1.975, allocations: 7.674 MB / 0.9788 GB, free: 2.664 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001972/1.977, allocations: 399.2 kB / 0.9792 GB, free: 2.301 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2881/2.265, allocations: 8.133 MB / 0.9871 GB, free: 320.4 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003338/2.268, allocations: 191.2 kB / 0.9873 GB, free: 320.3 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004247/2.269, allocations: 147.7 kB / 0.9874 GB, free: 320.3 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.0007975/2.269, allocations: 344 kB / 0.9878 GB, free: 320 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006343/2.27, allocations: 260.6 kB / 0.988 GB, free: 320 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01506/2.285, allocations: 7.83 MB / 0.9957 GB, free: 317.3 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.289e-05/2.285, allocations: 35.38 kB / 0.9957 GB, free: 317.3 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.563e-06/2.285, allocations: 3.562 kB / 0.9957 GB, free: 317.3 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01169/2.297, allocations: 6.897 MB / 1.002 GB, free: 314.7 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02305/2.32, allocations: 13.76 MB / 1.016 GB, free: 307.2 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.086e-05/2.32, allocations: 0 / 1.016 GB, free: 307.2 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008838/2.321, allocations: 189.9 kB / 1.016 GB, free: 307.1 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.03878/2.36, allocations: 11.25 MB / 1.027 GB, free: 296.9 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006187/2.36, allocations: 83.95 kB / 1.027 GB, free: 296.8 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01385/2.374, allocations: 8.341 MB / 1.035 GB, free: 288.6 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.1131/2.487, allocations: 42.28 MB / 1.077 GB, free: 246.4 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01799/2.505, allocations: 10.44 MB / 1.087 GB, free: 235.9 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00187/2.507, allocations: 0.8269 MB / 1.088 GB, free: 235 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005428/2.508, allocations: 44 kB / 1.088 GB, free: 235 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002536/2.51, allocations: 171.9 kB / 1.088 GB, free: 234.8 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004313/2.511, allocations: 198.1 kB / 1.088 GB, free: 234.6 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002779/2.511, allocations: 112 kB / 1.088 GB, free: 234.5 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.001501/2.513, allocations: 1.273 MB / 1.089 GB, free: 233.2 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.31e-07/2.513, allocations: 0 / 1.089 GB, free: 233.2 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.007752/2.52, allocations: 2.93 MB / 1.092 GB, free: 230.5 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.02522/2.546, allocations: 13.01 MB / 1.105 GB, free: 217.5 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.02465/2.57, allocations: 9.224 MB / 1.114 GB, free: 208.3 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 9.638e-06/2.57, allocations: 4 kB / 1.114 GB, free: 208.2 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.008679/2.579, allocations: 3.217 MB / 1.117 GB, free: 205 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005002/2.584, allocations: 1.053 MB / 1.118 GB, free: 204 MB / 0.7169 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]