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.001591/0.001591, allocations: 101.5 kB / 16.27 MB, free: 5.855 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.00157/0.00157, allocations: 192.2 kB / 17.2 MB, free: 5.508 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.525/1.525, allocations: 205.1 MB / 223.1 MB, free: 12.29 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.2279/0.2279, allocations: 43.52 MB / 313.9 MB, free: 0.5352 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: Performance of FrontEnd - loaded program: time 0.001715/0.001715, allocations: 64.97 kB / 382.8 MB, free: 56.7 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1165/0.1182, allocations: 57.78 MB / 440.6 MB, free: 6.855 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState): time 0.09492/0.2131, allocations: 90.17 MB / 0.5183 GB, free: 12.38 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.2883/0.5014, allocations: 21.29 MB / 0.5391 GB, free: 1.316 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003081/0.5045, allocations: 89.34 kB / 0.5392 GB, free: 1.316 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002574/0.5072, allocations: 0.9359 MB / 0.5401 GB, free: 1.316 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01108/0.5183, allocations: 3.725 MB / 0.5438 GB, free: 1.285 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01525/0.5335, allocations: 5.625 MB / 0.5493 GB, free: 1.145 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01099/0.5446, allocations: 6.905 MB / 0.556 GB, free: 1.137 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003694/0.5483, allocations: 1.805 MB / 0.5578 GB, free: 1.012 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1781/0.7265, allocations: 74.79 MB / 0.6308 GB, free: 10.38 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.07975/0.8063, allocations: 31.9 MB / 0.662 GB, free: 10.6 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.001224/0.8075, allocations: 244 kB / 0.6622 GB, free: 10.36 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01553/0.8231, allocations: 6.07 MB / 0.6681 GB, free: 4.387 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.001904/0.825, allocations: 1.075 MB / 0.6692 GB, free: 3.332 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.00383/0.8288, allocations: 1.492 MB / 0.6706 GB, free: 1.848 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.01058/0.8394, allocations: 5.428 MB / 0.6759 GB, free: 12.64 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 4.409e-06/0.8395, allocations: 0 / 0.6759 GB, free: 12.64 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.643e-06/0.8395, allocations: 0 / 0.6759 GB, free: 12.64 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 0.0001332/0.8396, allocations: 0 / 0.6759 GB, free: 12.64 MB / 0.5137 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.01088/0.8505, allocations: 3.491 MB / 0.6793 GB, free: 9.137 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 4.494e-05/0.8506, allocations: 11.89 kB / 0.6793 GB, free: 9.125 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009391/0.8515, allocations: 339.1 kB / 0.6797 GB, free: 8.793 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001375/0.8529, allocations: 312.6 kB / 0.68 GB, free: 8.484 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003142/0.8561, allocations: 1.578 MB / 0.6815 GB, free: 6.887 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002131/0.8563, allocations: 223.1 kB / 0.6817 GB, free: 6.668 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004992/0.8568, allocations: 188 kB / 0.6819 GB, free: 6.496 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005973/0.8628, allocations: 3.287 MB / 0.6851 GB, free: 3.117 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.196e-05/0.8629, allocations: 7.938 kB / 0.6851 GB, free: 3.109 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003424/0.8632, allocations: 84.03 kB / 0.6852 GB, free: 3.039 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003198/0.8635, allocations: 251.8 kB / 0.6854 GB, free: 2.793 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005593/0.8691, allocations: 3.105 MB / 0.6885 GB, free: 15.69 MB / 0.5294 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.02363/0.8928, allocations: 13.89 MB / 0.702 GB, free: 0.9844 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004566/0.8974, allocations: 2.211 MB / 0.7042 GB, free: 14.79 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001986/0.8994, allocations: 1.184 MB / 0.7053 GB, free: 13.61 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.008909/0.9083, allocations: 5.605 MB / 0.7108 GB, free: 7.52 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.422e-05/0.9084, allocations: 55.81 kB / 0.7109 GB, free: 7.453 MB / 0.545 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0007937/0.9092, allocations: 157.9 kB / 0.711 GB, free: 7.297 MB / 0.545 GB Notification: Performance of pre-optimization done (n=158): time 6.252e-06/0.9092, allocations: 0 / 0.711 GB, free: 7.297 MB / 0.545 GB Notification: Performance of matching and sorting (n=259): time 0.7575/1.667, allocations: 56.32 MB / 0.766 GB, free: 232.6 MB / 0.5606 GB Error: Jacobian StateSetJac0 contains non-linear components. This indicates a singular system or internal generation errors. Notification: Performance of inlineWhenForInitialization (initialization): time 0.1276/1.794, allocations: 46.46 MB / 0.8114 GB, free: 185.8 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002111/1.797, allocations: 1.866 MB / 0.8132 GB, free: 183.9 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0005459/1.797, allocations: 65.7 kB / 0.8133 GB, free: 183.8 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005507/1.798, allocations: 1.091 MB / 0.8143 GB, free: 182.7 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007108/1.798, allocations: 0.8743 MB / 0.8152 GB, free: 181.8 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009763/1.799, allocations: 0.5643 MB / 0.8157 GB, free: 181.3 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 4.043e-05/1.799, allocations: 301.1 kB / 0.816 GB, free: 181 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003509/1.803, allocations: 2.185 MB / 0.8182 GB, free: 178.8 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003722/1.807, allocations: 2.82 MB / 0.8209 GB, free: 175.7 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009551/1.816, allocations: 5.453 MB / 0.8262 GB, free: 169.9 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.66e-05/1.816, allocations: 8 kB / 0.8263 GB, free: 169.9 MB / 0.5606 GB Notification: Performance of matching and sorting (n=359) (initialization): time 0.01356/1.83, allocations: 7.498 MB / 0.8336 GB, free: 162.4 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 3.69e-05/1.83, allocations: 12.97 kB / 0.8336 GB, free: 162.4 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.165e-05/1.83, allocations: 20 kB / 0.8336 GB, free: 162.3 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.04334/1.873, allocations: 12.28 MB / 0.8456 GB, free: 150 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001798/1.875, allocations: 347.4 kB / 0.8459 GB, free: 149.7 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01597/1.891, allocations: 8.657 MB / 0.8544 GB, free: 141 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003374/1.895, allocations: 191.8 kB / 0.8546 GB, free: 140.8 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003571/1.895, allocations: 155.9 kB / 0.8547 GB, free: 140.7 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.004165/1.899, allocations: 2.676 MB / 0.8573 GB, free: 138 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.003573/1.903, allocations: 2.763 MB / 0.86 GB, free: 134.9 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.009185/1.912, allocations: 5.332 MB / 0.8652 GB, free: 129.3 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.515e-05/1.912, allocations: 4 kB / 0.8652 GB, free: 129.3 MB / 0.5606 GB Notification: Performance of matching and sorting (n=359) (initialization_lambda0): time 0.0137/1.926, allocations: 7.232 MB / 0.8723 GB, free: 122 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 2.735e-05/1.926, allocations: 12 kB / 0.8723 GB, free: 122 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.536e-05/1.926, allocations: 23.98 kB / 0.8723 GB, free: 122 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02365/1.949, allocations: 7.758 MB / 0.8799 GB, free: 114.2 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001764/1.951, allocations: 387.4 kB / 0.8803 GB, free: 113.8 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01461/1.966, allocations: 8.162 MB / 0.8883 GB, free: 105.6 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004/1.97, allocations: 195.8 kB / 0.8884 GB, free: 105.4 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004734/1.97, allocations: 144 kB / 0.8886 GB, free: 105.3 MB / 0.5606 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.0007948/1.971, allocations: 351.9 kB / 0.8889 GB, free: 104.9 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006656/1.972, allocations: 245 kB / 0.8891 GB, free: 104.7 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01407/1.986, allocations: 7.854 MB / 0.8968 GB, free: 96.79 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.003e-05/1.986, allocations: 28 kB / 0.8968 GB, free: 96.77 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.34e-06/1.986, allocations: 3.984 kB / 0.8968 GB, free: 96.76 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01196/1.998, allocations: 6.911 MB / 0.9036 GB, free: 89.74 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02287/2.021, allocations: 13.8 MB / 0.9171 GB, free: 75.88 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.233e-05/2.021, allocations: 0 / 0.9171 GB, free: 75.88 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008486/2.022, allocations: 191.9 kB / 0.9173 GB, free: 75.69 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.04361/2.065, allocations: 11.71 MB / 0.9287 GB, free: 63.96 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008363/2.066, allocations: 75.97 kB / 0.9288 GB, free: 63.89 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01419/2.081, allocations: 8.35 MB / 0.9369 GB, free: 55.48 MB / 0.5606 GB Warning: There are tearing variables with annotation attribute '__OpenModelica_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.1217/2.202, allocations: 43.27 MB / 0.9792 GB, free: 11.88 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01747/2.22, allocations: 10.44 MB / 0.9894 GB, free: 1.355 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001627/2.221, allocations: 0.8059 MB / 0.9902 GB, free: 0.5273 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005273/2.222, allocations: 47.98 kB / 0.9902 GB, free: 492 kB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002439/2.224, allocations: 179.8 kB / 0.9904 GB, free: 312 kB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004411/2.225, allocations: 194.1 kB / 0.9906 GB, free: 116 kB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002584/2.225, allocations: 115.9 kB / 0.9907 GB, free: 0 / 0.5606 GB Notification: Performance of sorting global known variables: time 0.002221/2.436, allocations: 1.271 MB / 0.9919 GB, free: 238.2 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.8e-07/2.436, allocations: 0 / 0.9919 GB, free: 238.2 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.01065/2.446, allocations: 2.889 MB / 0.9947 GB, free: 238.1 MB / 0.5606 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.03152/2.478, allocations: 13 MB / 1.007 GB, free: 235.2 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.02734/2.505, allocations: 10.32 MB / 1.018 GB, free: 232.4 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 8.236e-06/2.505, allocations: 1.203 kB / 1.018 GB, free: 232.4 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.008477/2.514, allocations: 3.211 MB / 1.021 GB, free: 230.9 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004706/2.518, allocations: 1.047 MB / 1.022 GB, free: 230.1 MB / 0.5606 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]