Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_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.1+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+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: translateModel(ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState") translateModel(ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007805/0.0007804, allocations: 98.03 kB / 15.36 MB, free: 0.7344 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.005125/0.005126, allocations: 170.1 kB / 16.27 MB, free: 6.648 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.345/1.345, allocations: 205.4 MB / 222.4 MB, free: 5.562 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo): time 0.3039/0.3039, allocations: 38.04 MB / 308.8 MB, free: 10.36 MB / 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: ModelicaTest requested package Modelica of version 3.2.1. Modelica 3.2.3 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005589/0.0005589, allocations: 19.98 kB / 377 MB, free: 14.83 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1144/0.115, allocations: 57.51 MB / 434.6 MB, free: 5.227 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState): time 0.2833/0.3984, allocations: 93.83 MB / 0.516 GB, free: 10.5 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.03515/0.4336, allocations: 22.29 MB / 0.5378 GB, free: 11.31 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00332/0.4369, allocations: 106.9 kB / 0.5379 GB, free: 11.26 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0026/0.4396, allocations: 0.8147 MB / 0.5387 GB, free: 10.81 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009933/0.4495, allocations: 3.513 MB / 0.5421 GB, free: 8.961 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01341/0.4629, allocations: 4.905 MB / 0.5469 GB, free: 5.766 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01278/0.4757, allocations: 10.55 MB / 0.5572 GB, free: 14.96 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003469/0.4793, allocations: 1.557 MB / 0.5587 GB, free: 13.38 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1412/0.6205, allocations: 73.33 MB / 0.6303 GB, free: 3.203 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.2955/0.916, allocations: 31.91 MB / 0.6615 GB, free: 66.89 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001113/0.9172, allocations: 126.9 kB / 0.6616 GB, free: 66.89 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01371/0.9309, allocations: 5.941 MB / 0.6674 GB, free: 65.89 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002249/0.9332, allocations: 0.9514 MB / 0.6683 GB, free: 65.89 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00289/0.9361, allocations: 1.379 MB / 0.6697 GB, free: 65.86 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009465/0.9456, allocations: 5.288 MB / 0.6749 GB, free: 65.63 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.9456, allocations: 1.172 kB / 0.6749 GB, free: 65.63 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.414e-06/0.9456, allocations: 1.312 kB / 0.6749 GB, free: 65.63 MB / 494.1 MB Notification: Performance of Transformations before backend: time 7.098e-05/0.9457, allocations: 0 / 0.6749 GB, free: 65.63 MB / 494.1 MB 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.007801/0.9535, allocations: 2.987 MB / 0.6778 GB, free: 64.05 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.561e-05/0.9536, allocations: 10.25 kB / 0.6778 GB, free: 64.05 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001526/0.9551, allocations: 303.9 kB / 0.6781 GB, free: 63.91 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002681/0.9578, allocations: 1.574 MB / 0.6796 GB, free: 63.14 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001506/0.958, allocations: 218.7 kB / 0.6798 GB, free: 63.07 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002882/0.9583, allocations: 186.9 kB / 0.68 GB, free: 63.07 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004908/0.9632, allocations: 3.282 MB / 0.6832 GB, free: 62.07 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.559e-05/0.9632, allocations: 2.906 kB / 0.6832 GB, free: 62.07 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002356/0.9635, allocations: 82.09 kB / 0.6833 GB, free: 62.07 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002942/0.9638, allocations: 256.6 kB / 0.6835 GB, free: 62.02 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00436/0.9682, allocations: 3.103 MB / 0.6866 GB, free: 61.52 MB / 494.1 MB 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.01481/0.983, allocations: 13.86 MB / 0.7001 GB, free: 50.16 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003215/0.9862, allocations: 2.203 MB / 0.7022 GB, free: 48.78 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001433/0.9877, allocations: 1.189 MB / 0.7034 GB, free: 48.01 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006439/0.9941, allocations: 5.631 MB / 0.7089 GB, free: 42.93 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.141e-05/0.9942, allocations: 59.05 kB / 0.709 GB, free: 42.88 MB / 494.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0008826/0.9951, allocations: 234.8 kB / 0.7092 GB, free: 42.67 MB / 494.1 MB Notification: Performance of pre-optimization done (n=158): time 3.707e-06/0.9951, allocations: 0 / 0.7092 GB, free: 42.67 MB / 494.1 MB Notification: Performance of matching and sorting (n=259): time 0.5006/1.496, allocations: 55.58 MB / 0.7635 GB, free: 5.516 MB / 0.4981 GB Error: Jacobian StateSetJac0 contains non-linear components. This indicates a singular system or internal generation errors. Notification: Performance of inlineWhenForInitialization (initialization): time 0.1455/1.641, allocations: 46.68 MB / 0.809 GB, free: 6.41 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002553/1.644, allocations: 1.862 MB / 0.8109 GB, free: 4.508 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0005946/1.644, allocations: 73.7 kB / 0.8109 GB, free: 4.43 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007688/1.645, allocations: 1.082 MB / 0.812 GB, free: 3.344 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009059/1.646, allocations: 0.8652 MB / 0.8128 GB, free: 2.484 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000418/1.646, allocations: 235.4 kB / 0.8131 GB, free: 2.25 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 9.336e-05/1.647, allocations: 301.2 kB / 0.8133 GB, free: 1.953 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004108/1.651, allocations: 2.19 MB / 0.8155 GB, free: 15.77 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004823/1.656, allocations: 2.834 MB / 0.8183 GB, free: 12.68 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01135/1.667, allocations: 5.491 MB / 0.8236 GB, free: 6.965 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.684e-05/1.667, allocations: 4 kB / 0.8236 GB, free: 6.961 MB / 0.5606 GB Notification: Performance of matching and sorting (n=359) (initialization): time 0.01523/1.682, allocations: 7.547 MB / 0.831 GB, free: 15.46 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006258/1.683, allocations: 0.6408 MB / 0.8316 GB, free: 14.57 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.314e-05/1.683, allocations: 23.98 kB / 0.8316 GB, free: 14.54 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.04811/1.731, allocations: 12.44 MB / 0.8438 GB, free: 2.094 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001688/1.733, allocations: 358.1 kB / 0.8441 GB, free: 1.77 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2233/1.956, allocations: 8.69 MB / 0.8526 GB, free: 239.2 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004072/1.96, allocations: 268.5 kB / 0.8529 GB, free: 239.2 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005216/1.961, allocations: 156.6 kB / 0.853 GB, free: 239.2 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.235e-05/1.961, allocations: 3.219 kB / 0.853 GB, free: 239.2 MB / 0.5762 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01338/1.974, allocations: 7.061 MB / 0.8599 GB, free: 237.7 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.285e-05/1.974, allocations: 19.62 kB / 0.8599 GB, free: 237.7 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0255/2, allocations: 7.982 MB / 0.8677 GB, free: 236.6 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001873/2.002, allocations: 388.1 kB / 0.8681 GB, free: 236.5 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01598/2.018, allocations: 8.214 MB / 0.8761 GB, free: 233.2 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004047/2.022, allocations: 265.5 kB / 0.8764 GB, free: 233.2 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005306/2.022, allocations: 147.9 kB / 0.8765 GB, free: 233.2 MB / 0.5762 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.001769/2.024, allocations: 0.7736 MB / 0.8773 GB, free: 232.7 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006562/2.025, allocations: 249.3 kB / 0.8775 GB, free: 232.7 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01736/2.042, allocations: 7.906 MB / 0.8852 GB, free: 230 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.858e-05/2.042, allocations: 30.62 kB / 0.8853 GB, free: 230 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.112e-06/2.042, allocations: 0 / 0.8853 GB, free: 230 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01367/2.056, allocations: 6.972 MB / 0.8921 GB, free: 227.3 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02317/2.079, allocations: 13.85 MB / 0.9056 GB, free: 221.9 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.271e-05/2.079, allocations: 3.969 kB / 0.9056 GB, free: 221.9 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008378/2.08, allocations: 190 kB / 0.9058 GB, free: 221.9 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.04452/2.124, allocations: 11.99 MB / 0.9175 GB, free: 212 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006246/2.125, allocations: 83.95 kB / 0.9176 GB, free: 211.9 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01381/2.139, allocations: 8.406 MB / 0.9258 GB, free: 203.5 MB / 0.5762 GB Warning: There are tearing variables with annotation attribute '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.1271/2.266, allocations: 46.69 MB / 0.9714 GB, free: 156.5 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01966/2.286, allocations: 10.5 MB / 0.9816 GB, free: 145.9 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002009/2.288, allocations: 0.8133 MB / 0.9824 GB, free: 145.1 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008549/2.289, allocations: 51.98 kB / 0.9825 GB, free: 145 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003179/2.292, allocations: 258.7 kB / 0.9827 GB, free: 144.8 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000496/2.292, allocations: 214 kB / 0.9829 GB, free: 144.6 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003454/2.293, allocations: 104 kB / 0.983 GB, free: 144.5 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.001944/2.295, allocations: 1.277 MB / 0.9843 GB, free: 143.2 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.8e-07/2.295, allocations: 0 / 0.9843 GB, free: 143.2 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.009231/2.304, allocations: 2.899 MB / 0.9871 GB, free: 140.5 MB / 0.5762 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.00894/2.313, allocations: 2.095 MB / 0.9892 GB, free: 138.4 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0239/2.337, allocations: 9.166 MB / 0.9981 GB, free: 129.3 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 9.738e-06/2.337, allocations: 0 / 0.9981 GB, free: 129.3 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.008909/2.346, allocations: 3.232 MB / 1.001 GB, free: 126 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006303/2.352, allocations: 0.9944 MB / 1.002 GB, free: 125 MB / 0.5762 GB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:4560:9-4560:59:writable] Error: Internal error function createStateSetsSets failed. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:764:5-764:146:writable] Error: Internal error function createSimCode failed [Transformation from optimised DAE to simulation code structure failed]