Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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: "" <> buildModelFMU(ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestExamplesVariants_HeatingSystem_SteadyState",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestExamplesVariants_HeatingSystem_SteadyState",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001086/0.001086, allocations: 107.7 kB / 17.21 MB, free: 6.27 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.001084/0.001084, allocations: 194 kB / 18.12 MB, free: 5.363 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.429/1.429, allocations: 222.9 MB / 241.8 MB, free: 13.81 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2114/0.2114, allocations: 44.17 MB / 336.1 MB, free: 2.781 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001281/0.001281, allocations: 60.03 kB / 407.8 MB, free: 27.58 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1037/0.105, allocations: 60.82 MB / 468.6 MB, free: 14.73 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState): time 0.3444/0.4495, allocations: 95.49 MB / 0.5509 GB, free: 13.6 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.03789/0.4874, allocations: 22.62 MB / 0.573 GB, free: 11 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003808/0.4913, allocations: 111.1 kB / 0.5731 GB, free: 10.89 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003553/0.4949, allocations: 0.8277 MB / 0.5739 GB, free: 10.06 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01105/0.506, allocations: 3.509 MB / 0.5773 GB, free: 6.539 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0135/0.5195, allocations: 4.953 MB / 0.5821 GB, free: 1.594 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0128/0.5323, allocations: 10.55 MB / 0.5925 GB, free: 7.023 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0034/0.5358, allocations: 1.563 MB / 0.594 GB, free: 5.441 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1791/0.7149, allocations: 73.38 MB / 0.6656 GB, free: 11.21 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.07085/0.7858, allocations: 31.94 MB / 0.6968 GB, free: 10.88 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 0.001059/0.7869, allocations: 132 kB / 0.697 GB, free: 10.75 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01338/0.8002, allocations: 5.971 MB / 0.7028 GB, free: 4.742 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.001645/0.8019, allocations: 0.9619 MB / 0.7037 GB, free: 3.777 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.00268/0.8046, allocations: 1.372 MB / 0.7051 GB, free: 2.398 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.2717/1.076, allocations: 5.336 MB / 0.7103 GB, free: 116.8 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 6.873e-06/1.076, allocations: 4.281 kB / 0.7103 GB, free: 116.8 MB / 0.5294 GB Notification: Performance of FrontEnd: time 2.013e-06/1.076, allocations: 0.5938 kB / 0.7103 GB, free: 116.8 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 0.0001697/1.077, allocations: 0 / 0.7103 GB, free: 116.8 MB / 0.5294 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.01552/1.092, allocations: 3.486 MB / 0.7137 GB, free: 115.6 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 6.134e-05/1.092, allocations: 9.406 kB / 0.7137 GB, free: 115.6 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008199/1.093, allocations: 347.4 kB / 0.714 GB, free: 115.5 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001652/1.095, allocations: 302.8 kB / 0.7143 GB, free: 115.4 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004214/1.099, allocations: 1.577 MB / 0.7159 GB, free: 114.9 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002456/1.099, allocations: 218.1 kB / 0.7161 GB, free: 114.8 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004751/1.1, allocations: 189.2 kB / 0.7163 GB, free: 114.8 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006798/1.106, allocations: 3.293 MB / 0.7195 GB, free: 114.5 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.039e-05/1.106, allocations: 4.969 kB / 0.7195 GB, free: 114.5 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002955/1.107, allocations: 82.67 kB / 0.7196 GB, free: 114.5 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003682/1.107, allocations: 254.9 kB / 0.7198 GB, free: 114.5 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005762/1.113, allocations: 3.096 MB / 0.7228 GB, free: 114.4 MB / 0.5294 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.01945/1.132, allocations: 13.83 MB / 0.7363 GB, free: 107.4 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003755/1.136, allocations: 2.198 MB / 0.7385 GB, free: 107.4 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001603/1.138, allocations: 1.181 MB / 0.7396 GB, free: 107.4 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.007466/1.145, allocations: 5.629 MB / 0.7451 GB, free: 104.4 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.707e-05/1.145, allocations: 45.84 kB / 0.7452 GB, free: 104.4 MB / 0.5294 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001169/1.147, allocations: 235.8 kB / 0.7454 GB, free: 104.3 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=158): time 3.988e-06/1.147, allocations: 0 / 0.7454 GB, free: 104.3 MB / 0.5294 GB Notification: Performance of matching and sorting (n=259): time 0.5809/1.727, allocations: 56.28 MB / 0.8004 GB, free: 58.21 MB / 0.5294 GB Error: Jacobian StateSetJac0 contains non-linear components. This indicates a singular system or internal generation errors. Notification: Performance of inlineWhenForInitialization (initialization): time 0.1318/1.859, allocations: 46.32 MB / 0.8456 GB, free: 11.49 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002286/1.862, allocations: 1.864 MB / 0.8474 GB, free: 9.59 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0006877/1.862, allocations: 65.7 kB / 0.8475 GB, free: 9.52 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005861/1.863, allocations: 1.089 MB / 0.8485 GB, free: 8.422 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009318/1.864, allocations: 0.8676 MB / 0.8494 GB, free: 7.562 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001107/1.865, allocations: 0.5683 MB / 0.8499 GB, free: 6.988 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 4.106e-05/1.865, allocations: 302.3 kB / 0.8502 GB, free: 6.691 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003768/1.869, allocations: 2.18 MB / 0.8524 GB, free: 4.504 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004341/1.873, allocations: 2.82 MB / 0.8551 GB, free: 1.43 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01221/1.885, allocations: 5.454 MB / 0.8604 GB, free: 11.76 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.111e-05/1.885, allocations: 4 kB / 0.8604 GB, free: 11.75 MB / 0.545 GB Notification: Performance of matching and sorting (n=359) (initialization): time 0.01672/1.902, allocations: 7.503 MB / 0.8678 GB, free: 4.305 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 3.259e-05/1.902, allocations: 13.64 kB / 0.8678 GB, free: 4.293 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.182e-05/1.902, allocations: 20 kB / 0.8678 GB, free: 4.273 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.04856/1.951, allocations: 12.26 MB / 0.8798 GB, free: 8.031 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001828/1.953, allocations: 356.2 kB / 0.8801 GB, free: 7.707 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02088/1.974, allocations: 8.645 MB / 0.8886 GB, free: 15.03 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004303/1.978, allocations: 251.8 kB / 0.8888 GB, free: 14.78 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007615/1.979, allocations: 151.9 kB / 0.889 GB, free: 14.63 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.006024/1.985, allocations: 2.68 MB / 0.8916 GB, free: 11.95 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.005002/1.99, allocations: 2.762 MB / 0.8943 GB, free: 8.934 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.01183/2.002, allocations: 5.334 MB / 0.8995 GB, free: 3.379 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.441e-05/2.002, allocations: 4 kB / 0.8995 GB, free: 3.375 MB / 0.5762 GB Notification: Performance of matching and sorting (n=359) (initialization_lambda0): time 0.01709/2.019, allocations: 7.227 MB / 0.9065 GB, free: 12.2 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 3.026e-05/2.019, allocations: 21.95 kB / 0.9066 GB, free: 12.18 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.914e-05/2.019, allocations: 16.91 kB / 0.9066 GB, free: 12.17 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02758/2.047, allocations: 7.74 MB / 0.9141 GB, free: 4.422 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002234/2.049, allocations: 391.7 kB / 0.9145 GB, free: 4.066 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01983/2.069, allocations: 8.167 MB / 0.9225 GB, free: 11.86 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004912/2.074, allocations: 251.9 kB / 0.9227 GB, free: 11.61 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001117/2.075, allocations: 143.9 kB / 0.9229 GB, free: 11.47 MB / 0.6075 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.001804/2.077, allocations: 344 kB / 0.9232 GB, free: 11.15 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001367/2.078, allocations: 253 kB / 0.9234 GB, free: 10.9 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01953/2.098, allocations: 7.855 MB / 0.9311 GB, free: 3.039 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.681e-05/2.098, allocations: 28 kB / 0.9311 GB, free: 3.012 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.661e-06/2.098, allocations: 0 / 0.9311 GB, free: 3.012 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.2964/2.394, allocations: 6.912 MB / 0.9379 GB, free: 273.4 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03077/2.425, allocations: 13.8 MB / 0.9513 GB, free: 268 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.051e-05/2.425, allocations: 0 / 0.9513 GB, free: 268 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001043/2.426, allocations: 187.5 kB / 0.9515 GB, free: 268 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.04359/2.47, allocations: 11.82 MB / 0.9631 GB, free: 265.8 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008386/2.471, allocations: 89.36 kB / 0.9632 GB, free: 265.7 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01495/2.485, allocations: 8.358 MB / 0.9713 GB, free: 258.3 MB / 0.6075 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.1281/2.614, allocations: 46.34 MB / 1.017 GB, free: 212.2 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01859/2.632, allocations: 10.44 MB / 1.027 GB, free: 201.8 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002632/2.635, allocations: 0.8074 MB / 1.028 GB, free: 200.9 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000828/2.636, allocations: 55.98 kB / 1.028 GB, free: 200.9 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003153/2.639, allocations: 235.5 kB / 1.028 GB, free: 200.6 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005226/2.639, allocations: 198.1 kB / 1.028 GB, free: 200.5 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003213/2.64, allocations: 108 kB / 1.028 GB, free: 200.3 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.001851/2.642, allocations: 1.277 MB / 1.029 GB, free: 199.1 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.3e-07/2.642, allocations: 0 / 1.029 GB, free: 199.1 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.009389/2.651, allocations: 2.901 MB / 1.032 GB, free: 196.4 MB / 0.6075 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.02798/2.679, allocations: 13 MB / 1.045 GB, free: 183.4 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.02657/2.706, allocations: 9.138 MB / 1.054 GB, free: 174.2 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.14e-05/2.706, allocations: 4 kB / 1.054 GB, free: 174.2 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.01012/2.716, allocations: 3.195 MB / 1.057 GB, free: 171 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00618/2.722, allocations: 0.9973 MB / 1.058 GB, free: 170 MB / 0.6075 GB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:4614:9-4614:59:writable] Error: Internal error function createStateSetsSets failed. [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:774:5-774:146:writable] Error: Internal error function createSimCode failed [Transformation from optimised DAE to simulation code structure failed]