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.00158/0.00158, allocations: 104.8 kB / 16.4 MB, free: 6.496 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.001766/0.001767, allocations: 192.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.383/1.383, 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.208/0.208, 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.001578/0.001578, allocations: 75.84 kB / 441.3 MB, free: 6.141 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1057/0.1073, allocations: 57.79 MB / 499.1 MB, free: 12.27 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState): time 0.3221/0.4295, allocations: 90.17 MB / 0.5755 GB, free: 7.531 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.03104/0.4606, allocations: 21.29 MB / 0.5963 GB, free: 7.793 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00324/0.4638, allocations: 85.41 kB / 0.5964 GB, free: 7.762 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003041/0.4669, allocations: 0.9507 MB / 0.5973 GB, free: 6.934 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01159/0.4786, allocations: 3.717 MB / 0.6009 GB, free: 4.074 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01413/0.4927, allocations: 5.629 MB / 0.6064 GB, free: 28 kB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.01019/0.5029, allocations: 6.896 MB / 0.6132 GB, free: 9.586 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004087/0.5071, allocations: 1.809 MB / 0.6149 GB, free: 7.762 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1654/0.6725, allocations: 74.87 MB / 0.688 GB, free: 12.03 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.06986/0.7424, allocations: 31.9 MB / 0.7192 GB, free: 11.74 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.001268/0.7437, allocations: 252 kB / 0.7194 GB, free: 11.49 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01514/0.7589, allocations: 6.073 MB / 0.7254 GB, free: 5.383 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.002269/0.7612, allocations: 1.067 MB / 0.7264 GB, free: 4.312 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.003761/0.765, allocations: 1.485 MB / 0.7279 GB, free: 2.82 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.01293/0.778, allocations: 5.5 MB / 0.7332 GB, free: 13.3 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 5.861e-06/0.778, allocations: 0 / 0.7332 GB, free: 13.3 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.674e-06/0.778, allocations: 4 kB / 0.7332 GB, free: 13.3 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 0.000127/0.7781, allocations: 0 / 0.7332 GB, free: 13.3 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.01042/0.7886, allocations: 3.481 MB / 0.7366 GB, free: 9.754 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.6e-05/0.7886, allocations: 15.89 kB / 0.7366 GB, free: 9.738 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009263/0.7896, allocations: 343.2 kB / 0.737 GB, free: 9.391 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001416/0.791, allocations: 312.5 kB / 0.7373 GB, free: 9.086 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004333/0.7954, allocations: 1.676 MB / 0.7389 GB, free: 7.355 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000265/0.7956, allocations: 211.1 kB / 0.7391 GB, free: 7.137 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005876/0.7962, allocations: 184 kB / 0.7393 GB, free: 6.957 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006948/0.8032, allocations: 3.295 MB / 0.7425 GB, free: 3.535 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.344e-05/0.8033, allocations: 3.938 kB / 0.7425 GB, free: 3.531 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003856/0.8037, allocations: 83.95 kB / 0.7426 GB, free: 3.449 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003429/0.8041, allocations: 251.7 kB / 0.7428 GB, free: 3.203 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006636/0.8107, allocations: 3.099 MB / 0.7459 GB, free: 104 kB / 0.5762 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.02513/0.8359, allocations: 13.84 MB / 0.7594 GB, free: 1.332 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.2095/1.045, allocations: 2.19 MB / 0.7615 GB, free: 225.9 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002035/1.047, allocations: 1.179 MB / 0.7627 GB, free: 225.9 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.009593/1.057, allocations: 5.619 MB / 0.7681 GB, free: 223 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.995e-05/1.057, allocations: 55.8 kB / 0.7682 GB, free: 223 MB / 0.5919 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0007109/1.058, allocations: 158.8 kB / 0.7683 GB, free: 222.9 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=158): time 4.749e-06/1.058, allocations: 1.562 kB / 0.7683 GB, free: 222.9 MB / 0.5919 GB Notification: Performance of matching and sorting (n=259): time 0.5168/1.575, allocations: 56.28 MB / 0.8233 GB, free: 184 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.1368/1.712, allocations: 46.43 MB / 0.8686 GB, free: 137.1 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002557/1.714, allocations: 1.858 MB / 0.8705 GB, free: 135.2 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 0.0006911/1.715, allocations: 73.7 kB / 0.8705 GB, free: 135.1 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006916/1.716, allocations: 1.088 MB / 0.8716 GB, free: 134 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.001077/1.717, allocations: 0.8651 MB / 0.8724 GB, free: 133.2 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001537/1.718, allocations: 0.5683 MB / 0.873 GB, free: 132.6 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 4.489e-05/1.718, allocations: 301.1 kB / 0.8733 GB, free: 132.3 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003941/1.722, allocations: 2.184 MB / 0.8754 GB, free: 130.1 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004497/1.727, allocations: 2.822 MB / 0.8782 GB, free: 127 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01091/1.738, allocations: 5.46 MB / 0.8835 GB, free: 121.3 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.336e-05/1.738, allocations: 8 kB / 0.8835 GB, free: 121.3 MB / 0.5919 GB Notification: Performance of matching and sorting (n=359) (initialization): time 0.01605/1.754, allocations: 7.495 MB / 0.8908 GB, free: 113.7 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 4.687e-05/1.754, allocations: 19.98 kB / 0.8908 GB, free: 113.7 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.939e-05/1.754, allocations: 16 kB / 0.8909 GB, free: 113.7 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.04444/1.798, allocations: 12.26 MB / 0.9028 GB, free: 101.4 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001524/1.8, allocations: 347.4 kB / 0.9032 GB, free: 101.1 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01676/1.817, allocations: 8.647 MB / 0.9116 GB, free: 92.36 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003744/1.821, allocations: 191.8 kB / 0.9118 GB, free: 92.17 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00079/1.821, allocations: 155.9 kB / 0.9119 GB, free: 92.02 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.005352/1.827, allocations: 2.683 MB / 0.9146 GB, free: 89.33 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.004419/1.831, allocations: 2.755 MB / 0.9173 GB, free: 86.3 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.01081/1.842, allocations: 5.328 MB / 0.9225 GB, free: 80.68 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.151e-05/1.842, allocations: 8 kB / 0.9225 GB, free: 80.67 MB / 0.5919 GB Notification: Performance of matching and sorting (n=359) (initialization_lambda0): time 0.01558/1.858, allocations: 7.232 MB / 0.9295 GB, free: 73.38 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 3.3e-05/1.858, allocations: 15.94 kB / 0.9295 GB, free: 73.37 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.377e-05/1.858, allocations: 16 kB / 0.9296 GB, free: 73.35 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02447/1.882, allocations: 7.742 MB / 0.9371 GB, free: 65.6 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001762/1.884, allocations: 407.3 kB / 0.9375 GB, free: 65.2 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0153/1.899, allocations: 8.154 MB / 0.9455 GB, free: 56.98 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003536/1.903, allocations: 199.8 kB / 0.9457 GB, free: 56.79 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005828/1.904, allocations: 143.9 kB / 0.9458 GB, free: 56.65 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.0009409/1.905, allocations: 340 kB / 0.9461 GB, free: 56.31 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000843/1.905, allocations: 256.9 kB / 0.9464 GB, free: 56.05 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01588/1.921, allocations: 7.835 MB / 0.954 GB, free: 48.16 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.398e-05/1.921, allocations: 35.98 kB / 0.9541 GB, free: 48.12 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.242e-06/1.921, allocations: 0 / 0.9541 GB, free: 48.12 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01356/1.935, allocations: 6.915 MB / 0.9608 GB, free: 41.11 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02813/1.963, allocations: 13.78 MB / 0.9743 GB, free: 27.24 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.987e-05/1.963, allocations: 4 kB / 0.9743 GB, free: 27.24 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009591/1.964, allocations: 187.8 kB / 0.9744 GB, free: 27.05 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.04313/2.007, allocations: 11.67 MB / 0.9858 GB, free: 15.37 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007206/2.008, allocations: 83.95 kB / 0.9859 GB, free: 15.29 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0158/2.024, allocations: 8.354 MB / 0.9941 GB, free: 6.879 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.3949/2.419, allocations: 43.22 MB / 1.036 GB, free: 207.6 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02548/2.444, allocations: 10.44 MB / 1.046 GB, free: 197.3 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00328/2.448, allocations: 0.8077 MB / 1.047 GB, free: 196.5 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001165/2.449, allocations: 59.84 kB / 1.047 GB, free: 196.4 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004441/2.453, allocations: 167.8 kB / 1.047 GB, free: 196.2 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000989/2.454, allocations: 198.1 kB / 1.048 GB, free: 196.1 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007407/2.455, allocations: 116 kB / 1.048 GB, free: 195.9 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.003175/2.458, allocations: 1.277 MB / 1.049 GB, free: 194.6 MB / 0.5919 GB Notification: Performance of sort global known variables: time 7.61e-07/2.458, allocations: 0 / 1.049 GB, free: 194.6 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.01345/2.472, allocations: 2.892 MB / 1.052 GB, free: 191.9 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.04313/2.515, allocations: 13 MB / 1.065 GB, free: 179 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0266/2.542, allocations: 9.217 MB / 1.074 GB, free: 169.9 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 8.606e-06/2.542, allocations: 0 / 1.074 GB, free: 169.9 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.008875/2.551, allocations: 3.214 MB / 1.077 GB, free: 166.7 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005358/2.556, allocations: 1.05 MB / 1.078 GB, free: 165.6 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]