Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestExamplesVariants_HeatingSystem_SteadyState",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestExamplesVariants_HeatingSystem_SteadyState",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001674/0.001674, allocations: 103.1 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002164/0.002164, allocations: 216.5 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.371/1.371, allocations: 227.4 MB / 246.8 MB, free: 10.54 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2144/0.2144, allocations: 46.11 MB / 344.1 MB, free: 11.57 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001512/0.001512, allocations: 72.75 kB / 417.7 MB, free: 19.62 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1052/0.1067, allocations: 62.44 MB / 480.1 MB, free: 5.168 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState): time 0.268/0.3747, allocations: 90.45 MB / 0.5572 GB, free: 4.926 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.03474/0.4095, allocations: 21.34 MB / 0.578 GB, free: 2.863 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002885/0.4125, allocations: 87.44 kB / 0.5781 GB, free: 2.777 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003143/0.4157, allocations: 0.9473 MB / 0.5791 GB, free: 1.824 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01028/0.426, allocations: 3.74 MB / 0.5827 GB, free: 14.07 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01341/0.4394, allocations: 5.67 MB / 0.5882 GB, free: 8.398 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.008688/0.4481, allocations: 6.929 MB / 0.595 GB, free: 1.457 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004005/0.4522, allocations: 1.817 MB / 0.5968 GB, free: 15.62 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1742/0.6264, allocations: 74.89 MB / 0.6699 GB, free: 3.887 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.07335/0.6998, allocations: 31.94 MB / 0.7011 GB, free: 3.562 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 0.001045/0.7009, allocations: 248 kB / 0.7013 GB, free: 3.32 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.2448/0.9457, allocations: 6.104 MB / 0.7073 GB, free: 109.8 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.002447/0.9482, allocations: 1.074 MB / 0.7084 GB, free: 109.8 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.004339/0.9525, allocations: 1.49 MB / 0.7098 GB, free: 109.8 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.01229/0.9649, allocations: 5.447 MB / 0.7151 GB, free: 109.5 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 5.39e-06/0.9649, allocations: 0.5938 kB / 0.7151 GB, free: 109.5 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.704e-06/0.9649, allocations: 3.969 kB / 0.7151 GB, free: 109.5 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 0.0001503/0.9651, allocations: 0.5 kB / 0.7151 GB, free: 109.5 MB / 0.5294 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.01265/0.9777, allocations: 3.492 MB / 0.7185 GB, free: 108.1 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 4.446e-05/0.9778, allocations: 8.781 kB / 0.7185 GB, free: 108.1 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001294/0.9791, allocations: 343.6 kB / 0.7189 GB, free: 108 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001878/0.981, allocations: 308.1 kB / 0.7192 GB, free: 107.9 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00409/0.9851, allocations: 1.568 MB / 0.7207 GB, free: 107.4 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002956/0.9854, allocations: 220.4 kB / 0.7209 GB, free: 107.3 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008341/0.9863, allocations: 182.1 kB / 0.7211 GB, free: 107.3 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007093/0.9934, allocations: 3.297 MB / 0.7243 GB, free: 107 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.737e-05/0.9935, allocations: 7.078 kB / 0.7243 GB, free: 107 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004613/0.9939, allocations: 89 kB / 0.7244 GB, free: 107 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003256/0.9943, allocations: 250.3 kB / 0.7246 GB, free: 107 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005818/1, allocations: 3.101 MB / 0.7277 GB, free: 106.9 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.02074/1.021, allocations: 13.89 MB / 0.7412 GB, free: 99.91 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004362/1.025, allocations: 2.198 MB / 0.7434 GB, free: 99.87 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00184/1.027, allocations: 1.181 MB / 0.7445 GB, free: 99.85 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.008989/1.036, allocations: 5.623 MB / 0.75 GB, free: 96.55 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.663e-05/1.036, allocations: 54.5 kB / 0.7501 GB, free: 96.51 MB / 0.5294 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001059/1.037, allocations: 156 kB / 0.7502 GB, free: 96.41 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=158): time 8.245e-06/1.037, allocations: 0 / 0.7502 GB, free: 96.41 MB / 0.5294 GB Notification: Performance of matching and sorting (n=259): time 0.5098/1.547, allocations: 55.36 MB / 0.8043 GB, free: 44.85 MB / 0.5294 GB Error: Jacobian StateSetJac0 contains non-linear components. This indicates a singular system or internal generation errors. Notification: Performance of inlineWhenForInitialization (initialization): time 0.1298/1.677, allocations: 45.56 MB / 0.8488 GB, free: 14.88 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002943/1.68, allocations: 1.867 MB / 0.8506 GB, free: 12.98 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0006319/1.681, allocations: 69.7 kB / 0.8507 GB, free: 12.9 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008288/1.681, allocations: 1.087 MB / 0.8517 GB, free: 11.81 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.001202/1.683, allocations: 0.8703 MB / 0.8526 GB, free: 10.95 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001603/1.684, allocations: 0.5643 MB / 0.8531 GB, free: 10.38 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001093/1.684, allocations: 313 kB / 0.8534 GB, free: 10.07 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004222/1.689, allocations: 2.176 MB / 0.8556 GB, free: 7.883 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004795/1.693, allocations: 2.824 MB / 0.8583 GB, free: 4.809 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01114/1.705, allocations: 5.418 MB / 0.8636 GB, free: 15.18 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.998e-05/1.705, allocations: 8 kB / 0.8636 GB, free: 15.17 MB / 0.5606 GB Notification: Performance of matching and sorting (n=359) (initialization): time 0.01597/1.721, allocations: 7.47 MB / 0.8709 GB, free: 7.746 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 4.063e-05/1.721, allocations: 14.81 kB / 0.8709 GB, free: 7.734 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.42e-05/1.721, allocations: 24.09 kB / 0.8709 GB, free: 7.711 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.04616/1.767, allocations: 11.85 MB / 0.8825 GB, free: 11.88 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001601/1.769, allocations: 349.6 kB / 0.8828 GB, free: 11.56 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01825/1.787, allocations: 8.621 MB / 0.8913 GB, free: 2.898 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004217/1.791, allocations: 190 kB / 0.8914 GB, free: 2.715 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007592/1.792, allocations: 159.9 kB / 0.8916 GB, free: 2.559 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.006107/1.798, allocations: 2.68 MB / 0.8942 GB, free: 15.87 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.005263/1.803, allocations: 2.754 MB / 0.8969 GB, free: 12.86 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.01142/1.815, allocations: 5.292 MB / 0.9021 GB, free: 7.352 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.34e-05/1.815, allocations: 8 kB / 0.9021 GB, free: 7.344 MB / 0.5919 GB Notification: Performance of matching and sorting (n=359) (initialization_lambda0): time 0.01952/1.834, allocations: 7.208 MB / 0.9091 GB, free: 200 kB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 4.469e-05/1.834, allocations: 12 kB / 0.9091 GB, free: 188 kB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.243e-05/1.834, allocations: 23.94 kB / 0.9092 GB, free: 164 kB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02731/1.862, allocations: 7.693 MB / 0.9167 GB, free: 8.465 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002193/1.864, allocations: 396.8 kB / 0.917 GB, free: 8.102 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.236/2.1, allocations: 8.139 MB / 0.925 GB, free: 260.6 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004998/2.105, allocations: 192.7 kB / 0.9252 GB, free: 260.6 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006937/2.106, allocations: 146.6 kB / 0.9253 GB, free: 260.6 MB / 0.6075 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.0009091/2.107, allocations: 338.7 kB / 0.9256 GB, free: 260.4 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008916/2.108, allocations: 247.2 kB / 0.9259 GB, free: 260.4 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01861/2.126, allocations: 7.837 MB / 0.9335 GB, free: 259.5 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.278e-05/2.126, allocations: 31.42 kB / 0.9336 GB, free: 259.5 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.668e-06/2.126, allocations: 3.562 kB / 0.9336 GB, free: 259.5 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01603/2.142, allocations: 6.892 MB / 0.9403 GB, free: 256.8 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02592/2.168, allocations: 13.76 MB / 0.9537 GB, free: 251.5 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.921e-05/2.168, allocations: 7.594 kB / 0.9537 GB, free: 251.5 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009575/2.169, allocations: 187.2 kB / 0.9539 GB, free: 251.5 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.04055/2.21, allocations: 11.28 MB / 0.9649 GB, free: 247.5 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007072/2.211, allocations: 87.95 kB / 0.965 GB, free: 247.4 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01445/2.225, allocations: 8.338 MB / 0.9732 GB, free: 239.2 MB / 0.6075 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.1172/2.342, allocations: 42.29 MB / 1.014 GB, free: 197.1 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01812/2.36, allocations: 10.41 MB / 1.025 GB, free: 186.6 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002045/2.363, allocations: 0.8038 MB / 1.025 GB, free: 185.7 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005913/2.363, allocations: 55.92 kB / 1.025 GB, free: 185.7 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002671/2.366, allocations: 174.2 kB / 1.026 GB, free: 185.5 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004628/2.366, allocations: 194.1 kB / 1.026 GB, free: 185.3 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002874/2.367, allocations: 111.9 kB / 1.026 GB, free: 185.2 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.001489/2.368, allocations: 1.281 MB / 1.027 GB, free: 183.9 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.7e-07/2.368, allocations: 0 / 1.027 GB, free: 183.9 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0077/2.376, allocations: 2.901 MB / 1.03 GB, free: 181.2 MB / 0.6075 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.0261/2.402, allocations: 12.98 MB / 1.043 GB, free: 168.3 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.02733/2.429, allocations: 10.31 MB / 1.053 GB, free: 157.9 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 8.085e-06/2.429, allocations: 0 / 1.053 GB, free: 157.9 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.009065/2.438, allocations: 3.216 MB / 1.056 GB, free: 154.7 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005727/2.444, allocations: 1.071 MB / 1.057 GB, free: 153.7 MB / 0.6075 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]