Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 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 ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestExamplesVariants_HeatingSystem_SteadyState",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestExamplesVariants_HeatingSystem_SteadyState",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002732/0.002731, allocations: 186 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.149/2.149, allocations: 205.4 MB / 222.5 MB, free: 13.76 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001253/0.001252, allocations: 98.91 kB / 270.9 MB, free: 13.28 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3342/0.3342, allocations: 43.55 MB / 362.7 MB, free: 11.3 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007809/0.0007812, allocations: 16 kB / 431.5 MB, free: 20.17 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1355/0.1364, allocations: 58.85 MB / 490.3 MB, free: 9.246 MB / 330.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState): time 0.5626/0.6991, allocations: 67.6 MB / 0.5448 GB, free: 10.91 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.0459/0.745, allocations: 20.65 MB / 0.565 GB, free: 13.41 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004295/0.7494, allocations: 106.2 kB / 0.5651 GB, free: 13.36 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005112/0.7545, allocations: 0.9098 MB / 0.566 GB, free: 12.56 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0135/0.7681, allocations: 2.696 MB / 0.5686 GB, free: 10.37 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.02512/0.7932, allocations: 5.427 MB / 0.5739 GB, free: 6.559 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.00993/0.8032, allocations: 3.769 MB / 0.5776 GB, free: 4.121 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004222/0.8075, allocations: 1.51 MB / 0.5791 GB, free: 2.801 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.3916/1.199, allocations: 123.8 MB / 0.6999 GB, free: 6.969 MB / 0.4949 GB Notification: Performance of NFSimplifyModel.simplify: time 0.5355/1.735, allocations: 53.28 MB / 0.752 GB, free: 100.3 MB / 0.4949 GB Notification: Performance of NFPackage.collectConstants: time 0.001337/1.736, allocations: 128 kB / 0.7521 GB, free: 100.2 MB / 0.4949 GB Notification: Performance of NFFlatten.collectFunctions: time 0.02374/1.76, allocations: 7.989 MB / 0.7599 GB, free: 93.19 MB / 0.4949 GB Notification: Performance of NFScalarize.scalarize: time 0.002227/1.762, allocations: 0.857 MB / 0.7607 GB, free: 92.62 MB / 0.4949 GB Notification: Performance of NFVerifyModel.verify: time 0.001734/1.764, allocations: 0.5272 MB / 0.7613 GB, free: 92.31 MB / 0.4949 GB Notification: Performance of NFConvertDAE.convert: time 0.009319/1.773, allocations: 3.804 MB / 0.765 GB, free: 89.03 MB / 0.4949 GB Notification: Performance of FrontEnd - DAE generated: time 4.989e-06/1.773, allocations: 3.562 kB / 0.765 GB, free: 89.03 MB / 0.4949 GB Notification: Performance of FrontEnd: time 1.824e-06/1.773, allocations: 0 / 0.765 GB, free: 89.03 MB / 0.4949 GB Notification: Performance of Transformations before backend: time 0.0001457/1.774, allocations: 0 / 0.765 GB, free: 89.03 MB / 0.4949 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.01217/1.786, allocations: 3.001 MB / 0.7679 GB, free: 86.22 MB / 0.4949 GB Notification: Performance of prepare preOptimizeDAE: time 4.644e-05/1.786, allocations: 8.031 kB / 0.7679 GB, free: 86.21 MB / 0.4949 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001464/1.787, allocations: 340.3 kB / 0.7682 GB, free: 85.99 MB / 0.4949 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002116/1.789, allocations: 310.6 kB / 0.7685 GB, free: 85.69 MB / 0.4949 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004837/1.794, allocations: 1.517 MB / 0.77 GB, free: 84.51 MB / 0.4949 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003284/1.795, allocations: 213.6 kB / 0.7702 GB, free: 84.36 MB / 0.4949 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009627/1.796, allocations: 188.8 kB / 0.7704 GB, free: 84.23 MB / 0.4949 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009911/1.806, allocations: 3.259 MB / 0.7736 GB, free: 81.85 MB / 0.4949 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.606e-05/1.806, allocations: 13.31 kB / 0.7736 GB, free: 81.84 MB / 0.4949 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004551/1.806, allocations: 81.86 kB / 0.7737 GB, free: 81.82 MB / 0.4949 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004839/1.807, allocations: 251.7 kB / 0.7739 GB, free: 81.61 MB / 0.4949 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009861/1.817, allocations: 3.094 MB / 0.7769 GB, free: 79.55 MB / 0.4949 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.03271/1.849, allocations: 14.01 MB / 0.7906 GB, free: 67.28 MB / 0.4949 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007283/1.857, allocations: 2.193 MB / 0.7927 GB, free: 65.89 MB / 0.4949 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01427/1.871, allocations: 5.707 MB / 0.7983 GB, free: 60.79 MB / 0.4949 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.309e-05/1.871, allocations: 53.94 kB / 0.7984 GB, free: 60.75 MB / 0.4949 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001519/1.873, allocations: 234.7 kB / 0.7986 GB, free: 60.54 MB / 0.4949 GB Notification: Performance of pre-optimization done (n=160): time 1.087e-05/1.873, allocations: 0 / 0.7986 GB, free: 60.54 MB / 0.4949 GB Notification: Performance of matching and sorting (n=262): time 1.116/2.988, allocations: 57.04 MB / 0.8543 GB, free: 8.676 MB / 0.4949 GB Error: Jacobian StateSetJac0 contains non-linear components. This indicates a singular system or internal generation errors. Notification: Performance of inlineWhenForInitialization (initialization): time 0.778/3.766, allocations: 60.23 MB / 0.9131 GB, free: 213 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004648/3.771, allocations: 1.839 MB / 0.9149 GB, free: 212.8 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0008435/3.772, allocations: 70.92 kB / 0.915 GB, free: 212.7 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.001122/3.773, allocations: 1.007 MB / 0.916 GB, free: 212.5 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.001684/3.775, allocations: 0.8853 MB / 0.9168 GB, free: 212 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005066/3.775, allocations: 55.84 kB / 0.9169 GB, free: 212 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.000257/3.776, allocations: 426 kB / 0.9173 GB, free: 211.7 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008303/3.784, allocations: 2.187 MB / 0.9194 GB, free: 211.7 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009093/3.793, allocations: 2.816 MB / 0.9222 GB, free: 210.6 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01107/3.804, allocations: 2.635 MB / 0.9247 GB, free: 209.6 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.054e-05/3.804, allocations: 6.781 kB / 0.9248 GB, free: 209.6 MB / 0.5417 GB Notification: Performance of matching and sorting (n=361) (initialization): time 0.02961/3.834, allocations: 7.426 MB / 0.932 GB, free: 207 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.00163/3.836, allocations: 7.232 MB / 0.9391 GB, free: 199.4 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001173/3.836, allocations: 20.27 kB / 0.9391 GB, free: 199.4 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.09007/3.926, allocations: 12.39 MB / 0.9512 GB, free: 198.1 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003053/3.929, allocations: 348.4 kB / 0.9515 GB, free: 198.1 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03277/3.962, allocations: 8.801 MB / 0.9601 GB, free: 191.9 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00685/3.969, allocations: 266.8 kB / 0.9604 GB, free: 191.6 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001172/3.97, allocations: 155.9 kB / 0.9605 GB, free: 191.5 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.741e-05/3.97, allocations: 4.625 kB / 0.9605 GB, free: 191.5 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02616/3.996, allocations: 7.123 MB / 0.9675 GB, free: 184.4 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.798e-05/3.996, allocations: 16 kB / 0.9675 GB, free: 184.3 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.04343/4.04, allocations: 7.231 MB / 0.9746 GB, free: 177.2 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00355/4.043, allocations: 395.3 kB / 0.9749 GB, free: 176.9 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02894/4.072, allocations: 8.266 MB / 0.983 GB, free: 168.6 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005645/4.078, allocations: 276.1 kB / 0.9833 GB, free: 168.3 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009196/4.079, allocations: 143.9 kB / 0.9834 GB, free: 168.2 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 83 * 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 {16 79,19 78} Notification: Performance of prepare postOptimizeDAE: time 0.002813/4.082, allocations: 0.7814 MB / 0.9842 GB, free: 167.4 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009717/4.083, allocations: 252.9 kB / 0.9844 GB, free: 167.1 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02938/4.112, allocations: 7.951 MB / 0.9922 GB, free: 159.1 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.214e-05/4.112, allocations: 35.98 kB / 0.9922 GB, free: 159.1 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.261e-06/4.112, allocations: 0.9844 kB / 0.9922 GB, free: 159.1 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0249/4.137, allocations: 7 MB / 0.999 GB, free: 152 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0479/4.185, allocations: 13.97 MB / 1.013 GB, free: 138 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.722e-05/4.185, allocations: 0 / 1.013 GB, free: 138 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001971/4.187, allocations: 191.8 kB / 1.013 GB, free: 137.8 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0867/4.274, allocations: 12.01 MB / 1.025 GB, free: 125.8 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009325/4.275, allocations: 83.95 kB / 1.025 GB, free: 125.7 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02923/4.304, allocations: 8.507 MB / 1.033 GB, free: 117.2 MB / 0.5417 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.402/4.706, allocations: 57.18 MB / 1.089 GB, free: 59.68 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03768/4.744, allocations: 10.74 MB / 1.099 GB, free: 48.82 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003186/4.747, allocations: 0.8371 MB / 1.1 GB, free: 47.96 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001074/4.748, allocations: 48 kB / 1.1 GB, free: 47.91 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005748/4.754, allocations: 259.5 kB / 1.1 GB, free: 47.66 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001079/4.755, allocations: 206 kB / 1.101 GB, free: 47.45 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005357/4.756, allocations: 115.9 kB / 1.101 GB, free: 47.34 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.002585/4.758, allocations: 1.225 MB / 1.102 GB, free: 46.09 MB / 0.5417 GB Notification: Performance of sort global known variables: time 3.91e-07/4.758, allocations: 2.188 kB / 1.102 GB, free: 46.09 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.01324/4.772, allocations: 2.894 MB / 1.105 GB, free: 43.41 MB / 0.5417 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 (94): * Single equations (assignments): 88 * 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 78,19 106} Notification: Performance of Backend phase and start with SimCode phase: time 0.04967/4.821, allocations: 13.52 MB / 1.118 GB, free: 30.05 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.04596/4.867, allocations: 9.249 MB / 1.127 GB, free: 20.78 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.01e-05/4.868, allocations: 0 / 1.127 GB, free: 20.78 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.02488/4.892, allocations: 3.258 MB / 1.13 GB, free: 17.52 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01174/4.904, allocations: 0.9079 MB / 1.131 GB, free: 16.6 MB / 0.5417 GB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:4497:9-4497:59:writable] Error: Internal error function createStateSetsSets failed. [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:748:5-748:146:writable] Error: Internal error function createSimCode failed [Transformation from optimised DAE to simulation code structure failed]