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.001331/0.001331, allocations: 108.2 kB / 16.41 MB, free: 6.461 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.001323/0.001323, allocations: 189.5 kB / 17.34 MB, free: 5.719 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.291/1.291, allocations: 205.1 MB / 223.2 MB, free: 12.2 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.2087/0.2087, allocations: 43.53 MB / 314.1 MB, free: 436 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.001584/0.001584, allocations: 73.98 kB / 441.3 MB, free: 6.102 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1162/0.1178, allocations: 57.8 MB / 499.1 MB, free: 12.23 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState): time 0.3441/0.4619, allocations: 90.16 MB / 0.5755 GB, free: 7.469 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.03276/0.4947, allocations: 21.3 MB / 0.5963 GB, free: 7.719 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003548/0.4983, allocations: 89.75 kB / 0.5964 GB, free: 7.684 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002977/0.5014, allocations: 0.9415 MB / 0.5973 GB, free: 6.863 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01072/0.5121, allocations: 3.721 MB / 0.6009 GB, free: 4 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01534/0.5275, allocations: 5.63 MB / 0.6064 GB, free: 15.95 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.01032/0.5378, allocations: 6.898 MB / 0.6132 GB, free: 9.477 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003768/0.5416, allocations: 1.806 MB / 0.6149 GB, free: 7.656 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1695/0.7112, allocations: 74.86 MB / 0.688 GB, free: 11.93 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.07074/0.782, allocations: 31.91 MB / 0.7192 GB, free: 11.64 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.001217/0.7833, allocations: 244 kB / 0.7194 GB, free: 11.4 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01607/0.7993, allocations: 6.081 MB / 0.7254 GB, free: 5.281 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.002144/0.8015, allocations: 1.075 MB / 0.7264 GB, free: 4.203 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.003579/0.8051, allocations: 1.485 MB / 0.7279 GB, free: 2.711 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.01181/0.817, allocations: 5.501 MB / 0.7332 GB, free: 13.19 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 6.031e-06/0.817, allocations: 0 / 0.7332 GB, free: 13.19 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.883e-06/0.817, allocations: 0 / 0.7332 GB, free: 13.19 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 9.821e-05/0.8171, allocations: 0 / 0.7332 GB, free: 13.19 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.01077/0.8279, allocations: 3.484 MB / 0.7366 GB, free: 9.645 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.545e-05/0.828, allocations: 11.89 kB / 0.7366 GB, free: 9.633 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001002/0.829, allocations: 347.2 kB / 0.737 GB, free: 9.281 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001431/0.8304, allocations: 304.6 kB / 0.7373 GB, free: 8.98 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00341/0.8338, allocations: 1.668 MB / 0.7389 GB, free: 7.258 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002143/0.8341, allocations: 219.1 kB / 0.7391 GB, free: 7.031 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003817/0.8345, allocations: 191.9 kB / 0.7393 GB, free: 6.844 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005382/0.8399, allocations: 3.286 MB / 0.7425 GB, free: 3.43 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.299e-05/0.8399, allocations: 11.88 kB / 0.7425 GB, free: 3.418 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00023/0.8402, allocations: 87.95 kB / 0.7426 GB, free: 3.332 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002996/0.8405, allocations: 247.8 kB / 0.7428 GB, free: 3.09 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005313/0.8458, allocations: 3.099 MB / 0.7459 GB, free: 15.98 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.02195/0.8678, allocations: 13.83 MB / 0.7594 GB, free: 1.223 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.2196/1.087, allocations: 2.191 MB / 0.7615 GB, free: 225.2 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002003/1.089, allocations: 1.177 MB / 0.7626 GB, free: 225.2 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00824/1.098, allocations: 5.621 MB / 0.7681 GB, free: 222.2 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.414e-05/1.098, allocations: 49.88 kB / 0.7682 GB, free: 222.2 MB / 0.5919 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0006164/1.098, allocations: 157.9 kB / 0.7683 GB, free: 222.2 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=158): time 5.24e-06/1.098, allocations: 0 / 0.7683 GB, free: 222.2 MB / 0.5919 GB Notification: Performance of matching and sorting (n=259): time 0.517/1.615, allocations: 56.29 MB / 0.8233 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.1299/1.745, allocations: 46.42 MB / 0.8686 GB, free: 136.3 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001993/1.747, allocations: 1.866 MB / 0.8705 GB, free: 134.4 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 0.0005544/1.748, allocations: 73.7 kB / 0.8705 GB, free: 134.3 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005144/1.749, allocations: 1.083 MB / 0.8716 GB, free: 133.2 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006614/1.749, allocations: 0.8674 MB / 0.8724 GB, free: 132.3 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009227/1.75, allocations: 0.5643 MB / 0.873 GB, free: 131.8 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 3.912e-05/1.75, allocations: 301.1 kB / 0.8733 GB, free: 131.5 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003362/1.754, allocations: 2.184 MB / 0.8754 GB, free: 129.3 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003699/1.757, allocations: 2.822 MB / 0.8782 GB, free: 126.2 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009652/1.767, allocations: 5.453 MB / 0.8835 GB, free: 120.5 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.048e-05/1.767, allocations: 4 kB / 0.8835 GB, free: 120.4 MB / 0.5919 GB Notification: Performance of matching and sorting (n=359) (initialization): time 0.01396/1.781, allocations: 7.502 MB / 0.8908 GB, free: 112.9 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 2.949e-05/1.781, allocations: 12 kB / 0.8908 GB, free: 112.9 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.07e-05/1.781, allocations: 24.08 kB / 0.8908 GB, free: 112.9 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.04311/1.824, allocations: 12.27 MB / 0.9028 GB, free: 100.6 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001541/1.826, allocations: 347.4 kB / 0.9032 GB, free: 100.2 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01517/1.841, allocations: 8.654 MB / 0.9116 GB, free: 91.53 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003576/1.845, allocations: 191.8 kB / 0.9118 GB, free: 91.34 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00044/1.845, allocations: 151.9 kB / 0.9119 GB, free: 91.19 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.004113/1.849, allocations: 2.684 MB / 0.9146 GB, free: 88.5 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.003589/1.853, allocations: 2.759 MB / 0.9173 GB, free: 85.47 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.009173/1.862, allocations: 5.328 MB / 0.9225 GB, free: 79.85 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.616e-05/1.862, allocations: 4 kB / 0.9225 GB, free: 79.84 MB / 0.5919 GB Notification: Performance of matching and sorting (n=359) (initialization_lambda0): time 0.01317/1.875, allocations: 7.235 MB / 0.9295 GB, free: 72.55 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 2.702e-05/1.875, allocations: 19.94 kB / 0.9295 GB, free: 72.54 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.441e-05/1.875, allocations: 16 kB / 0.9296 GB, free: 72.52 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02358/1.899, allocations: 7.739 MB / 0.9371 GB, free: 64.77 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001819/1.901, allocations: 391.4 kB / 0.9375 GB, free: 64.39 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01506/1.916, allocations: 8.161 MB / 0.9455 GB, free: 56.16 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003582/1.919, allocations: 195.8 kB / 0.9456 GB, free: 55.97 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004365/1.92, allocations: 143.9 kB / 0.9458 GB, free: 55.83 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.00081/1.921, allocations: 344 kB / 0.9461 GB, free: 55.49 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006521/1.921, allocations: 248.9 kB / 0.9463 GB, free: 55.24 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01393/1.935, allocations: 7.839 MB / 0.954 GB, free: 47.34 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.151e-05/1.935, allocations: 36 kB / 0.954 GB, free: 47.31 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.24e-06/1.935, allocations: 0 / 0.954 GB, free: 47.31 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01176/1.947, allocations: 6.915 MB / 0.9608 GB, free: 40.29 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02454/1.972, allocations: 13.78 MB / 0.9742 GB, free: 26.43 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.397e-05/1.972, allocations: 0 / 0.9742 GB, free: 26.43 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009551/1.973, allocations: 191.8 kB / 0.9744 GB, free: 26.24 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.04238/2.015, allocations: 11.68 MB / 0.9858 GB, free: 14.54 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007595/2.016, allocations: 83.95 kB / 0.9859 GB, free: 14.46 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01486/2.031, allocations: 8.358 MB / 0.9941 GB, free: 6.051 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.3942/2.425, allocations: 43.2 MB / 1.036 GB, free: 206.2 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01782/2.443, allocations: 10.45 MB / 1.046 GB, free: 195.9 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002064/2.445, allocations: 0.8102 MB / 1.047 GB, free: 195.1 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006219/2.446, allocations: 52 kB / 1.047 GB, free: 195 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00273/2.448, allocations: 175.7 kB / 1.047 GB, free: 194.9 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004396/2.449, allocations: 201.9 kB / 1.048 GB, free: 194.7 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002687/2.449, allocations: 104 kB / 1.048 GB, free: 194.6 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.001632/2.451, allocations: 1.284 MB / 1.049 GB, free: 193.3 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.6e-07/2.451, allocations: 0 / 1.049 GB, free: 193.3 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.008346/2.459, allocations: 2.889 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.02553/2.485, allocations: 13 MB / 1.065 GB, free: 177.9 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.02426/2.509, allocations: 9.21 MB / 1.074 GB, free: 168.7 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 1.01e-05/2.509, allocations: 0 / 1.074 GB, free: 168.7 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.009371/2.519, allocations: 3.221 MB / 1.077 GB, free: 165.5 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005196/2.524, allocations: 1.052 MB / 1.078 GB, free: 164.5 MB / 0.5919 GB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:4690:9-4690:59:writable] Error: Internal error function createStateSetsSets failed. [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:804:5-804:146:writable] Error: Internal error function createSimCode failed [Transformation from optimised DAE to simulation code structure failed]