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.001351/0.001351, allocations: 107.7 kB / 16.41 MB, free: 6.488 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.001221/0.001221, allocations: 188.1 kB / 17.34 MB, free: 5.762 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.372/1.372, allocations: 205.1 MB / 223.2 MB, free: 12.22 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.2202/0.2202, allocations: 43.51 MB / 314.1 MB, free: 464 kB / 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.001999/0.001999, allocations: 71.91 kB / 441.3 MB, free: 6.129 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.105/0.107, allocations: 57.79 MB / 499.1 MB, free: 12.26 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState): time 0.3108/0.4178, allocations: 90.18 MB / 0.5755 GB, free: 7.473 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.03325/0.4511, allocations: 21.3 MB / 0.5963 GB, free: 7.723 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004206/0.4554, allocations: 85 kB / 0.5964 GB, free: 7.691 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003412/0.4589, allocations: 0.945 MB / 0.5973 GB, free: 6.867 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01271/0.4716, allocations: 3.721 MB / 0.6009 GB, free: 4.004 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01517/0.4868, allocations: 5.622 MB / 0.6064 GB, free: 15.96 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.01048/0.4973, allocations: 6.898 MB / 0.6132 GB, free: 9.531 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003462/0.5008, allocations: 1.812 MB / 0.6149 GB, free: 7.703 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1839/0.6847, allocations: 74.8 MB / 0.688 GB, free: 12.04 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.07557/0.7603, allocations: 31.91 MB / 0.7191 GB, free: 11.74 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.0009591/0.7613, allocations: 244 kB / 0.7194 GB, free: 11.5 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01524/0.7766, allocations: 6.081 MB / 0.7253 GB, free: 5.387 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.001961/0.7786, allocations: 1.071 MB / 0.7264 GB, free: 4.312 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.002846/0.7815, allocations: 1.485 MB / 0.7278 GB, free: 2.82 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.01318/0.7947, allocations: 5.517 MB / 0.7332 GB, free: 13.29 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 8.646e-06/0.7947, allocations: 3.984 kB / 0.7332 GB, free: 13.28 MB / 0.5762 GB Notification: Performance of FrontEnd: time 2.334e-06/0.7947, allocations: 0 / 0.7332 GB, free: 13.28 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 0.0001234/0.7949, allocations: 0 / 0.7332 GB, free: 13.28 MB / 0.5762 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.009637/0.8045, allocations: 3.58 MB / 0.7367 GB, free: 9.629 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.624e-05/0.8046, allocations: 15.89 kB / 0.7367 GB, free: 9.613 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006022/0.8052, allocations: 339.3 kB / 0.737 GB, free: 9.27 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001024/0.8062, allocations: 322.1 kB / 0.7373 GB, free: 8.953 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003253/0.8095, allocations: 1.689 MB / 0.739 GB, free: 7.211 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002316/0.8097, allocations: 215.1 kB / 0.7392 GB, free: 6.988 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003626/0.8101, allocations: 188 kB / 0.7394 GB, free: 6.805 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005682/0.8158, allocations: 3.29 MB / 0.7426 GB, free: 3.387 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.48e-05/0.8159, allocations: 11.94 kB / 0.7426 GB, free: 3.375 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002302/0.8161, allocations: 79.97 kB / 0.7427 GB, free: 3.297 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003216/0.8164, allocations: 247.8 kB / 0.7429 GB, free: 3.055 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005392/0.8218, allocations: 3.103 MB / 0.7459 GB, free: 15.95 MB / 0.5919 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.02098/0.8428, allocations: 13.86 MB / 0.7595 GB, free: 1.156 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.197/1.04, allocations: 2.195 MB / 0.7616 GB, free: 225.3 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001931/1.042, allocations: 1.178 MB / 0.7628 GB, free: 225.2 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00786/1.05, allocations: 5.618 MB / 0.7683 GB, free: 222.3 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.237e-05/1.05, allocations: 50.27 kB / 0.7683 GB, free: 222.3 MB / 0.5919 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.000655/1.05, allocations: 171.4 kB / 0.7685 GB, free: 222.2 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=158): time 4.108e-06/1.05, allocations: 0 / 0.7685 GB, free: 222.2 MB / 0.5919 GB Notification: Performance of matching and sorting (n=259): time 0.4999/1.55, allocations: 56.34 MB / 0.8235 GB, free: 183.2 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.1302/1.681, allocations: 46.43 MB / 0.8688 GB, free: 136.2 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002127/1.683, allocations: 1.861 MB / 0.8707 GB, free: 134.3 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 0.0005812/1.683, allocations: 73.7 kB / 0.8707 GB, free: 134.3 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005341/1.684, allocations: 1.112 MB / 0.8718 GB, free: 133.3 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007466/1.685, allocations: 0.9151 MB / 0.8727 GB, free: 132.5 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009689/1.686, allocations: 0.5644 MB / 0.8733 GB, free: 131.9 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 4.761e-05/1.686, allocations: 309.1 kB / 0.8736 GB, free: 131.6 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003577/1.689, allocations: 2.176 MB / 0.8757 GB, free: 129.4 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004013/1.693, allocations: 2.825 MB / 0.8784 GB, free: 126.3 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009829/1.703, allocations: 5.457 MB / 0.8838 GB, free: 120.6 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-05/1.703, allocations: 8 kB / 0.8838 GB, free: 120.6 MB / 0.5919 GB Notification: Performance of matching and sorting (n=359) (initialization): time 0.01413/1.717, allocations: 7.507 MB / 0.8911 GB, free: 113 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 3.549e-05/1.717, allocations: 16 kB / 0.8911 GB, free: 113 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.953e-05/1.717, allocations: 16.88 kB / 0.8911 GB, free: 113 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.04278/1.76, allocations: 12.27 MB / 0.9031 GB, free: 100.7 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001521/1.762, allocations: 347.4 kB / 0.9034 GB, free: 100.3 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01557/1.777, allocations: 8.647 MB / 0.9119 GB, free: 91.65 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003573/1.781, allocations: 195.8 kB / 0.9121 GB, free: 91.46 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005523/1.782, allocations: 151.9 kB / 0.9122 GB, free: 91.31 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.004496/1.786, allocations: 2.684 MB / 0.9148 GB, free: 88.62 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.003758/1.79, allocations: 2.755 MB / 0.9175 GB, free: 85.59 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.009599/1.799, allocations: 5.332 MB / 0.9227 GB, free: 79.96 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.794e-05/1.8, allocations: 4 kB / 0.9227 GB, free: 79.96 MB / 0.5919 GB Notification: Performance of matching and sorting (n=359) (initialization_lambda0): time 0.01428/1.814, allocations: 7.249 MB / 0.9298 GB, free: 72.66 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 2.983e-05/1.814, allocations: 15.94 kB / 0.9298 GB, free: 72.64 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.824e-05/1.814, allocations: 20.78 kB / 0.9299 GB, free: 72.62 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02444/1.838, allocations: 7.738 MB / 0.9374 GB, free: 64.88 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00192/1.84, allocations: 395.3 kB / 0.9378 GB, free: 64.49 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01626/1.857, allocations: 8.166 MB / 0.9458 GB, free: 56.26 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003739/1.86, allocations: 199.3 kB / 0.946 GB, free: 56.07 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006943/1.861, allocations: 147.9 kB / 0.9461 GB, free: 55.92 MB / 0.5919 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.001131/1.862, allocations: 340.1 kB / 0.9464 GB, free: 55.58 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001017/1.863, allocations: 262.4 kB / 0.9467 GB, free: 55.32 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0159/1.879, allocations: 7.843 MB / 0.9543 GB, free: 47.42 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.188e-05/1.879, allocations: 39.92 kB / 0.9544 GB, free: 47.38 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.496e-06/1.879, allocations: 0 / 0.9544 GB, free: 47.38 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01311/1.892, allocations: 6.908 MB / 0.9611 GB, free: 40.37 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02656/1.919, allocations: 13.79 MB / 0.9746 GB, free: 26.48 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.503e-05/1.919, allocations: 4.125 kB / 0.9746 GB, free: 26.48 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009232/1.92, allocations: 195.7 kB / 0.9748 GB, free: 26.29 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0431/1.963, allocations: 11.67 MB / 0.9862 GB, free: 14.6 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007771/1.964, allocations: 83.95 kB / 0.9862 GB, free: 14.52 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01575/1.98, allocations: 8.359 MB / 0.9944 GB, free: 6.109 MB / 0.5919 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.394/2.374, allocations: 43.24 MB / 1.037 GB, free: 206.3 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01988/2.394, allocations: 10.46 MB / 1.047 GB, free: 196 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002042/2.396, allocations: 0.8204 MB / 1.048 GB, free: 195.2 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008611/2.397, allocations: 55.94 kB / 1.048 GB, free: 195.1 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002997/2.4, allocations: 174.9 kB / 1.048 GB, free: 194.9 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005396/2.4, allocations: 198.1 kB / 1.048 GB, free: 194.8 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003819/2.401, allocations: 107.9 kB / 1.048 GB, free: 194.6 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.001824/2.403, allocations: 1.273 MB / 1.049 GB, free: 193.4 MB / 0.5919 GB Notification: Performance of sort global known variables: time 2.8e-07/2.403, allocations: 1.203 kB / 1.049 GB, free: 193.4 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.008659/2.411, allocations: 2.922 MB / 1.052 GB, free: 190.7 MB / 0.5919 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.02881/2.44, allocations: 13.04 MB / 1.065 GB, free: 177.8 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.02681/2.467, allocations: 9.222 MB / 1.074 GB, free: 168.6 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 1.512e-05/2.467, allocations: 0 / 1.074 GB, free: 168.6 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.009772/2.477, allocations: 3.221 MB / 1.077 GB, free: 165.4 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006303/2.483, allocations: 1.049 MB / 1.078 GB, free: 164.4 MB / 0.5919 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]