Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0009948/0.0009948, allocations: 110.2 kB / 20.43 MB, free: 4.59 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001159/0.001159, allocations: 209.5 kB / 23.73 MB, free: 2.133 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9624/0.9624, allocations: 230.6 MB / 257.5 MB, free: 9.613 MB / 202.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1396/0.1396, allocations: 44.95 MB / 358.9 MB, free: 5.094 MB / 282.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: setCommandLineOptions("--fmiFlags=s:cvode") Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestExamplesVariants_HeatingSystem_SteadyState",fmuType="me_cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestExamplesVariants_HeatingSystem_SteadyState",fmuType="me_cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001386/0.001386, allocations: 75.89 kB / 0.4946 GB, free: 9.664 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1053/0.1067, allocations: 65.48 MB / 0.5585 GB, free: 8.047 MB / 426.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState): time 0.2685/0.3751, allocations: 81.74 MB / 0.6384 GB, free: 11.7 MB / 474.7 MB Notification: Performance of NFInst.instExpressions: time 0.02176/0.3969, allocations: 19.61 MB / 0.6575 GB, free: 9.203 MB / 490.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002164/0.399, allocations: 122.9 kB / 0.6576 GB, free: 9.082 MB / 490.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002152/0.4012, allocations: 0.9201 MB / 0.6585 GB, free: 8.156 MB / 490.7 MB Notification: Performance of NFTyping.typeBindings: time 0.008033/0.4092, allocations: 3.874 MB / 0.6623 GB, free: 4.266 MB / 490.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.009781/0.419, allocations: 5.969 MB / 0.6681 GB, free: 14.3 MB / 0.4948 GB Notification: Performance of NFFlatten.flatten: time 0.007468/0.4265, allocations: 7.217 MB / 0.6752 GB, free: 7.062 MB / 0.4948 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002338/0.4288, allocations: 1.595 MB / 0.6767 GB, free: 5.438 MB / 0.4948 GB Notification: Performance of NFEvalConstants.evaluate: time 0.09347/0.5223, allocations: 74.44 MB / 0.7494 GB, free: 10.27 MB / 0.573 GB Notification: Performance of NFSimplifyModel.simplify: time 0.03823/0.5605, allocations: 31.83 MB / 0.7805 GB, free: 10.1 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 0.001494/0.562, allocations: 248 kB / 0.7808 GB, free: 9.855 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01098/0.573, allocations: 5.404 MB / 0.786 GB, free: 4.418 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 0.001792/0.5748, allocations: 1.11 MB / 0.7871 GB, free: 3.305 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 0.001983/0.5768, allocations: 1.245 MB / 0.7883 GB, free: 2.055 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.008328/0.5851, allocations: 5.396 MB / 0.7936 GB, free: 12.64 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 4.909e-06/0.5851, allocations: 0 / 0.7936 GB, free: 12.64 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.793e-06/0.5851, allocations: 3.938 kB / 0.7936 GB, free: 12.64 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 8.49e-05/0.5852, allocations: 0 / 0.7936 GB, free: 12.64 MB / 0.6198 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.006089/0.5913, allocations: 3.52 MB / 0.797 GB, free: 9.062 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 5.09e-05/0.5913, allocations: 15.98 kB / 0.7971 GB, free: 9.047 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000496/0.5918, allocations: 335.4 kB / 0.7974 GB, free: 8.707 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000812/0.5926, allocations: 322.1 kB / 0.7977 GB, free: 8.391 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002235/0.5949, allocations: 1.594 MB / 0.7992 GB, free: 6.746 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001871/0.5951, allocations: 267.4 kB / 0.7995 GB, free: 6.461 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002192/0.5953, allocations: 184 kB / 0.7997 GB, free: 6.281 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003908/0.5992, allocations: 3.665 MB / 0.8033 GB, free: 2.402 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.304e-05/0.5992, allocations: 0 / 0.8033 GB, free: 2.402 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001643/0.5994, allocations: 83.95 kB / 0.8033 GB, free: 2.32 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002005/0.5996, allocations: 259.7 kB / 0.8036 GB, free: 2.066 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2209/0.8205, allocations: 3.09 MB / 0.8066 GB, free: 216.8 MB / 0.6198 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.01107/0.8316, allocations: 10.15 MB / 0.8165 GB, free: 211.5 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002778/0.8344, allocations: 2.09 MB / 0.8186 GB, free: 210.6 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001351/0.8357, allocations: 1.105 MB / 0.8196 GB, free: 210.2 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004663/0.8404, allocations: 3.263 MB / 0.8228 GB, free: 208.9 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.542e-05/0.8404, allocations: 52.73 kB / 0.8229 GB, free: 208.9 MB / 0.6198 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.000302/0.8407, allocations: 168.4 kB / 0.823 GB, free: 208.8 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=158): time 3.457e-06/0.8407, allocations: 3.969 kB / 0.823 GB, free: 208.8 MB / 0.6198 GB Notification: Performance of matching and sorting (n=259): time 0.238/1.079, allocations: 54.99 MB / 0.8767 GB, free: 170.4 MB / 0.6198 GB Error: Jacobian StateSetJac0 contains non-linear components. This indicates a singular system or internal generation errors. Notification: Performance of inlineWhenForInitialization (initialization): time 0.06841/1.147, allocations: 44.4 MB / 0.9201 GB, free: 125.7 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001919/1.149, allocations: 1.9 MB / 0.922 GB, free: 123.8 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 0.0005785/1.15, allocations: 69.7 kB / 0.922 GB, free: 123.7 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004525/1.15, allocations: 1.111 MB / 0.9231 GB, free: 122.7 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005935/1.151, allocations: 0.9145 MB / 0.924 GB, free: 121.8 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007227/1.151, allocations: 0.5607 MB / 0.9245 GB, free: 121.2 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 2.595e-05/1.151, allocations: 309 kB / 0.9248 GB, free: 120.9 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002412/1.154, allocations: 2.18 MB / 0.927 GB, free: 118.7 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00258/1.156, allocations: 2.825 MB / 0.9297 GB, free: 115.7 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006/1.162, allocations: 5.414 MB / 0.935 GB, free: 109.9 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.367e-05/1.162, allocations: 4 kB / 0.935 GB, free: 109.9 MB / 0.6198 GB Notification: Performance of matching and sorting (n=359) (initialization): time 0.01032/1.173, allocations: 7.386 MB / 0.9422 GB, free: 102.5 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 2.906e-05/1.173, allocations: 12 kB / 0.9422 GB, free: 102.5 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.628e-05/1.173, allocations: 20 kB / 0.9423 GB, free: 102.5 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02146/1.194, allocations: 11.82 MB / 0.9538 GB, free: 90.66 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001007/1.195, allocations: 347.4 kB / 0.9541 GB, free: 90.32 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01041/1.206, allocations: 8.628 MB / 0.9626 GB, free: 81.64 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002398/1.208, allocations: 199.8 kB / 0.9628 GB, free: 81.44 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004722/1.209, allocations: 159.9 kB / 0.9629 GB, free: 81.29 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.003339/1.212, allocations: 2.672 MB / 0.9655 GB, free: 78.61 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.002555/1.214, allocations: 2.763 MB / 0.9682 GB, free: 75.57 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.006102/1.221, allocations: 5.285 MB / 0.9734 GB, free: 69.99 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.921e-05/1.221, allocations: 8 kB / 0.9734 GB, free: 69.98 MB / 0.6198 GB Notification: Performance of matching and sorting (n=359) (initialization_lambda0): time 0.008948/1.229, allocations: 7.136 MB / 0.9804 GB, free: 62.79 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 2.476e-05/1.23, allocations: 12 kB / 0.9804 GB, free: 62.78 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.123e-05/1.23, allocations: 20 kB / 0.9804 GB, free: 62.76 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01277/1.242, allocations: 7.668 MB / 0.9879 GB, free: 55.09 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00117/1.243, allocations: 399.3 kB / 0.9883 GB, free: 54.7 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01039/1.254, allocations: 8.135 MB / 0.9962 GB, free: 46.5 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002774/1.257, allocations: 191.8 kB / 0.9964 GB, free: 46.32 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005236/1.257, allocations: 155.9 kB / 0.9965 GB, free: 46.16 MB / 0.6198 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.0007423/1.258, allocations: 335.8 kB / 0.9969 GB, free: 45.83 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006701/1.259, allocations: 262.3 kB / 0.9971 GB, free: 45.57 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01284/1.271, allocations: 7.71 MB / 1.005 GB, free: 37.84 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.508e-05/1.271, allocations: 32 kB / 1.005 GB, free: 37.81 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.338e-06/1.271, allocations: 0 / 1.005 GB, free: 37.81 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01074/1.282, allocations: 6.786 MB / 1.011 GB, free: 30.91 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02263/1.305, allocations: 13.01 MB / 1.024 GB, free: 17.81 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.164e-05/1.305, allocations: 4 kB / 1.024 GB, free: 17.81 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007536/1.306, allocations: 187.8 kB / 1.024 GB, free: 17.62 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02202/1.328, allocations: 11.24 MB / 1.035 GB, free: 6.391 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006413/1.328, allocations: 83.95 kB / 1.035 GB, free: 6.309 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2161/1.544, allocations: 8.345 MB / 1.043 GB, free: 207.7 MB / 0.6198 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.07895/1.623, allocations: 41.22 MB / 1.084 GB, free: 195 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01545/1.639, allocations: 10.34 MB / 1.094 GB, free: 185 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001904/1.641, allocations: 0.7565 MB / 1.094 GB, free: 184.3 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000569/1.641, allocations: 55.98 kB / 1.095 GB, free: 184.2 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001648/1.643, allocations: 167.8 kB / 1.095 GB, free: 184.1 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003411/1.643, allocations: 210 kB / 1.095 GB, free: 183.9 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002149/1.643, allocations: 108 kB / 1.095 GB, free: 183.8 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.001264/1.645, allocations: 1.28 MB / 1.096 GB, free: 182.5 MB / 0.6198 GB Notification: Performance of sort global known variables: time 1.7e-07/1.645, allocations: 0 / 1.096 GB, free: 182.5 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.00721/1.652, allocations: 2.93 MB / 1.099 GB, free: 179.9 MB / 0.6198 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.01877/1.671, allocations: 12.91 MB / 1.112 GB, free: 167 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.01475/1.685, allocations: 8.806 MB / 1.12 GB, free: 158.2 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 8.516e-06/1.685, allocations: 4 kB / 1.12 GB, free: 158.2 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.005139/1.691, allocations: 3.023 MB / 1.123 GB, free: 155.2 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003343/1.694, allocations: 1.056 MB / 1.124 GB, free: 154.1 MB / 0.6198 GB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:4734:9-4734:59:writable] Error: Internal error function createStateSetsSets failed. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:823:5-823:146:writable] Error: Internal error function createSimCode failed [Transformation from optimised DAE to simulation code structure failed] " [Timeout remaining time 658] [Calling sys.exit(0), Time elapsed: 3.6961178136989474]