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.001364/0.001364, allocations: 111.6 kB / 20.43 MB, free: 4.578 MB / 13.93 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.001596/0.001596, allocations: 218 kB / 23.73 MB, free: 2.137 MB / 13.93 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.9906/0.9906, allocations: 230.6 MB / 257.5 MB, free: 9.594 MB / 202.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.1629/0.1629, allocations: 46.96 MB / 360.9 MB, free: 3.059 MB / 282.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 0.00157/0.00157, allocations: 75.88 kB / 0.4977 GB, free: 6.797 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1074/0.109, allocations: 66.04 MB / 0.5621 GB, free: 4.621 MB / 426.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState): time 0.2846/0.3935, allocations: 81.75 MB / 0.642 GB, free: 7.633 MB / 474.7 MB Notification: Performance of NFInst.instExpressions: time 0.02419/0.4177, allocations: 19.62 MB / 0.6611 GB, free: 3.969 MB / 490.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002962/0.4207, allocations: 118.9 kB / 0.6612 GB, free: 3.852 MB / 490.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002505/0.4232, allocations: 0.9162 MB / 0.6621 GB, free: 2.93 MB / 490.7 MB Notification: Performance of NFTyping.typeBindings: time 0.008707/0.4319, allocations: 3.881 MB / 0.6659 GB, free: 15.03 MB / 0.4948 GB Notification: Performance of NFTyping.typeClassSections: time 0.01117/0.4431, allocations: 5.977 MB / 0.6718 GB, free: 9.059 MB / 0.4948 GB Notification: Performance of NFFlatten.flatten: time 0.008465/0.4515, allocations: 7.21 MB / 0.6788 GB, free: 1.816 MB / 0.4948 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002693/0.4542, allocations: 1.592 MB / 0.6804 GB, free: 208 kB / 0.4948 GB Notification: Performance of NFEvalConstants.evaluate: time 0.1182/0.5724, allocations: 74.43 MB / 0.7531 GB, free: 5.039 MB / 0.573 GB Notification: Performance of NFSimplifyModel.simplify: time 0.03814/0.6105, allocations: 31.84 MB / 0.7841 GB, free: 4.859 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 0.00111/0.6116, allocations: 244 kB / 0.7844 GB, free: 4.621 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 0.009862/0.6215, allocations: 5.408 MB / 0.7897 GB, free: 15.18 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 0.001269/0.6228, allocations: 1.11 MB / 0.7907 GB, free: 14.07 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 0.002199/0.625, allocations: 1.245 MB / 0.792 GB, free: 12.82 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.009378/0.6343, allocations: 5.396 MB / 0.7972 GB, free: 7.398 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 5.6e-06/0.6344, allocations: 0 / 0.7972 GB, free: 7.398 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.763e-06/0.6344, allocations: 0 / 0.7972 GB, free: 7.398 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 0.0001269/0.6345, allocations: 0 / 0.7972 GB, free: 7.398 MB / 0.6198 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.006423/0.6409, allocations: 3.512 MB / 0.8007 GB, free: 3.832 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.675e-05/0.6409, allocations: 12.03 kB / 0.8007 GB, free: 3.82 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004881/0.6414, allocations: 331.4 kB / 0.801 GB, free: 3.484 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001001/0.6424, allocations: 329.7 kB / 0.8013 GB, free: 3.164 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00223/0.6447, allocations: 1.59 MB / 0.8029 GB, free: 1.527 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000161/0.6448, allocations: 270.5 kB / 0.8031 GB, free: 1.238 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002082/0.645, allocations: 184 kB / 0.8033 GB, free: 1.059 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2134/0.8584, allocations: 3.661 MB / 0.8069 GB, free: 213.9 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.772e-05/0.8585, allocations: 4.906 kB / 0.8069 GB, free: 213.9 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001983/0.8587, allocations: 85.88 kB / 0.807 GB, free: 213.9 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002925/0.859, allocations: 248.1 kB / 0.8072 GB, free: 213.9 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004317/0.8633, allocations: 3.099 MB / 0.8102 GB, free: 212.8 MB / 0.6198 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.01459/0.8779, allocations: 10.16 MB / 0.8201 GB, free: 207.5 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004162/0.882, allocations: 2.086 MB / 0.8222 GB, free: 206.7 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001891/0.8839, allocations: 1.104 MB / 0.8233 GB, free: 206.3 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 0.007182/0.8911, allocations: 3.265 MB / 0.8264 GB, free: 205 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.103e-05/0.8911, allocations: 52.69 kB / 0.8265 GB, free: 204.9 MB / 0.6198 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0006105/0.8917, allocations: 163 kB / 0.8266 GB, free: 204.9 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=158): time 7.243e-06/0.8917, allocations: 0 / 0.8266 GB, free: 204.9 MB / 0.6198 GB Notification: Performance of matching and sorting (n=259): time 0.235/1.127, allocations: 55 MB / 0.8804 GB, free: 162.4 MB / 0.6198 GB Error: Jacobian StateSetJac0 contains non-linear components. This indicates a singular system or internal generation errors. Notification: Performance of inlineWhenForInitialization (initialization): time 0.06766/1.194, allocations: 44.41 MB / 0.9237 GB, free: 117.7 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001714/1.196, allocations: 1.893 MB / 0.9256 GB, free: 115.8 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 0.0006004/1.197, allocations: 69.7 kB / 0.9256 GB, free: 115.7 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004366/1.197, allocations: 1.116 MB / 0.9267 GB, free: 114.7 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007332/1.198, allocations: 0.9088 MB / 0.9276 GB, free: 113.8 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000803/1.199, allocations: 0.5644 MB / 0.9282 GB, free: 113.2 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 2.639e-05/1.199, allocations: 313 kB / 0.9285 GB, free: 112.9 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002526/1.201, allocations: 2.18 MB / 0.9306 GB, free: 110.7 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002601/1.204, allocations: 2.825 MB / 0.9334 GB, free: 107.6 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006114/1.21, allocations: 5.414 MB / 0.9386 GB, free: 101.9 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.666e-05/1.21, allocations: 11.94 kB / 0.9387 GB, free: 101.9 MB / 0.6198 GB Notification: Performance of matching and sorting (n=359) (initialization): time 0.008978/1.219, allocations: 7.375 MB / 0.9459 GB, free: 94.48 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 2.892e-05/1.219, allocations: 16.14 kB / 0.9459 GB, free: 94.47 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.34e-05/1.219, allocations: 24 kB / 0.9459 GB, free: 94.45 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02093/1.24, allocations: 11.83 MB / 0.9574 GB, free: 82.63 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009165/1.241, allocations: 355.3 kB / 0.9578 GB, free: 82.29 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009709/1.251, allocations: 8.616 MB / 0.9662 GB, free: 73.62 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002164/1.253, allocations: 195.8 kB / 0.9664 GB, free: 73.43 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003097/1.253, allocations: 155.9 kB / 0.9665 GB, free: 73.27 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002971/1.256, allocations: 2.684 MB / 0.9692 GB, free: 70.58 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.00277/1.259, allocations: 2.759 MB / 0.9718 GB, free: 67.55 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.006708/1.266, allocations: 5.285 MB / 0.977 GB, free: 61.97 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.324e-05/1.266, allocations: 7.938 kB / 0.977 GB, free: 61.96 MB / 0.6198 GB Notification: Performance of matching and sorting (n=359) (initialization_lambda0): time 0.008931/1.274, allocations: 7.128 MB / 0.984 GB, free: 54.78 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.854e-05/1.274, allocations: 12 kB / 0.984 GB, free: 54.77 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.578e-05/1.274, allocations: 16 kB / 0.984 GB, free: 54.75 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01207/1.287, allocations: 7.68 MB / 0.9915 GB, free: 47.07 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001053/1.288, allocations: 387.3 kB / 0.9919 GB, free: 46.69 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008873/1.296, allocations: 8.15 MB / 0.9998 GB, free: 38.48 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001991/1.298, allocations: 191.8 kB / 1 GB, free: 38.29 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000256/1.299, allocations: 147.9 kB / 1 GB, free: 38.15 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 (171): * Single equations (assignments): 169 * 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.0006337/1.299, allocations: 339 kB / 1 GB, free: 37.81 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004256/1.3, allocations: 262.4 kB / 1.001 GB, free: 37.55 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008918/1.309, allocations: 7.712 MB / 1.008 GB, free: 29.82 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.175e-05/1.309, allocations: 28 kB / 1.008 GB, free: 29.79 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.098e-06/1.309, allocations: 3.938 kB / 1.008 GB, free: 29.79 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00761/1.316, allocations: 6.783 MB / 1.015 GB, free: 22.9 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01685/1.333, allocations: 13.01 MB / 1.028 GB, free: 9.797 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.126e-05/1.333, allocations: 0 / 1.028 GB, free: 9.797 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005049/1.334, allocations: 187.8 kB / 1.028 GB, free: 9.613 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01989/1.354, allocations: 11.25 MB / 1.039 GB, free: 14.38 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004852/1.354, allocations: 83.95 kB / 1.039 GB, free: 14.3 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01033/1.364, allocations: 8.351 MB / 1.047 GB, free: 5.891 MB / 0.6355 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.2884/1.653, allocations: 41.21 MB / 1.087 GB, free: 211.3 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01196/1.665, allocations: 10.34 MB / 1.097 GB, free: 205.7 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001253/1.666, allocations: 0.7599 MB / 1.098 GB, free: 205 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002994/1.666, allocations: 52 kB / 1.098 GB, free: 204.9 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001248/1.668, allocations: 167.8 kB / 1.098 GB, free: 204.7 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003549/1.668, allocations: 206 kB / 1.099 GB, free: 204.5 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002054/1.668, allocations: 111.9 kB / 1.099 GB, free: 204.4 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 0.001262/1.669, allocations: 1.273 MB / 1.1 GB, free: 203.1 MB / 0.6355 GB Notification: Performance of sort global known variables: time 1.8e-07/1.669, allocations: 3.906 kB / 1.1 GB, free: 203.1 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.005652/1.675, allocations: 2.924 MB / 1.103 GB, free: 200.5 MB / 0.6355 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 (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.0174/1.692, allocations: 12.93 MB / 1.115 GB, free: 187.7 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.01366/1.706, allocations: 8.802 MB / 1.124 GB, free: 179 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 6.573e-06/1.706, allocations: 0 / 1.124 GB, free: 179 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 0.004638/1.711, allocations: 3.025 MB / 1.127 GB, free: 176 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002919/1.714, allocations: 1.057 MB / 1.128 GB, free: 175 MB / 0.6355 GB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:4734:9-4734:59:writable] Error: Internal error function createStateSetsSets failed. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:823:5-823: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.8847479363903403]