Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0009975/0.0009975, allocations: 79.7 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0009988/0.0009988, allocations: 170 kB / 23.95 MB, free: 0.6133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9203/0.9203, allocations: 177.1 MB / 204.3 MB, free: 5.738 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2536/0.2536, allocations: 34.25 MB / 294.9 MB, free: 0.707 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: setCommandLineOptions("--fmiFlags=s:cvode") Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Fluid_TestExamplesVariants_HeatingSystem_SteadyState",fmuType="me_cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Fluid_TestExamplesVariants_HeatingSystem_SteadyState",fmuType="me_cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.974e-06/1.974e-06, allocations: 0 / 443.8 MB, free: 100 kB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.888e-05/2.086e-05, allocations: 6.219 kB / 443.8 MB, free: 92 kB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState): time 0.2052/0.2053, allocations: 81.38 MB / 0.5128 GB, free: 6.977 MB / 426.7 MB Notification: Performance of NFInst.instExpressions: time 0.02056/0.2258, allocations: 19.6 MB / 0.532 GB, free: 9.543 MB / 442.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00161/0.2274, allocations: 124.8 kB / 0.5321 GB, free: 9.473 MB / 442.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001831/0.2293, allocations: 0.9382 MB / 0.533 GB, free: 8.672 MB / 442.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005718/0.235, allocations: 3.989 MB / 0.5369 GB, free: 5.566 MB / 442.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.009751/0.2447, allocations: 6.717 MB / 0.5435 GB, free: 14.86 MB / 458.7 MB Notification: Performance of NFFlatten.flatten: time 0.005271/0.25, allocations: 6.798 MB / 0.5501 GB, free: 8.035 MB / 458.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001354/0.2514, allocations: 1.568 MB / 0.5516 GB, free: 6.449 MB / 458.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0936/0.345, allocations: 75.29 MB / 0.6252 GB, free: 10.43 MB / 0.5261 GB Notification: Performance of NFSimplifyModel.simplify: time 0.2662/0.6112, allocations: 31.73 MB / 0.6561 GB, free: 78.99 MB / 0.5261 GB Notification: Performance of NFPackage.collectConstants: time 0.0008843/0.6121, allocations: 246.2 kB / 0.6564 GB, free: 78.99 MB / 0.5261 GB Notification: Performance of NFFlatten.collectFunctions: time 0.009593/0.6217, allocations: 5.442 MB / 0.6617 GB, free: 78.04 MB / 0.5261 GB Notification: Performance of NFScalarize.scalarize: time 0.001726/0.6234, allocations: 1.156 MB / 0.6628 GB, free: 78.04 MB / 0.5261 GB Notification: Performance of NFVerifyModel.verify: time 0.002176/0.6256, allocations: 1.062 MB / 0.6639 GB, free: 78.04 MB / 0.5261 GB Notification: Performance of NFConvertDAE.convert: time 0.01163/0.6372, allocations: 5.732 MB / 0.6695 GB, free: 77.98 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 6.964e-06/0.6372, allocations: 3.141 kB / 0.6695 GB, free: 77.98 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.214e-06/0.6372, allocations: 1.094 kB / 0.6695 GB, free: 77.98 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0001451/0.6374, allocations: 0.6562 kB / 0.6695 GB, free: 77.98 MB / 0.5261 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.008953/0.6463, allocations: 3.484 MB / 0.6729 GB, free: 76.46 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.62e-05/0.6464, allocations: 9.719 kB / 0.6729 GB, free: 76.46 MB / 0.5261 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005711/0.6469, allocations: 346.4 kB / 0.6732 GB, free: 76.4 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009395/0.6479, allocations: 325.6 kB / 0.6735 GB, free: 76.25 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002491/0.6504, allocations: 1.582 MB / 0.6751 GB, free: 75.8 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001728/0.6506, allocations: 268.5 kB / 0.6753 GB, free: 75.67 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002664/0.6508, allocations: 190.4 kB / 0.6755 GB, free: 75.67 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00411/0.6549, allocations: 3.667 MB / 0.6791 GB, free: 74.86 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.659e-05/0.655, allocations: 3.281 kB / 0.6791 GB, free: 74.86 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001873/0.6552, allocations: 88.36 kB / 0.6792 GB, free: 74.85 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002126/0.6554, allocations: 254.4 kB / 0.6794 GB, free: 74.85 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00355/0.6589, allocations: 3.086 MB / 0.6824 GB, free: 74.83 MB / 0.5261 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.01149/0.6704, allocations: 10.16 MB / 0.6923 GB, free: 71.51 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002483/0.6729, allocations: 2.072 MB / 0.6944 GB, free: 70.91 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001194/0.6741, allocations: 1.107 MB / 0.6954 GB, free: 70.37 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004951/0.679, allocations: 3.281 MB / 0.6987 GB, free: 68.06 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.602e-05/0.6791, allocations: 51.19 kB / 0.6987 GB, free: 68.01 MB / 0.5261 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0006319/0.6797, allocations: 161.3 kB / 0.6989 GB, free: 67.87 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=157): time 4.839e-06/0.6797, allocations: 0 / 0.6989 GB, free: 67.87 MB / 0.5261 GB Notification: Performance of matching and sorting (n=258): time 0.2468/0.9265, allocations: 55.17 MB / 0.7527 GB, free: 15.05 MB / 0.5261 GB Error: Jacobian StateSetJac0 contains non-linear components. This indicates a singular system or internal generation errors. Notification: Performance of inlineWhenForInitialization (initialization): time 0.08861/1.015, allocations: 50.83 MB / 0.8024 GB, free: 12.07 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002141/1.017, allocations: 1.901 MB / 0.8042 GB, free: 10.12 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.0005657/1.018, allocations: 65.7 kB / 0.8043 GB, free: 10.05 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.000818/1.019, allocations: 1.113 MB / 0.8054 GB, free: 8.938 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007647/1.019, allocations: 0.8967 MB / 0.8063 GB, free: 8.055 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007821/1.02, allocations: 0.5644 MB / 0.8068 GB, free: 7.484 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 6.131e-05/1.02, allocations: 309.8 kB / 0.8071 GB, free: 7.18 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002784/1.023, allocations: 2.184 MB / 0.8092 GB, free: 4.988 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003829/1.027, allocations: 2.82 MB / 0.812 GB, free: 1.91 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007387/1.034, allocations: 5.425 MB / 0.8173 GB, free: 12.27 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.714e-05/1.034, allocations: 4 kB / 0.8173 GB, free: 12.26 MB / 0.5886 GB Notification: Performance of matching and sorting (n=358) (initialization): time 0.01241/1.047, allocations: 7.402 MB / 0.8245 GB, free: 4.922 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 3.607e-05/1.047, allocations: 16.77 kB / 0.8245 GB, free: 4.906 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.513e-05/1.047, allocations: 16.88 kB / 0.8245 GB, free: 4.891 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.03126/1.078, allocations: 11.93 MB / 0.8362 GB, free: 8.977 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001406/1.079, allocations: 353.5 kB / 0.8365 GB, free: 8.656 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01436/1.094, allocations: 8.659 MB / 0.845 GB, free: 15.95 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002761/1.097, allocations: 195.8 kB / 0.8452 GB, free: 15.76 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000348/1.097, allocations: 157.2 kB / 0.8453 GB, free: 15.61 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.004117/1.101, allocations: 2.689 MB / 0.848 GB, free: 12.91 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.003008/1.104, allocations: 2.754 MB / 0.8506 GB, free: 9.902 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.007126/1.111, allocations: 5.296 MB / 0.8558 GB, free: 4.387 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.646e-05/1.111, allocations: 4 kB / 0.8558 GB, free: 4.383 MB / 0.6198 GB Notification: Performance of matching and sorting (n=358) (initialization_lambda0): time 0.1718/1.283, allocations: 7.149 MB / 0.8628 GB, free: 248.1 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 2.426e-05/1.283, allocations: 14.28 kB / 0.8628 GB, free: 248.1 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.133e-05/1.283, allocations: 20.22 kB / 0.8628 GB, free: 248.1 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01627/1.299, allocations: 7.781 MB / 0.8704 GB, free: 247.4 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0015/1.301, allocations: 395 kB / 0.8708 GB, free: 247.4 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01002/1.311, allocations: 8.184 MB / 0.8788 GB, free: 244.1 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003721/1.315, allocations: 195.1 kB / 0.879 GB, free: 244 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006344/1.315, allocations: 151 kB / 0.8791 GB, free: 244 MB / 0.6198 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 (170): * Single equations (assignments): 168 * 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.0009453/1.316, allocations: 333.7 kB / 0.8794 GB, free: 243.8 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008493/1.317, allocations: 262.1 kB / 0.8797 GB, free: 243.7 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01491/1.332, allocations: 7.866 MB / 0.8874 GB, free: 241.1 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.933e-05/1.332, allocations: 32.75 kB / 0.8874 GB, free: 241.1 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.139e-06/1.332, allocations: 0 / 0.8874 GB, free: 241.1 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01108/1.343, allocations: 6.903 MB / 0.8941 GB, free: 238.5 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01954/1.363, allocations: 13 MB / 0.9068 GB, free: 233.4 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.04e-05/1.363, allocations: 2.031 kB / 0.9068 GB, free: 233.4 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005373/1.363, allocations: 188.2 kB / 0.907 GB, free: 233.4 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02107/1.384, allocations: 11.27 MB / 0.918 GB, free: 232.1 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004815/1.385, allocations: 85.34 kB / 0.9181 GB, free: 232.1 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009294/1.394, allocations: 8.364 MB / 0.9263 GB, free: 225.4 MB / 0.6198 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.06684/1.461, allocations: 44.46 MB / 0.9697 GB, free: 180.9 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01338/1.474, allocations: 10.66 MB / 0.9801 GB, free: 170.1 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00157/1.476, allocations: 0.7566 MB / 0.9808 GB, free: 169.4 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000414/1.476, allocations: 48 kB / 0.9809 GB, free: 169.3 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001654/1.478, allocations: 175.9 kB / 0.9811 GB, free: 169.1 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004118/1.478, allocations: 206 kB / 0.9813 GB, free: 168.9 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002813/1.478, allocations: 107.9 kB / 0.9814 GB, free: 168.8 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.002279/1.481, allocations: 1.277 MB / 0.9826 GB, free: 167.5 MB / 0.6198 GB Notification: Performance of sort global known variables: time 5.21e-07/1.481, allocations: 7.391 kB / 0.9826 GB, free: 167.5 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.01257/1.493, allocations: 2.927 MB / 0.9855 GB, free: 164.8 MB / 0.6198 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 (92): * Single equations (assignments): 86 * 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.02353/1.517, allocations: 13.38 MB / 0.9985 GB, free: 151.5 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.01663/1.533, allocations: 8.823 MB / 1.007 GB, free: 142.7 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 8.717e-06/1.533, allocations: 0.875 kB / 1.007 GB, free: 142.7 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.005476/1.539, allocations: 3.018 MB / 1.01 GB, free: 139.6 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003825/1.543, allocations: 1.062 MB / 1.011 GB, free: 138.6 MB / 0.6198 GB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:4683:9-4683:59:writable] Error: Internal error function createStateSetsSets failed. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:843:5-843:146:writable] Error: Internal error function createSimCode failed [Transformation from optimised DAE to simulation code structure failed] " [Timeout remaining time 658] [Calling sys.exit(0), Time elapsed: 3.5491811176761985]