Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Fluid_TestExamplesVariants_HeatingSystem_SteadyState",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState,fileNamePrefix="ModelicaTest_trunk_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 trunk/package.mo): time 0.0009259/0.000929, allocations: 195.2 kB / 16.1 MB, free: 5.707 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.173/1.173, allocations: 226.5 MB / 243.4 MB, free: 8.27 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007527/0.0007529, allocations: 106 kB / 295.5 MB, free: 6.914 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2841/0.2841, allocations: 44.82 MB / 392.3 MB, free: 35.75 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002508/0.0002511, allocations: 11.98 kB / 465.4 MB, free: 12.59 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2769/0.2772, allocations: 62.96 MB / 0.516 GB, free: 37.07 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState): time 0.0713/0.3485, allocations: 86.86 MB / 0.6008 GB, free: 2.418 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.03042/0.379, allocations: 20.57 MB / 0.6209 GB, free: 13.82 MB / 442.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003407/0.3824, allocations: 107.1 kB / 0.621 GB, free: 13.71 MB / 442.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002678/0.3851, allocations: 0.7764 MB / 0.6217 GB, free: 12.93 MB / 442.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01144/0.3966, allocations: 3.643 MB / 0.6253 GB, free: 9.273 MB / 442.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01164/0.4083, allocations: 4.47 MB / 0.6296 GB, free: 4.812 MB / 442.7 MB Notification: Performance of NFFlatten.flatten: time 0.01088/0.4191, allocations: 8.639 MB / 0.6381 GB, free: 12.14 MB / 458.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003367/0.4226, allocations: 1.542 MB / 0.6396 GB, free: 10.57 MB / 458.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.4493/0.8719, allocations: 125.8 MB / 0.7625 GB, free: 1.875 MB / 490.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.08085/0.9528, allocations: 55.15 MB / 0.8163 GB, free: 0.5195 MB / 0.5261 GB Notification: Performance of NFPackage.collectConstants: time 0.0008819/0.9537, allocations: 124 kB / 0.8164 GB, free: 408 kB / 0.5261 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0148/0.9685, allocations: 8.241 MB / 0.8245 GB, free: 9.383 MB / 0.5417 GB Notification: Performance of NFScalarize.scalarize: time 0.001439/0.97, allocations: 0.9479 MB / 0.8254 GB, free: 8.73 MB / 0.5417 GB Notification: Performance of NFVerifyModel.verify: time 0.001788/0.9718, allocations: 1.318 MB / 0.8267 GB, free: 8.055 MB / 0.5417 GB Notification: Performance of NFConvertDAE.convert: time 0.005096/0.9769, allocations: 3.939 MB / 0.8305 GB, free: 4.828 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 4.578e-06/0.9769, allocations: 0 / 0.8305 GB, free: 4.828 MB / 0.5417 GB Notification: Performance of FrontEnd: time 2.625e-06/0.9769, allocations: 0 / 0.8305 GB, free: 4.828 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 4.503e-05/0.977, allocations: 3.094 kB / 0.8305 GB, free: 4.828 MB / 0.5417 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.006577/0.9836, allocations: 2.988 MB / 0.8335 GB, free: 2.07 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.534e-05/0.9836, allocations: 8.031 kB / 0.8335 GB, free: 2.062 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005567/0.9842, allocations: 340.1 kB / 0.8338 GB, free: 1.848 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007421/0.9849, allocations: 309.4 kB / 0.8341 GB, free: 1.543 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002447/0.9874, allocations: 1.574 MB / 0.8356 GB, free: 316 kB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001652/0.9876, allocations: 219.8 kB / 0.8358 GB, free: 156 kB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002711/0.9878, allocations: 186.3 kB / 0.836 GB, free: 32 kB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004761/0.9926, allocations: 3.283 MB / 0.8392 GB, free: 13.62 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.517e-05/0.9927, allocations: 7.359 kB / 0.8392 GB, free: 13.62 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002054/0.9929, allocations: 80.28 kB / 0.8393 GB, free: 13.6 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002849/0.9932, allocations: 256.1 kB / 0.8395 GB, free: 13.38 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004537/0.9977, allocations: 3.094 MB / 0.8426 GB, free: 11.32 MB / 0.5573 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.01741/1.015, allocations: 13.86 MB / 0.8561 GB, free: 15.12 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003672/1.019, allocations: 2.198 MB / 0.8582 GB, free: 13.74 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001591/1.02, allocations: 1.186 MB / 0.8594 GB, free: 12.98 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.007711/1.028, allocations: 5.637 MB / 0.8649 GB, free: 7.914 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.482e-05/1.028, allocations: 56.66 kB / 0.865 GB, free: 7.863 MB / 0.573 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0008173/1.029, allocations: 236.4 kB / 0.8652 GB, free: 7.652 MB / 0.573 GB Notification: Performance of pre-optimization done (n=158): time 4.608e-06/1.029, allocations: 0 / 0.8652 GB, free: 7.652 MB / 0.573 GB Notification: Performance of matching and sorting (n=259): time 0.7351/1.764, allocations: 54.56 MB / 0.9185 GB, free: 252.1 MB / 0.6042 GB Error: Jacobian StateSetJac0 contains non-linear components. This indicates a singular system or internal generation errors. Notification: Performance of inlineWhenForInitialization (initialization): time 0.1249/1.889, allocations: 45.72 MB / 0.9631 GB, free: 232.9 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002145/1.891, allocations: 1.846 MB / 0.9649 GB, free: 231 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 0.0005513/1.892, allocations: 69.77 kB / 0.965 GB, free: 230.9 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005706/1.892, allocations: 1.094 MB / 0.9661 GB, free: 229.8 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006644/1.893, allocations: 0.8688 MB / 0.9669 GB, free: 229 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002378/1.893, allocations: 56 kB / 0.967 GB, free: 228.9 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 0.000135/1.893, allocations: 427.7 kB / 0.9674 GB, free: 228.5 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00415/1.898, allocations: 2.149 MB / 0.9695 GB, free: 226.3 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004254/1.902, allocations: 2.802 MB / 0.9722 GB, free: 223.3 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008903/1.911, allocations: 5.386 MB / 0.9775 GB, free: 217.6 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.42e-05/1.911, allocations: 4 kB / 0.9775 GB, free: 217.6 MB / 0.6042 GB Notification: Performance of matching and sorting (n=359) (initialization): time 0.01214/1.923, allocations: 7.438 MB / 0.9847 GB, free: 210.1 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002877/1.923, allocations: 0.6383 MB / 0.9854 GB, free: 209.2 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.062e-05/1.923, allocations: 24 kB / 0.9854 GB, free: 209.2 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.03945/1.963, allocations: 11.98 MB / 0.9971 GB, free: 197.2 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001421/1.964, allocations: 357.5 kB / 0.9974 GB, free: 196.9 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0145/1.979, allocations: 8.663 MB / 1.006 GB, free: 188.1 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003594/1.982, allocations: 279.5 kB / 1.006 GB, free: 187.9 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003777/1.983, allocations: 147.9 kB / 1.006 GB, free: 187.7 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.01e-05/1.983, allocations: 4 kB / 1.006 GB, free: 187.7 MB / 0.6042 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01159/1.994, allocations: 7.013 MB / 1.013 GB, free: 180.7 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.51e-05/1.994, allocations: 23.94 kB / 1.013 GB, free: 180.6 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02273/2.017, allocations: 7.886 MB / 1.021 GB, free: 172.7 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001713/2.019, allocations: 391.4 kB / 1.021 GB, free: 172.3 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01353/2.033, allocations: 8.164 MB / 1.029 GB, free: 164.1 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003405/2.036, allocations: 275.8 kB / 1.029 GB, free: 163.9 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003683/2.036, allocations: 151.9 kB / 1.03 GB, free: 163.7 MB / 0.6042 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.001403/2.038, allocations: 0.7697 MB / 1.03 GB, free: 162.9 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004775/2.038, allocations: 246.2 kB / 1.031 GB, free: 162.7 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01325/2.051, allocations: 7.861 MB / 1.038 GB, free: 154.8 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.036e-05/2.052, allocations: 40 kB / 1.038 GB, free: 154.8 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.939e-06/2.052, allocations: 0 / 1.038 GB, free: 154.8 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0111/2.063, allocations: 6.924 MB / 1.045 GB, free: 147.7 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0229/2.086, allocations: 13.83 MB / 1.059 GB, free: 133.9 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.314e-05/2.086, allocations: 0 / 1.059 GB, free: 133.9 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008272/2.087, allocations: 195.7 kB / 1.059 GB, free: 133.7 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.03936/2.126, allocations: 11.56 MB / 1.07 GB, free: 122.2 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005827/2.127, allocations: 83.95 kB / 1.07 GB, free: 122.1 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01383/2.14, allocations: 8.366 MB / 1.078 GB, free: 113.6 MB / 0.6042 GB Warning: There are tearing variables with annotation attribute '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.1135/2.254, allocations: 45.7 MB / 1.123 GB, free: 67.54 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01676/2.271, allocations: 10.46 MB / 1.133 GB, free: 56.99 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001664/2.272, allocations: 0.8176 MB / 1.134 GB, free: 56.15 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000405/2.273, allocations: 48 kB / 1.134 GB, free: 56.11 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00245/2.275, allocations: 252.7 kB / 1.134 GB, free: 55.86 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005918/2.276, allocations: 206 kB / 1.134 GB, free: 55.66 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002603/2.276, allocations: 111.9 kB / 1.135 GB, free: 55.55 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.001354/2.277, allocations: 1.261 MB / 1.136 GB, free: 54.27 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.7e-07/2.277, allocations: 0 / 1.136 GB, free: 54.27 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.006479/2.284, allocations: 2.903 MB / 1.139 GB, free: 51.57 MB / 0.6042 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.023/2.307, allocations: 13 MB / 1.151 GB, free: 38.79 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.02109/2.328, allocations: 9.099 MB / 1.16 GB, free: 29.68 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 8.245e-06/2.328, allocations: 448 / 1.16 GB, free: 29.68 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.007997/2.336, allocations: 3.237 MB / 1.163 GB, free: 26.43 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004614/2.341, allocations: 0.9905 MB / 1.164 GB, free: 25.45 MB / 0.6042 GB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:4558:9-4558:59:writable] Error: Internal error function createStateSetsSets failed. [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:762:5-762:146:writable] Error: Internal error function createSimCode failed [Transformation from optimised DAE to simulation code structure failed]