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.001142/0.001142, allocations: 102.2 kB / 16.27 MB, free: 5.957 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.001139/0.001138, allocations: 191.3 kB / 17.19 MB, free: 5.594 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.398/1.398, 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.2295/0.2295, allocations: 43.52 MB / 313.9 MB, free: 0.5312 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.001756/0.001756, allocations: 71.33 kB / 382.8 MB, free: 56.71 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1229/0.1247, allocations: 57.78 MB / 440.6 MB, free: 6.812 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState): time 0.091/0.2157, allocations: 90.16 MB / 0.5183 GB, free: 12.34 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.2943/0.51, allocations: 21.29 MB / 0.5391 GB, free: 1.281 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002899/0.513, allocations: 84.5 kB / 0.5392 GB, free: 1.281 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002331/0.5154, allocations: 0.9353 MB / 0.5401 GB, free: 1.281 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009643/0.525, allocations: 3.724 MB / 0.5438 GB, free: 1.25 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01451/0.5396, allocations: 5.626 MB / 0.5493 GB, free: 1.109 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01267/0.5522, allocations: 6.897 MB / 0.556 GB, free: 1.105 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003701/0.556, allocations: 1.811 MB / 0.5578 GB, free: 0.9766 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1825/0.7385, allocations: 74.79 MB / 0.6308 GB, free: 10.36 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.08184/0.8203, allocations: 31.91 MB / 0.662 GB, free: 10.56 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.001808/0.8222, allocations: 244 kB / 0.6622 GB, free: 10.32 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01761/0.8399, allocations: 6.068 MB / 0.6681 GB, free: 4.348 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.002178/0.8421, allocations: 1.074 MB / 0.6692 GB, free: 3.297 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.004105/0.8462, allocations: 1.485 MB / 0.6706 GB, free: 1.82 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.01328/0.8595, allocations: 5.44 MB / 0.6759 GB, free: 12.6 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 6.692e-06/0.8596, allocations: 0 / 0.6759 GB, free: 12.6 MB / 0.5137 GB Notification: Performance of FrontEnd: time 2.505e-06/0.8596, allocations: 0 / 0.6759 GB, free: 12.6 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 0.0001634/0.8597, allocations: 0 / 0.6759 GB, free: 12.6 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.01161/0.8714, allocations: 3.483 MB / 0.6793 GB, free: 9.105 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 5.747e-05/0.8714, allocations: 11.89 kB / 0.6793 GB, free: 9.094 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001086/0.8725, allocations: 339.7 kB / 0.6797 GB, free: 8.758 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001619/0.8742, allocations: 304.6 kB / 0.68 GB, free: 8.457 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004107/0.8783, allocations: 1.574 MB / 0.6815 GB, free: 6.863 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002645/0.8786, allocations: 219.5 kB / 0.6817 GB, free: 6.648 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005993/0.8792, allocations: 192.7 kB / 0.6819 GB, free: 6.473 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006506/0.8857, allocations: 3.292 MB / 0.6851 GB, free: 3.086 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.627e-05/0.8858, allocations: 7.938 kB / 0.6851 GB, free: 3.078 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003482/0.8862, allocations: 89.19 kB / 0.6852 GB, free: 3.004 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003344/0.8865, allocations: 255.7 kB / 0.6854 GB, free: 2.754 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005817/0.8923, allocations: 3.095 MB / 0.6885 GB, free: 15.66 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.02317/0.9155, allocations: 13.88 MB / 0.702 GB, free: 0.957 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004623/0.9202, allocations: 2.211 MB / 0.7042 GB, free: 14.76 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001965/0.9222, allocations: 1.176 MB / 0.7053 GB, free: 13.58 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.009384/0.9316, allocations: 5.614 MB / 0.7108 GB, free: 7.488 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.898e-05/0.9317, allocations: 53.7 kB / 0.7109 GB, free: 7.426 MB / 0.545 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0008709/0.9326, allocations: 164.2 kB / 0.711 GB, free: 7.266 MB / 0.545 GB Notification: Performance of pre-optimization done (n=158): time 7.955e-06/0.9326, allocations: 0 / 0.711 GB, free: 7.266 MB / 0.545 GB Notification: Performance of matching and sorting (n=259): time 0.729/1.662, allocations: 56.33 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.1241/1.786, allocations: 46.45 MB / 0.8114 GB, free: 185.7 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0019/1.788, allocations: 1.866 MB / 0.8132 GB, free: 183.8 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0005312/1.788, allocations: 65.7 kB / 0.8133 GB, free: 183.8 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005144/1.789, allocations: 1.091 MB / 0.8143 GB, free: 182.7 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006442/1.789, allocations: 0.8706 MB / 0.8152 GB, free: 181.8 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009295/1.79, allocations: 0.5643 MB / 0.8157 GB, free: 181.2 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 3.847e-05/1.79, allocations: 309.1 kB / 0.816 GB, free: 180.9 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003455/1.794, allocations: 2.184 MB / 0.8182 GB, free: 178.7 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003562/1.797, allocations: 2.816 MB / 0.8209 GB, free: 175.7 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009054/1.806, allocations: 5.457 MB / 0.8262 GB, free: 169.9 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.137e-05/1.807, allocations: 4 kB / 0.8262 GB, free: 169.9 MB / 0.5606 GB Notification: Performance of matching and sorting (n=359) (initialization): time 0.01275/1.819, allocations: 7.495 MB / 0.8336 GB, free: 162.4 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 2.542e-05/1.819, allocations: 16 kB / 0.8336 GB, free: 162.3 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.412e-05/1.819, allocations: 20 kB / 0.8336 GB, free: 162.3 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.04221/1.862, allocations: 12.28 MB / 0.8456 GB, free: 150 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001594/1.863, allocations: 351.4 kB / 0.8459 GB, free: 149.7 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01515/1.878, allocations: 8.647 MB / 0.8544 GB, free: 141 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003729/1.882, allocations: 191.8 kB / 0.8546 GB, free: 140.8 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005235/1.883, allocations: 151.9 kB / 0.8547 GB, free: 140.6 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.004379/1.887, allocations: 2.68 MB / 0.8573 GB, free: 138 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.003614/1.891, allocations: 2.763 MB / 0.86 GB, free: 134.9 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.009246/1.9, allocations: 5.332 MB / 0.8652 GB, free: 129.3 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.666e-05/1.9, allocations: 8 kB / 0.8652 GB, free: 129.3 MB / 0.5606 GB Notification: Performance of matching and sorting (n=359) (initialization_lambda0): time 0.01291/1.913, allocations: 7.228 MB / 0.8723 GB, free: 122 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 2.156e-05/1.913, allocations: 12 kB / 0.8723 GB, free: 122 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.239e-05/1.913, allocations: 20 kB / 0.8723 GB, free: 122 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02357/1.937, allocations: 7.766 MB / 0.8799 GB, free: 114.2 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001793/1.938, allocations: 391.4 kB / 0.8803 GB, free: 113.8 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01451/1.953, allocations: 8.166 MB / 0.8883 GB, free: 105.6 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003836/1.957, allocations: 191.8 kB / 0.8884 GB, free: 105.4 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004484/1.957, allocations: 151.9 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.0008507/1.958, allocations: 341.1 kB / 0.8889 GB, free: 104.9 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006313/1.959, allocations: 245 kB / 0.8891 GB, free: 104.7 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01448/1.973, allocations: 7.854 MB / 0.8968 GB, free: 96.77 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.304e-05/1.973, allocations: 28 kB / 0.8968 GB, free: 96.75 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.609e-06/1.973, allocations: 0 / 0.8968 GB, free: 96.75 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01169/1.985, allocations: 6.919 MB / 0.9036 GB, free: 89.72 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02336/2.008, allocations: 13.79 MB / 0.9171 GB, free: 75.86 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-05/2.009, allocations: 0 / 0.9171 GB, free: 75.86 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008756/2.009, allocations: 187.8 kB / 0.9172 GB, free: 75.67 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0416/2.051, allocations: 11.71 MB / 0.9287 GB, free: 63.95 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000685/2.052, allocations: 79.95 kB / 0.9287 GB, free: 63.87 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0143/2.066, allocations: 8.358 MB / 0.9369 GB, free: 55.46 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.1223/2.188, allocations: 43.28 MB / 0.9792 GB, free: 11.85 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01742/2.206, allocations: 10.44 MB / 0.9894 GB, free: 1.332 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001538/2.207, allocations: 0.8058 MB / 0.9902 GB, free: 0.5039 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005196/2.208, allocations: 51.94 kB / 0.9902 GB, free: 464 kB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002455/2.21, allocations: 167.9 kB / 0.9904 GB, free: 296 kB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004189/2.211, allocations: 202.1 kB / 0.9906 GB, free: 92 kB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.2051/2.416, allocations: 110.1 kB / 0.9907 GB, free: 238.3 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.002502/2.419, allocations: 1.276 MB / 0.9919 GB, free: 238.2 MB / 0.5606 GB Notification: Performance of sort global known variables: time 2.81e-07/2.419, allocations: 1.406 kB / 0.9919 GB, free: 238.2 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.01067/2.429, allocations: 2.888 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.02984/2.459, allocations: 13.01 MB / 1.007 GB, free: 235.2 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.02735/2.486, allocations: 10.31 MB / 1.018 GB, free: 232.4 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 9.268e-06/2.487, allocations: 0 / 1.018 GB, free: 232.4 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.00908/2.496, allocations: 3.214 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.005095/2.501, allocations: 1.05 MB / 1.022 GB, free: 230.2 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]