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.000737/0.000737, allocations: 96.86 kB / 15.7 MB, free: 468 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008115/0.0008115, allocations: 167.6 kB / 16.57 MB, free: 6.047 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.318/1.318, allocations: 205.4 MB / 222.7 MB, free: 5.648 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3255/0.3255, allocations: 43.55 MB / 314.6 MB, free: 9.004 MB / 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.0005027/0.0005027, allocations: 16 kB / 384 MB, free: 8.129 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1034/0.1039, allocations: 58.84 MB / 442.9 MB, free: 13.18 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState): time 0.2905/0.3944, allocations: 86.58 MB / 0.517 GB, free: 9.758 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.03103/0.4255, allocations: 20.54 MB / 0.5371 GB, free: 11.54 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003852/0.4294, allocations: 106.4 kB / 0.5372 GB, free: 11.48 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002877/0.4323, allocations: 0.7822 MB / 0.538 GB, free: 10.8 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009933/0.4422, allocations: 3.417 MB / 0.5413 GB, free: 8.176 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01338/0.4556, allocations: 4.453 MB / 0.5456 GB, free: 5.098 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01141/0.4671, allocations: 8.573 MB / 0.554 GB, free: 14.72 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003048/0.4702, allocations: 1.491 MB / 0.5555 GB, free: 13.22 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.4724/0.9426, allocations: 125.8 MB / 0.6783 GB, free: 59.79 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.07109/1.014, allocations: 55 MB / 0.732 GB, free: 13.31 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001361/1.015, allocations: 124 kB / 0.7321 GB, free: 13.19 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01425/1.029, allocations: 7.952 MB / 0.7399 GB, free: 6.348 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001915/1.031, allocations: 0.9377 MB / 0.7408 GB, free: 5.695 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001548/1.033, allocations: 0.53 MB / 0.7413 GB, free: 5.387 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006103/1.039, allocations: 3.825 MB / 0.7451 GB, free: 2.27 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.041e-06/1.039, allocations: 0 / 0.7451 GB, free: 2.27 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.534e-06/1.039, allocations: 0 / 0.7451 GB, free: 2.27 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.435e-05/1.039, allocations: 4.656 kB / 0.7451 GB, free: 2.266 MB / 494.1 MB 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.006245/1.045, allocations: 3.015 MB / 0.748 GB, free: 15.49 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.255e-05/1.045, allocations: 12.02 kB / 0.748 GB, free: 15.48 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006489/1.046, allocations: 343.1 kB / 0.7484 GB, free: 15.26 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000836/1.047, allocations: 308.5 kB / 0.7486 GB, free: 14.95 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002508/1.049, allocations: 1.516 MB / 0.7501 GB, free: 13.77 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001797/1.05, allocations: 216 kB / 0.7503 GB, free: 13.62 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000309/1.05, allocations: 192.6 kB / 0.7505 GB, free: 13.5 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005042/1.055, allocations: 3.278 MB / 0.7537 GB, free: 11.09 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.348e-05/1.055, allocations: 2.719 kB / 0.7537 GB, free: 11.09 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002196/1.055, allocations: 84.14 kB / 0.7538 GB, free: 11.07 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003086/1.056, allocations: 258.7 kB / 0.7541 GB, free: 10.85 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004972/1.061, allocations: 3.089 MB / 0.7571 GB, free: 8.801 MB / 0.4981 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.0193/1.08, allocations: 13.88 MB / 0.7706 GB, free: 12.61 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003665/1.084, allocations: 2.19 MB / 0.7728 GB, free: 11.23 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001639/1.085, allocations: 1.186 MB / 0.7739 GB, free: 10.46 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00807/1.093, allocations: 5.632 MB / 0.7794 GB, free: 5.398 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.05e-05/1.093, allocations: 53.56 kB / 0.7795 GB, free: 5.352 MB / 0.5137 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0009617/1.094, allocations: 239.8 kB / 0.7797 GB, free: 5.137 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=158): time 3.136e-06/1.094, allocations: 0 / 0.7797 GB, free: 5.137 MB / 0.5137 GB Notification: Performance of matching and sorting (n=259): time 0.4405/1.535, allocations: 55.8 MB / 0.8342 GB, free: 2.473 MB / 0.5606 GB Error: Jacobian StateSetJac0 contains non-linear components. This indicates a singular system or internal generation errors. Notification: Performance of inlineWhenForInitialization (initialization): time 0.3599/1.895, allocations: 46.62 MB / 0.8797 GB, free: 212.1 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004427/1.899, allocations: 1.844 MB / 0.8815 GB, free: 211.4 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0007546/1.9, allocations: 71.86 kB / 0.8816 GB, free: 211.3 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009179/1.901, allocations: 1.092 MB / 0.8826 GB, free: 210.6 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001278/1.902, allocations: 0.8692 MB / 0.8835 GB, free: 209.9 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005534/1.903, allocations: 59.03 kB / 0.8836 GB, free: 209.9 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0002309/1.903, allocations: 422.4 kB / 0.884 GB, free: 209.5 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004169/1.907, allocations: 2.149 MB / 0.8861 GB, free: 208.8 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004047/1.911, allocations: 2.808 MB / 0.8888 GB, free: 207.3 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004885/1.916, allocations: 2.602 MB / 0.8913 GB, free: 206.3 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.482e-05/1.916, allocations: 6.906 kB / 0.8913 GB, free: 206.3 MB / 0.5606 GB Notification: Performance of matching and sorting (n=359) (initialization): time 0.01286/1.929, allocations: 7.451 MB / 0.8986 GB, free: 202 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003405/1.93, allocations: 0.6454 MB / 0.8993 GB, free: 201.1 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.602e-05/1.93, allocations: 19.98 kB / 0.8993 GB, free: 201 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.03975/1.969, allocations: 12.4 MB / 0.9114 GB, free: 188.7 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001532/1.971, allocations: 351.4 kB / 0.9117 GB, free: 188.3 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01428/1.985, allocations: 8.694 MB / 0.9202 GB, free: 179.6 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003481/1.989, allocations: 267.7 kB / 0.9205 GB, free: 179.3 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004202/1.989, allocations: 155.9 kB / 0.9206 GB, free: 179.2 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.215e-05/1.989, allocations: 4.625 kB / 0.9206 GB, free: 179.2 MB / 0.5606 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0115/2.001, allocations: 7.037 MB / 0.9275 GB, free: 172.1 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.443e-05/2.001, allocations: 16 kB / 0.9275 GB, free: 172.1 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02165/2.022, allocations: 7.953 MB / 0.9353 GB, free: 164.1 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001752/2.024, allocations: 403.3 kB / 0.9357 GB, free: 163.7 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01389/2.038, allocations: 8.178 MB / 0.9436 GB, free: 155.5 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003804/2.042, allocations: 279.7 kB / 0.9439 GB, free: 155.2 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004663/2.042, allocations: 143.9 kB / 0.944 GB, free: 155.1 MB / 0.5606 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.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 initialization (171): * Single equations (assignments): 169 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {15 79,18 78} Notification: Performance of prepare postOptimizeDAE: time 0.001581/2.044, allocations: 0.7735 MB / 0.9448 GB, free: 154.3 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000555/2.045, allocations: 245 kB / 0.945 GB, free: 154 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01326/2.058, allocations: 7.892 MB / 0.9527 GB, free: 146.1 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.63e-05/2.058, allocations: 36 kB / 0.9528 GB, free: 146.1 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.657e-06/2.058, allocations: 4 kB / 0.9528 GB, free: 146.1 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01063/2.069, allocations: 6.94 MB / 0.9596 GB, free: 139 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02095/2.09, allocations: 13.85 MB / 0.9731 GB, free: 125.1 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.23e-05/2.09, allocations: 0 / 0.9731 GB, free: 125.1 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007808/2.09, allocations: 195.8 kB / 0.9733 GB, free: 124.9 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.03869/2.129, allocations: 11.93 MB / 0.9849 GB, free: 113 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006897/2.13, allocations: 79.95 kB / 0.985 GB, free: 112.9 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0129/2.143, allocations: 8.391 MB / 0.9932 GB, free: 104.5 MB / 0.5606 GB Error: Jacobian StateSetJac9 contains non-linear components. This indicates a singular system or internal generation errors. Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.1111/2.254, allocations: 46.55 MB / 1.039 GB, free: 57.45 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01766/2.272, allocations: 10.47 MB / 1.049 GB, free: 46.89 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001847/2.273, allocations: 0.8098 MB / 1.05 GB, free: 46.05 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005205/2.274, allocations: 52 kB / 1.05 GB, free: 46 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002432/2.276, allocations: 259.7 kB / 1.05 GB, free: 45.75 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003433/2.277, allocations: 194.1 kB / 1.05 GB, free: 45.56 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002562/2.277, allocations: 115.9 kB / 1.05 GB, free: 45.45 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.001412/2.278, allocations: 1.257 MB / 1.051 GB, free: 44.17 MB / 0.5606 GB Notification: Performance of sort global known variables: time 9.62e-07/2.278, allocations: 0 / 1.051 GB, free: 44.17 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.00698/2.285, allocations: 2.893 MB / 1.054 GB, free: 41.44 MB / 0.5606 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {15 77,19 105} Notification: Performance of Backend phase and start with SimCode phase: time 0.02454/2.31, allocations: 12.99 MB / 1.067 GB, free: 28.45 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.02393/2.334, allocations: 9.112 MB / 1.076 GB, free: 19.3 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.048e-05/2.334, allocations: 0 / 1.076 GB, free: 19.3 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.00813/2.342, allocations: 3.236 MB / 1.079 GB, free: 16.06 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00467/2.347, allocations: 0.9941 MB / 1.08 GB, free: 15.06 MB / 0.5606 GB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:4548:9-4548:59:writable] Error: Internal error function createStateSetsSets failed. [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:754:5-754:146:writable] Error: Internal error function createSimCode failed [Transformation from optimised DAE to simulation code structure failed]