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.00158/0.00158, 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.001694/0.001694, 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.32/1.32, allocations: 222.9 MB / 242.4 MB, free: 15.05 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.1881/0.1881, allocations: 44.19 MB / 336.8 MB, free: 2.664 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00126/0.00126, allocations: 63.89 kB / 470.1 MB, free: 13.65 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.32/0.3213, allocations: 60.82 MB / 0.5185 GB, free: 3.293 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState): time 0.09072/0.4121, allocations: 90.14 MB / 0.6065 GB, free: 1.711 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.02948/0.4416, allocations: 21.32 MB / 0.6273 GB, free: 12.34 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002754/0.4444, allocations: 87.44 kB / 0.6274 GB, free: 12.25 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00262/0.4471, allocations: 0.9356 MB / 0.6283 GB, free: 11.31 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009541/0.4566, allocations: 3.779 MB / 0.632 GB, free: 7.512 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01242/0.4691, allocations: 5.669 MB / 0.6375 GB, free: 1.844 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.008091/0.4772, allocations: 6.913 MB / 0.6443 GB, free: 10.91 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002948/0.4802, allocations: 1.813 MB / 0.646 GB, free: 9.07 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.4694/0.9496, allocations: 74.89 MB / 0.7192 GB, free: 72.93 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.06698/1.017, allocations: 31.91 MB / 0.7503 GB, free: 63.34 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.0009345/1.018, allocations: 248.6 kB / 0.7506 GB, free: 63.34 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01347/1.031, allocations: 6.087 MB / 0.7565 GB, free: 62.34 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.001968/1.033, allocations: 1.075 MB / 0.7576 GB, free: 62.34 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.00277/1.036, allocations: 1.489 MB / 0.759 GB, free: 62.29 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.009472/1.045, allocations: 5.522 MB / 0.7644 GB, free: 61.62 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 5.28e-06/1.045, allocations: 3.469 kB / 0.7644 GB, free: 61.62 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.443e-06/1.045, allocations: 0 / 0.7644 GB, free: 61.62 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 9.5e-05/1.046, allocations: 0 / 0.7644 GB, free: 61.62 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.01/1.056, allocations: 3.586 MB / 0.7679 GB, free: 59.66 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 5.967e-05/1.056, allocations: 9 kB / 0.7679 GB, free: 59.66 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007426/1.056, allocations: 346.5 kB / 0.7683 GB, free: 59.55 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001292/1.058, allocations: 320.8 kB / 0.7686 GB, free: 59.39 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003798/1.061, allocations: 1.688 MB / 0.7702 GB, free: 58.56 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002955/1.062, allocations: 213.6 kB / 0.7704 GB, free: 58.49 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006409/1.062, allocations: 190.1 kB / 0.7706 GB, free: 58.49 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006011/1.068, allocations: 3.291 MB / 0.7738 GB, free: 56.12 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.369e-05/1.069, allocations: 3.469 kB / 0.7738 GB, free: 56.12 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002706/1.069, allocations: 85 kB / 0.7739 GB, free: 56.09 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002581/1.069, allocations: 258.2 kB / 0.7742 GB, free: 55.88 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004803/1.074, allocations: 3.096 MB / 0.7772 GB, free: 53.82 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.01706/1.091, allocations: 13.86 MB / 0.7907 GB, free: 41.63 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003553/1.095, allocations: 2.194 MB / 0.7928 GB, free: 40.25 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00163/1.096, allocations: 1.192 MB / 0.794 GB, free: 39.49 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.007262/1.104, allocations: 5.621 MB / 0.7995 GB, free: 34.43 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.616e-05/1.104, allocations: 54.62 kB / 0.7996 GB, free: 34.38 MB / 0.5606 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0006689/1.104, allocations: 172.7 kB / 0.7997 GB, free: 34.23 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=158): time 3.697e-06/1.104, allocations: 0 / 0.7997 GB, free: 34.23 MB / 0.5606 GB Notification: Performance of matching and sorting (n=259): time 0.4894/1.594, allocations: 56.32 MB / 0.8547 GB, free: 10.75 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.148/1.742, allocations: 46.44 MB / 0.9001 GB, free: 11.93 MB / 0.6387 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003365/1.745, allocations: 1.866 MB / 0.9019 GB, free: 10.02 MB / 0.6387 GB Notification: Performance of collectPreVariables (initialization): time 0.0007015/1.746, allocations: 65.7 kB / 0.902 GB, free: 9.949 MB / 0.6387 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008891/1.747, allocations: 1.116 MB / 0.9031 GB, free: 8.828 MB / 0.6387 GB Notification: Performance of collectInitialBindings (initialization): time 0.001454/1.748, allocations: 0.9073 MB / 0.9039 GB, free: 7.934 MB / 0.6387 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002045/1.75, allocations: 0.5723 MB / 0.9045 GB, free: 7.355 MB / 0.6387 GB Notification: Performance of setup shared object (initialization): time 0.0001045/1.75, allocations: 305.1 kB / 0.9048 GB, free: 7.055 MB / 0.6387 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00475/1.755, allocations: 2.18 MB / 0.9069 GB, free: 4.867 MB / 0.6387 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005347/1.761, allocations: 2.822 MB / 0.9097 GB, free: 1.793 MB / 0.6387 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01288/1.774, allocations: 5.462 MB / 0.915 GB, free: 12.11 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.831e-05/1.774, allocations: 4 kB / 0.915 GB, free: 12.11 MB / 0.6544 GB Notification: Performance of matching and sorting (n=359) (initialization): time 0.01776/1.791, allocations: 7.515 MB / 0.9224 GB, free: 4.652 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 3.512e-05/1.791, allocations: 12 kB / 0.9224 GB, free: 4.641 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.193e-05/1.791, allocations: 20 kB / 0.9224 GB, free: 4.621 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.04612/1.838, allocations: 12.26 MB / 0.9343 GB, free: 8.383 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001643/1.839, allocations: 347.3 kB / 0.9347 GB, free: 8.066 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01879/1.858, allocations: 8.658 MB / 0.9431 GB, free: 15.37 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003655/1.862, allocations: 187.8 kB / 0.9433 GB, free: 15.18 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005675/1.862, allocations: 155.9 kB / 0.9435 GB, free: 15.03 MB / 0.6856 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.005247/1.868, allocations: 2.683 MB / 0.9461 GB, free: 12.34 MB / 0.6856 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.004665/1.872, allocations: 2.753 MB / 0.9488 GB, free: 9.336 MB / 0.6856 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.01121/1.884, allocations: 5.331 MB / 0.954 GB, free: 3.785 MB / 0.6856 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.206e-05/1.884, allocations: 12 kB / 0.954 GB, free: 3.773 MB / 0.6856 GB Notification: Performance of matching and sorting (n=359) (initialization_lambda0): time 0.01729/1.901, allocations: 7.24 MB / 0.9611 GB, free: 12.59 MB / 0.7012 GB Notification: Performance of prepare postOptimizeDAE: time 3.163e-05/1.901, allocations: 12 kB / 0.9611 GB, free: 12.58 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.297e-05/1.901, allocations: 23.94 kB / 0.9611 GB, free: 12.55 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02597/1.927, allocations: 7.734 MB / 0.9686 GB, free: 4.816 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001981/1.929, allocations: 398.8 kB / 0.969 GB, free: 4.453 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2571/2.186, allocations: 8.162 MB / 0.977 GB, free: 284.4 MB / 0.7012 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003606/2.19, allocations: 193.3 kB / 0.9772 GB, free: 284.4 MB / 0.7012 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005078/2.19, allocations: 148 kB / 0.9773 GB, free: 284.4 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.0008202/2.191, allocations: 338.9 kB / 0.9776 GB, free: 284.2 MB / 0.7012 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007422/2.192, allocations: 261.9 kB / 0.9779 GB, free: 284.2 MB / 0.7012 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01605/2.208, allocations: 7.84 MB / 0.9856 GB, free: 284 MB / 0.7012 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.844e-05/2.208, allocations: 36.28 kB / 0.9856 GB, free: 284 MB / 0.7012 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.25e-06/2.208, allocations: 1.375 kB / 0.9856 GB, free: 284 MB / 0.7012 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01336/2.222, allocations: 6.914 MB / 0.9923 GB, free: 283.4 MB / 0.7012 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02584/2.247, allocations: 13.78 MB / 1.006 GB, free: 278.1 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.458e-05/2.247, allocations: 0 / 1.006 GB, free: 278.1 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009574/2.248, allocations: 189.8 kB / 1.006 GB, free: 278.1 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.04098/2.289, allocations: 11.68 MB / 1.017 GB, free: 271.2 MB / 0.7012 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007782/2.29, allocations: 87.95 kB / 1.017 GB, free: 271.1 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01431/2.305, allocations: 8.361 MB / 1.026 GB, free: 262.8 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.1195/2.424, allocations: 43.26 MB / 1.068 GB, free: 219.7 MB / 0.7012 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01773/2.442, allocations: 10.46 MB / 1.078 GB, free: 209.2 MB / 0.7012 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002215/2.444, allocations: 0.8219 MB / 1.079 GB, free: 208.4 MB / 0.7012 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008529/2.445, allocations: 48 kB / 1.079 GB, free: 208.3 MB / 0.7012 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003042/2.448, allocations: 171.8 kB / 1.079 GB, free: 208.1 MB / 0.7012 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005499/2.449, allocations: 202 kB / 1.079 GB, free: 207.9 MB / 0.7012 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003086/2.449, allocations: 111.9 kB / 1.079 GB, free: 207.8 MB / 0.7012 GB Notification: Performance of sorting global known variables: time 0.001561/2.451, allocations: 1.273 MB / 1.081 GB, free: 206.5 MB / 0.7012 GB Notification: Performance of sort global known variables: time 1.21e-07/2.451, allocations: 3.562 kB / 1.081 GB, free: 206.5 MB / 0.7012 GB Notification: Performance of remove unused functions: time 0.009267/2.46, allocations: 2.92 MB / 1.083 GB, free: 203.8 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.02637/2.486, allocations: 13.03 MB / 1.096 GB, free: 190.8 MB / 0.7012 GB Notification: Performance of simCode: created initialization part: time 0.02457/2.511, allocations: 9.219 MB / 1.105 GB, free: 181.8 MB / 0.7012 GB Notification: Performance of simCode: created event and clocks part: time 9.187e-06/2.511, allocations: 0 / 1.105 GB, free: 181.8 MB / 0.7012 GB Notification: Performance of simCode: created simulation system equations: time 0.009371/2.52, allocations: 3.218 MB / 1.108 GB, free: 178.5 MB / 0.7012 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005082/2.525, allocations: 1.039 MB / 1.109 GB, free: 177.5 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]