Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_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.1+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+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: translateModel(ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState") translateModel(ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001156/0.001156, allocations: 99.55 kB / 15.05 MB, free: 1.105 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.00127/0.00127, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.547/1.547, allocations: 205.4 MB / 222.1 MB, free: 5.527 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo): time 0.351/0.351, allocations: 38.02 MB / 308.4 MB, free: 10.47 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: ModelicaTest requested package Modelica of version 3.2.1. Modelica 3.2.3 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005876/0.0005876, allocations: 16 kB / 376.4 MB, free: 15.22 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1335/0.1341, allocations: 57.53 MB / 433.9 MB, free: 5.59 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState): time 0.3057/0.4398, allocations: 67.62 MB / 0.4898 GB, free: 13.77 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.03002/0.4699, allocations: 20.64 MB / 0.5099 GB, free: 15.79 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00388/0.4738, allocations: 104.2 kB / 0.51 GB, free: 15.73 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004411/0.4783, allocations: 0.9089 MB / 0.5109 GB, free: 15.21 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01387/0.4922, allocations: 2.696 MB / 0.5136 GB, free: 13.52 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01933/0.5115, allocations: 5.416 MB / 0.5189 GB, free: 11.11 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0106/0.5221, allocations: 3.78 MB / 0.5225 GB, free: 9.262 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003898/0.5261, allocations: 1.499 MB / 0.524 GB, free: 8.785 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.5055/1.032, allocations: 123.8 MB / 0.6449 GB, free: 103.8 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.07664/1.108, allocations: 53.3 MB / 0.6969 GB, free: 69.59 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001056/1.109, allocations: 122 kB / 0.6971 GB, free: 69.48 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01443/1.124, allocations: 8.001 MB / 0.7049 GB, free: 62.47 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001962/1.126, allocations: 0.8562 MB / 0.7057 GB, free: 61.9 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001327/1.127, allocations: 0.5311 MB / 0.7062 GB, free: 61.59 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006483/1.134, allocations: 3.803 MB / 0.7099 GB, free: 58.31 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.372e-06/1.134, allocations: 0 / 0.7099 GB, free: 58.31 MB / 494.1 MB Notification: Performance of FrontEnd: time 4.248e-06/1.134, allocations: 0 / 0.7099 GB, free: 58.31 MB / 494.1 MB Notification: Performance of Transformations before backend: time 0.0001039/1.134, allocations: 0 / 0.7099 GB, free: 58.31 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.008257/1.142, allocations: 3.001 MB / 0.7129 GB, free: 55.5 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.101e-05/1.142, allocations: 12.02 kB / 0.7129 GB, free: 55.48 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009758/1.143, allocations: 312.5 kB / 0.7132 GB, free: 55.18 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002707/1.146, allocations: 1.511 MB / 0.7146 GB, free: 54.01 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001691/1.146, allocations: 214.1 kB / 0.7149 GB, free: 53.85 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002687/1.146, allocations: 186.2 kB / 0.715 GB, free: 53.73 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004462/1.151, allocations: 3.256 MB / 0.7182 GB, free: 51.34 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.563e-05/1.151, allocations: 7.281 kB / 0.7182 GB, free: 51.34 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002204/1.151, allocations: 82.72 kB / 0.7183 GB, free: 51.32 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002663/1.151, allocations: 257.9 kB / 0.7185 GB, free: 51.1 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004417/1.156, allocations: 3.081 MB / 0.7216 GB, free: 49.06 MB / 494.1 MB 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.01746/1.173, allocations: 13.98 MB / 0.7352 GB, free: 36.81 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003428/1.177, allocations: 2.204 MB / 0.7374 GB, free: 35.42 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007236/1.184, allocations: 5.706 MB / 0.7429 GB, free: 30.33 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.434e-05/1.184, allocations: 54.12 kB / 0.743 GB, free: 30.28 MB / 494.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0008832/1.185, allocations: 233.5 kB / 0.7432 GB, free: 30.07 MB / 494.1 MB Notification: Performance of pre-optimization done (n=160): time 4.128e-06/1.185, allocations: 0 / 0.7432 GB, free: 30.07 MB / 494.1 MB Notification: Performance of matching and sorting (n=262): time 0.4886/1.674, allocations: 57.03 MB / 0.7989 GB, free: 10.23 MB / 0.5137 GB Error: Jacobian StateSetJac0 contains non-linear components. This indicates a singular system or internal generation errors. Notification: Performance of inlineWhenForInitialization (initialization): time 0.4411/2.115, allocations: 60.24 MB / 0.8577 GB, free: 202 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002252/2.117, allocations: 1.837 MB / 0.8595 GB, free: 201.3 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0005916/2.117, allocations: 71.23 kB / 0.8596 GB, free: 201.3 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005763/2.118, allocations: 1.088 MB / 0.8606 GB, free: 200.6 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006721/2.119, allocations: 0.8711 MB / 0.8615 GB, free: 200 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002226/2.119, allocations: 58.42 kB / 0.8616 GB, free: 199.9 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001132/2.119, allocations: 416.8 kB / 0.8619 GB, free: 199.6 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003471/2.123, allocations: 2.182 MB / 0.8641 GB, free: 198.8 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003875/2.126, allocations: 2.822 MB / 0.8668 GB, free: 197.3 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004776/2.131, allocations: 2.642 MB / 0.8694 GB, free: 196.4 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.435e-05/2.131, allocations: 6.594 kB / 0.8694 GB, free: 196.4 MB / 0.545 GB Notification: Performance of matching and sorting (n=361) (initialization): time 0.01369/2.145, allocations: 7.544 MB / 0.8768 GB, free: 193.7 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.001462/2.146, allocations: 7.512 MB / 0.8841 GB, free: 185.8 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.27e-05/2.147, allocations: 22.2 kB / 0.8841 GB, free: 185.8 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.05173/2.198, allocations: 12.4 MB / 0.8963 GB, free: 184.4 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001831/2.2, allocations: 345.8 kB / 0.8966 GB, free: 184.4 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01754/2.218, allocations: 8.815 MB / 0.9052 GB, free: 180.8 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003956/2.222, allocations: 267.1 kB / 0.9054 GB, free: 180.8 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005524/2.222, allocations: 157.5 kB / 0.9056 GB, free: 180.8 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.736e-05/2.222, allocations: 3.25 kB / 0.9056 GB, free: 180.8 MB / 0.545 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01285/2.235, allocations: 7.114 MB / 0.9125 GB, free: 178.2 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.329e-05/2.235, allocations: 19.03 kB / 0.9126 GB, free: 178.2 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02461/2.26, allocations: 8.021 MB / 0.9204 GB, free: 174.4 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00186/2.262, allocations: 393.3 kB / 0.9208 GB, free: 174.1 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0148/2.277, allocations: 8.303 MB / 0.9289 GB, free: 166.5 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00385/2.28, allocations: 268.5 kB / 0.9291 GB, free: 166.2 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006433/2.281, allocations: 147.9 kB / 0.9293 GB, free: 166.1 MB / 0.545 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.002155/2.283, allocations: 0.7689 MB / 0.93 GB, free: 165.3 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000736/2.284, allocations: 256.9 kB / 0.9303 GB, free: 165 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01416/2.298, allocations: 7.966 MB / 0.9381 GB, free: 157 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.048e-05/2.298, allocations: 32 kB / 0.9381 GB, free: 157 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.919e-06/2.298, allocations: 4 kB / 0.9381 GB, free: 157 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01193/2.31, allocations: 7.002 MB / 0.9449 GB, free: 149.9 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02615/2.336, allocations: 13.95 MB / 0.9585 GB, free: 135.9 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.365e-05/2.336, allocations: 6.312 kB / 0.9586 GB, free: 135.9 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008784/2.337, allocations: 187.8 kB / 0.9587 GB, free: 135.7 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.04422/2.382, allocations: 12.01 MB / 0.9705 GB, free: 123.7 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007684/2.382, allocations: 86.25 kB / 0.9705 GB, free: 123.6 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01594/2.398, allocations: 8.514 MB / 0.9789 GB, free: 115 MB / 0.545 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.2045/2.603, allocations: 57.16 MB / 1.035 GB, free: 57.55 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0212/2.624, allocations: 10.74 MB / 1.045 GB, free: 46.69 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002969/2.627, allocations: 0.8449 MB / 1.046 GB, free: 45.82 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009915/2.628, allocations: 56 kB / 1.046 GB, free: 45.77 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003495/2.632, allocations: 251.6 kB / 1.046 GB, free: 45.52 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006074/2.632, allocations: 206 kB / 1.046 GB, free: 45.32 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004391/2.633, allocations: 111.9 kB / 1.047 GB, free: 45.21 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.002256/2.635, allocations: 1.229 MB / 1.048 GB, free: 43.96 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.4e-07/2.635, allocations: 0 / 1.048 GB, free: 43.96 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.01001/2.645, allocations: 2.901 MB / 1.051 GB, free: 41.27 MB / 0.545 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.007773/2.653, allocations: 2.064 MB / 1.053 GB, free: 39.46 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.02398/2.677, allocations: 9.261 MB / 1.062 GB, free: 30.18 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.143e-05/2.677, allocations: 0 / 1.062 GB, free: 30.18 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.009083/2.686, allocations: 3.266 MB / 1.065 GB, free: 26.91 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00519/2.691, allocations: 0.9158 MB / 1.066 GB, free: 25.98 MB / 0.545 GB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:4497:9-4497:59:writable] Error: Internal error function createStateSetsSets failed. [/var/lib/jenkins/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]