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.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.0009367/0.0009367, allocations: 96.36 kB / 19.69 MB, free: 456 kB / 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.001016/0.001016, allocations: 212.7 kB / 23 MB, free: 2.969 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8711/0.8711, allocations: 207.7 MB / 233.8 MB, free: 11.48 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2416/0.2416, allocations: 44.25 MB / 330.3 MB, free: 13.23 MB / 266.7 MB " [Timeout remaining time 180] 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.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_3_2_3_ModelicaTest_Fluid_TestExamplesVariants_HeatingSystem_SteadyState",fmuType="me_cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestExamplesVariants_HeatingSystem_SteadyState",fmuType="me_cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.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.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001577/0.001577, allocations: 81.88 kB / 468.3 MB, free: 27 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1001/0.1017, allocations: 61.04 MB / 0.5169 GB, free: 0.5039 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState): time 0.3228/0.4246, allocations: 81.47 MB / 0.5965 GB, free: 3.133 MB / 442.7 MB Notification: Performance of NFInst.instExpressions: time 0.01984/0.4444, allocations: 19.57 MB / 0.6156 GB, free: 2.379 MB / 442.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001428/0.4458, allocations: 122.7 kB / 0.6157 GB, free: 2.379 MB / 442.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001493/0.4473, allocations: 0.9201 MB / 0.6166 GB, free: 2.203 MB / 442.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005785/0.4531, allocations: 3.871 MB / 0.6204 GB, free: 0.7461 MB / 442.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.009573/0.4627, allocations: 5.913 MB / 0.6262 GB, free: 13.59 MB / 458.7 MB Notification: Performance of NFFlatten.flatten: time 0.005659/0.4683, allocations: 7.198 MB / 0.6332 GB, free: 9.832 MB / 458.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001582/0.4699, allocations: 1.586 MB / 0.6347 GB, free: 8.711 MB / 458.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.08025/0.5502, allocations: 74.32 MB / 0.7073 GB, free: 3.07 MB / 0.5105 GB Notification: Performance of NFSimplifyModel.simplify: time 0.03414/0.5843, allocations: 31.8 MB / 0.7384 GB, free: 2.922 MB / 0.5417 GB Notification: Performance of NFPackage.collectConstants: time 0.0006956/0.585, allocations: 248 kB / 0.7386 GB, free: 2.68 MB / 0.5417 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00831/0.5933, allocations: 5.404 MB / 0.7439 GB, free: 13.25 MB / 0.5573 GB Notification: Performance of NFScalarize.scalarize: time 0.0008165/0.5941, allocations: 1.098 MB / 0.745 GB, free: 12.14 MB / 0.5573 GB Notification: Performance of NFVerifyModel.verify: time 0.001237/0.5954, allocations: 1.256 MB / 0.7462 GB, free: 10.88 MB / 0.5573 GB Notification: Performance of NFConvertDAE.convert: time 0.00546/0.6008, allocations: 5.381 MB / 0.7514 GB, free: 5.484 MB / 0.5573 GB Notification: Performance of FrontEnd - DAE generated: time 5.009e-06/0.6008, allocations: 0 / 0.7514 GB, free: 5.484 MB / 0.5573 GB Notification: Performance of FrontEnd: time 2.594e-06/0.6008, allocations: 0 / 0.7514 GB, free: 5.484 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 2.309e-05/0.6009, allocations: 4 kB / 0.7514 GB, free: 5.48 MB / 0.5573 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.004591/0.6055, allocations: 3.501 MB / 0.7549 GB, free: 1.926 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 4.831e-05/0.6055, allocations: 12.03 kB / 0.7549 GB, free: 1.914 MB / 0.5573 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003997/0.6059, allocations: 349.2 kB / 0.7552 GB, free: 1.562 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005581/0.6065, allocations: 322.1 kB / 0.7555 GB, free: 1.246 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001845/0.6083, allocations: 1.582 MB / 0.7571 GB, free: 15.61 MB / 0.573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001729/0.6085, allocations: 270.5 kB / 0.7573 GB, free: 15.32 MB / 0.573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000213/0.6087, allocations: 188 kB / 0.7575 GB, free: 15.14 MB / 0.573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003399/0.6121, allocations: 3.661 MB / 0.7611 GB, free: 11.27 MB / 0.573 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.193e-05/0.6121, allocations: 4 kB / 0.7611 GB, free: 11.26 MB / 0.573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004177/0.6125, allocations: 83.95 kB / 0.7611 GB, free: 11.18 MB / 0.573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001861/0.6127, allocations: 251.7 kB / 0.7614 GB, free: 10.93 MB / 0.573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003387/0.6161, allocations: 3.095 MB / 0.7644 GB, free: 7.836 MB / 0.573 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.01041/0.6265, allocations: 10.18 MB / 0.7743 GB, free: 13.44 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002611/0.6291, allocations: 2.082 MB / 0.7764 GB, free: 11.35 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001168/0.6303, allocations: 1.11 MB / 0.7775 GB, free: 10.23 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004103/0.6344, allocations: 3.263 MB / 0.7807 GB, free: 6.949 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.163e-05/0.6344, allocations: 55.81 kB / 0.7807 GB, free: 6.883 MB / 0.5886 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0002707/0.6347, allocations: 166.5 kB / 0.7809 GB, free: 6.719 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=158): time 2.765e-06/0.6347, allocations: 4 kB / 0.7809 GB, free: 6.715 MB / 0.5886 GB Notification: Performance of matching and sorting (n=259): time 0.4808/1.116, allocations: 55.96 MB / 0.8355 GB, free: 236.8 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.07158/1.187, allocations: 45.31 MB / 0.8798 GB, free: 201.8 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001773/1.189, allocations: 1.893 MB / 0.8816 GB, free: 199.9 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 0.0004995/1.189, allocations: 73.7 kB / 0.8817 GB, free: 199.8 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004146/1.19, allocations: 1.113 MB / 0.8828 GB, free: 198.8 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005899/1.19, allocations: 0.912 MB / 0.8837 GB, free: 197.9 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007192/1.191, allocations: 0.5644 MB / 0.8842 GB, free: 197.4 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 2.456e-05/1.191, allocations: 313.1 kB / 0.8845 GB, free: 197.1 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002376/1.194, allocations: 2.186 MB / 0.8866 GB, free: 194.9 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002569/1.196, allocations: 2.817 MB / 0.8894 GB, free: 191.8 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005916/1.202, allocations: 5.456 MB / 0.8947 GB, free: 186 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.476e-05/1.202, allocations: 8 kB / 0.8947 GB, free: 186 MB / 0.6198 GB Notification: Performance of matching and sorting (n=359) (initialization): time 0.008611/1.211, allocations: 7.399 MB / 0.902 GB, free: 178.6 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 2.82e-05/1.211, allocations: 16.03 kB / 0.902 GB, free: 178.6 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.152e-05/1.211, allocations: 20 kB / 0.902 GB, free: 178.5 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02193/1.233, allocations: 12.25 MB / 0.914 GB, free: 166.3 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009742/1.234, allocations: 355.3 kB / 0.9143 GB, free: 165.9 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009714/1.243, allocations: 8.636 MB / 0.9227 GB, free: 157.2 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002053/1.245, allocations: 203.8 kB / 0.9229 GB, free: 157 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002733/1.246, allocations: 151.9 kB / 0.9231 GB, free: 156.9 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.003152/1.249, allocations: 2.684 MB / 0.9257 GB, free: 154.2 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.002423/1.251, allocations: 2.755 MB / 0.9284 GB, free: 151.2 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.005634/1.257, allocations: 5.336 MB / 0.9336 GB, free: 145.5 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.144e-05/1.257, allocations: 4 kB / 0.9336 GB, free: 145.5 MB / 0.6198 GB Notification: Performance of matching and sorting (n=359) (initialization_lambda0): time 0.008264/1.265, allocations: 7.139 MB / 0.9406 GB, free: 138.3 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.926e-05/1.265, allocations: 16 kB / 0.9406 GB, free: 138.3 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.734e-05/1.265, allocations: 16 kB / 0.9406 GB, free: 138.3 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0124/1.278, allocations: 7.739 MB / 0.9482 GB, free: 130.6 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001064/1.279, allocations: 395.3 kB / 0.9485 GB, free: 130.2 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009/1.288, allocations: 8.173 MB / 0.9565 GB, free: 122 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001985/1.29, allocations: 199.8 kB / 0.9567 GB, free: 121.8 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00026/1.29, allocations: 147.9 kB / 0.9568 GB, free: 121.6 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.0006159/1.29, allocations: 338 kB / 0.9572 GB, free: 121.3 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004605/1.291, allocations: 258.4 kB / 0.9574 GB, free: 121 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01107/1.302, allocations: 7.741 MB / 0.965 GB, free: 113.2 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.498e-05/1.302, allocations: 32 kB / 0.965 GB, free: 113.2 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.729e-06/1.302, allocations: 3.938 kB / 0.965 GB, free: 113.2 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.007515/1.31, allocations: 6.798 MB / 0.9716 GB, free: 106.3 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01458/1.324, allocations: 13.03 MB / 0.9844 GB, free: 93.2 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.646e-06/1.324, allocations: 4 kB / 0.9844 GB, free: 93.2 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004699/1.325, allocations: 190.7 kB / 0.9846 GB, free: 93.01 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02146/1.346, allocations: 11.66 MB / 0.9959 GB, free: 81.33 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005546/1.347, allocations: 83.95 kB / 0.996 GB, free: 81.25 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009279/1.356, allocations: 8.363 MB / 1.004 GB, free: 72.83 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.0668/1.423, allocations: 42.23 MB / 1.045 GB, free: 30.38 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01329/1.436, allocations: 10.35 MB / 1.056 GB, free: 19.94 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002514/1.438, allocations: 0.7589 MB / 1.056 GB, free: 19.18 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004426/1.439, allocations: 48 kB / 1.056 GB, free: 19.13 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001456/1.44, allocations: 171.9 kB / 1.056 GB, free: 18.96 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003499/1.441, allocations: 217.9 kB / 1.057 GB, free: 18.75 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002048/1.441, allocations: 108 kB / 1.057 GB, free: 18.64 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.001327/1.442, allocations: 1.277 MB / 1.058 GB, free: 17.35 MB / 0.6198 GB Notification: Performance of sort global known variables: time 1e-07/1.442, allocations: 0 / 1.058 GB, free: 17.35 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.006851/1.449, allocations: 2.913 MB / 1.061 GB, free: 14.43 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.01933/1.468, allocations: 12.94 MB / 1.074 GB, free: 1.48 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.2202/1.689, allocations: 8.81 MB / 1.082 GB, free: 236.2 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 8.305e-06/1.689, allocations: 2.281 kB / 1.082 GB, free: 236.2 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.006079/1.695, allocations: 3.014 MB / 1.085 GB, free: 235.3 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003907/1.699, allocations: 1.039 MB / 1.086 GB, free: 235 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.6798650920391083]