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.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4_0_0_ModelicaTest_Fluid_TestExamplesVariants_HeatingSystem_SteadyState",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState,fileNamePrefix="ModelicaTest_4_0_0_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.001227/0.001227, allocations: 113.8 kB / 17.78 MB, free: 5.281 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.001214/0.001214, allocations: 179.9 kB / 18.71 MB, free: 4.363 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.357/1.357, allocations: 222.9 MB / 242.4 MB, free: 15.13 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2095/0.2095, allocations: 44.19 MB / 336.8 MB, free: 2.656 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001906/0.001906, allocations: 67.89 kB / 470.1 MB, free: 13.62 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3261/0.3281, allocations: 60.82 MB / 0.5185 GB, free: 3.285 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState): time 0.103/0.4312, allocations: 90.14 MB / 0.6065 GB, free: 1.672 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.03474/0.4659, allocations: 21.32 MB / 0.6273 GB, free: 12.3 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002626/0.4686, allocations: 87.44 kB / 0.6274 GB, free: 12.21 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003238/0.4719, allocations: 0.9317 MB / 0.6283 GB, free: 11.27 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01054/0.4825, allocations: 3.729 MB / 0.6319 GB, free: 7.527 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0144/0.4969, allocations: 5.658 MB / 0.6375 GB, free: 1.871 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.01107/0.508, allocations: 6.909 MB / 0.6442 GB, free: 10.94 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003826/0.5119, allocations: 1.813 MB / 0.646 GB, free: 9.102 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.4569/0.9688, allocations: 74.82 MB / 0.7191 GB, free: 73.12 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.06528/1.034, allocations: 31.91 MB / 0.7502 GB, free: 63.54 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.0009416/1.035, allocations: 245.5 kB / 0.7504 GB, free: 63.54 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01432/1.049, allocations: 6.094 MB / 0.7564 GB, free: 62.53 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.002188/1.052, allocations: 1.074 MB / 0.7574 GB, free: 62.53 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.003123/1.055, allocations: 1.489 MB / 0.7589 GB, free: 62.48 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.009733/1.065, allocations: 5.521 MB / 0.7643 GB, free: 61.82 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 5.801e-06/1.065, allocations: 4 kB / 0.7643 GB, free: 61.81 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.643e-06/1.065, allocations: 0 / 0.7643 GB, free: 61.81 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 0.0001193/1.065, allocations: 0 / 0.7643 GB, free: 61.81 MB / 0.5606 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.00914/1.074, allocations: 3.581 MB / 0.7678 GB, free: 59.89 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.54e-05/1.074, allocations: 10.62 kB / 0.7678 GB, free: 59.89 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000736/1.075, allocations: 339.1 kB / 0.7681 GB, free: 59.78 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001154/1.076, allocations: 325.7 kB / 0.7684 GB, free: 59.62 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003177/1.079, allocations: 1.696 MB / 0.7701 GB, free: 58.79 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001817/1.079, allocations: 213.3 kB / 0.7703 GB, free: 58.71 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004719/1.08, allocations: 188.1 kB / 0.7705 GB, free: 58.7 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005188/1.085, allocations: 3.289 MB / 0.7737 GB, free: 56.28 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.092e-05/1.085, allocations: 3.844 kB / 0.7737 GB, free: 56.28 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002668/1.085, allocations: 84.81 kB / 0.7738 GB, free: 56.26 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002564/1.086, allocations: 258 kB / 0.774 GB, free: 56.04 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004817/1.09, allocations: 3.091 MB / 0.777 GB, free: 53.98 MB / 0.5606 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.01722/1.108, allocations: 13.86 MB / 0.7906 GB, free: 41.79 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003806/1.112, allocations: 2.197 MB / 0.7927 GB, free: 40.41 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001773/1.113, allocations: 1.189 MB / 0.7939 GB, free: 39.65 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.007293/1.121, allocations: 5.626 MB / 0.7994 GB, free: 34.59 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.928e-05/1.121, allocations: 48.75 kB / 0.7994 GB, free: 34.55 MB / 0.5606 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0006672/1.121, allocations: 171.8 kB / 0.7996 GB, free: 34.4 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=158): time 4.669e-06/1.121, allocations: 0 / 0.7996 GB, free: 34.4 MB / 0.5606 GB Notification: Performance of matching and sorting (n=259): time 0.5083/1.63, allocations: 56.33 MB / 0.8546 GB, free: 10.95 MB / 0.5919 GB Error: Jacobian StateSetJac0 contains non-linear components. This indicates a singular system or internal generation errors. Notification: Performance of inlineWhenForInitialization (initialization): time 0.1625/1.792, allocations: 46.45 MB / 0.8999 GB, free: 12.12 MB / 0.6387 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003788/1.796, allocations: 1.862 MB / 0.9018 GB, free: 10.22 MB / 0.6387 GB Notification: Performance of collectPreVariables (initialization): time 0.0007777/1.797, allocations: 69.7 kB / 0.9018 GB, free: 10.14 MB / 0.6387 GB Notification: Performance of collectInitialEqns (initialization): time 0.001154/1.798, allocations: 1.115 MB / 0.9029 GB, free: 9.027 MB / 0.6387 GB Notification: Performance of collectInitialBindings (initialization): time 0.001539/1.8, allocations: 0.9117 MB / 0.9038 GB, free: 8.129 MB / 0.6387 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001871/1.802, allocations: 0.5644 MB / 0.9044 GB, free: 7.559 MB / 0.6387 GB Notification: Performance of setup shared object (initialization): time 0.0001363/1.802, allocations: 309.2 kB / 0.9047 GB, free: 7.254 MB / 0.6387 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005041/1.807, allocations: 2.18 MB / 0.9068 GB, free: 5.066 MB / 0.6387 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006034/1.813, allocations: 2.822 MB / 0.9095 GB, free: 1.992 MB / 0.6387 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01368/1.827, allocations: 5.453 MB / 0.9149 GB, free: 12.32 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-05/1.827, allocations: 4 kB / 0.9149 GB, free: 12.31 MB / 0.6544 GB Notification: Performance of matching and sorting (n=359) (initialization): time 0.01964/1.846, allocations: 7.511 MB / 0.9222 GB, free: 4.859 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 4.88e-05/1.846, allocations: 23.12 kB / 0.9222 GB, free: 4.84 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.925e-05/1.846, allocations: 20 kB / 0.9222 GB, free: 4.82 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.05126/1.898, allocations: 12.25 MB / 0.9342 GB, free: 8.582 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001896/1.9, allocations: 351.5 kB / 0.9345 GB, free: 8.262 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02112/1.921, allocations: 8.653 MB / 0.943 GB, free: 15.57 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003717/1.925, allocations: 194.3 kB / 0.9432 GB, free: 15.38 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007013/1.925, allocations: 151.9 kB / 0.9433 GB, free: 15.23 MB / 0.6856 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.00613/1.931, allocations: 2.684 MB / 0.9459 GB, free: 12.54 MB / 0.6856 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.005431/1.937, allocations: 2.754 MB / 0.9486 GB, free: 9.531 MB / 0.6856 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.01356/1.95, allocations: 5.333 MB / 0.9538 GB, free: 3.98 MB / 0.6856 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.224e-05/1.951, allocations: 8 kB / 0.9539 GB, free: 3.973 MB / 0.6856 GB Notification: Performance of matching and sorting (n=359) (initialization_lambda0): time 0.02076/1.971, allocations: 7.239 MB / 0.9609 GB, free: 12.79 MB / 0.7012 GB Notification: Performance of prepare postOptimizeDAE: time 4.088e-05/1.971, allocations: 19.69 kB / 0.9609 GB, free: 12.77 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.041e-05/1.971, allocations: 20 kB / 0.961 GB, free: 12.75 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02838/2, allocations: 7.737 MB / 0.9685 GB, free: 5.016 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002015/2.002, allocations: 391.4 kB / 0.9689 GB, free: 4.656 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2577/2.26, allocations: 8.166 MB / 0.9769 GB, free: 310.6 MB / 0.7012 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003563/2.263, allocations: 196.8 kB / 0.9771 GB, free: 310.6 MB / 0.7012 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005756/2.264, allocations: 146.6 kB / 0.9772 GB, free: 310.6 MB / 0.7012 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.0007889/2.265, allocations: 339.4 kB / 0.9775 GB, free: 310.4 MB / 0.7012 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000726/2.265, allocations: 258.4 kB / 0.9778 GB, free: 310.4 MB / 0.7012 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01697/2.282, allocations: 7.846 MB / 0.9854 GB, free: 307.9 MB / 0.7012 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.649e-05/2.282, allocations: 35.5 kB / 0.9855 GB, free: 307.9 MB / 0.7012 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.145e-06/2.283, allocations: 1.156 kB / 0.9855 GB, free: 307.9 MB / 0.7012 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01347/2.296, allocations: 6.917 MB / 0.9922 GB, free: 305.3 MB / 0.7012 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02254/2.319, allocations: 13.78 MB / 1.006 GB, free: 299.9 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.346e-05/2.319, allocations: 3.562 kB / 1.006 GB, free: 299.9 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008478/2.319, allocations: 189.5 kB / 1.006 GB, free: 299.9 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.04153/2.361, allocations: 11.67 MB / 1.017 GB, free: 292.9 MB / 0.7012 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007026/2.362, allocations: 83.95 kB / 1.017 GB, free: 292.8 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01411/2.376, allocations: 8.356 MB / 1.025 GB, free: 284.5 MB / 0.7012 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.1237/2.5, allocations: 43.24 MB / 1.068 GB, free: 241.4 MB / 0.7012 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01822/2.518, allocations: 10.47 MB / 1.078 GB, free: 230.8 MB / 0.7012 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001708/2.52, allocations: 0.8189 MB / 1.079 GB, free: 230 MB / 0.7012 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008178/2.52, allocations: 48 kB / 1.079 GB, free: 229.9 MB / 0.7012 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002876/2.523, allocations: 175.9 kB / 1.079 GB, free: 229.8 MB / 0.7012 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005033/2.524, allocations: 198.1 kB / 1.079 GB, free: 229.6 MB / 0.7012 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003404/2.524, allocations: 111.9 kB / 1.079 GB, free: 229.5 MB / 0.7012 GB Notification: Performance of sorting global known variables: time 0.001727/2.526, allocations: 1.277 MB / 1.081 GB, free: 228.2 MB / 0.7012 GB Notification: Performance of sort global known variables: time 2.3e-07/2.526, allocations: 0 / 1.081 GB, free: 228.2 MB / 0.7012 GB Notification: Performance of remove unused functions: time 0.008023/2.534, allocations: 2.919 MB / 1.083 GB, free: 225.4 MB / 0.7012 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.02722/2.561, allocations: 13.04 MB / 1.096 GB, free: 212.4 MB / 0.7012 GB Notification: Performance of simCode: created initialization part: time 0.02438/2.586, allocations: 9.223 MB / 1.105 GB, free: 203.2 MB / 0.7012 GB Notification: Performance of simCode: created event and clocks part: time 6.422e-06/2.586, allocations: 4.188 kB / 1.105 GB, free: 203.2 MB / 0.7012 GB Notification: Performance of simCode: created simulation system equations: time 0.008695/2.594, allocations: 3.225 MB / 1.108 GB, free: 199.9 MB / 0.7012 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005304/2.6, allocations: 1.03 MB / 1.109 GB, free: 198.9 MB / 0.7012 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]