Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Fluid_TestExamplesVariants_HeatingSystem_SteadyState",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Fluid_TestExamplesVariants_HeatingSystem_SteadyState",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001535/0.001535, allocations: 114.2 kB / 17.33 MB, free: 5.973 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001607/0.001607, allocations: 209.8 kB / 18.27 MB, free: 5.051 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.384/1.384, allocations: 227.4 MB / 246.5 MB, free: 10.75 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2139/0.2139, allocations: 46.11 MB / 343.8 MB, free: 11.72 MB / 286.1 MB Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002167/0.002167, allocations: 77.84 kB / 417.2 MB, free: 19.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1017/0.1039, allocations: 62.46 MB / 479.7 MB, free: 5.465 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState): time 0.2852/0.3891, allocations: 93.54 MB / 0.5598 GB, free: 2.898 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.03331/0.4225, allocations: 21.81 MB / 0.5811 GB, free: 15.74 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004345/0.427, allocations: 119.1 kB / 0.5812 GB, free: 15.62 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003054/0.4301, allocations: 0.8316 MB / 0.582 GB, free: 14.79 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009687/0.4398, allocations: 3.497 MB / 0.5854 GB, free: 11.28 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01256/0.4523, allocations: 5.237 MB / 0.5905 GB, free: 6.043 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.009946/0.4623, allocations: 6.956 MB / 0.5973 GB, free: 15.08 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003266/0.4656, allocations: 1.817 MB / 0.5991 GB, free: 13.25 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1503/0.6159, allocations: 74.46 MB / 0.6718 GB, free: 1.941 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0606/0.6766, allocations: 32.12 MB / 0.7032 GB, free: 1.43 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 0.0009413/0.6775, allocations: 244 kB / 0.7034 GB, free: 1.191 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.2569/0.9344, allocations: 6.129 MB / 0.7094 GB, free: 106.7 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.002222/0.9367, allocations: 1.08 MB / 0.7104 GB, free: 106.7 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.005379/0.9421, allocations: 1.49 MB / 0.7119 GB, free: 106.7 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.01273/0.9549, allocations: 5.463 MB / 0.7172 GB, free: 106.4 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 6.732e-06/0.9549, allocations: 0 / 0.7172 GB, free: 106.4 MB / 0.5294 GB Notification: Performance of FrontEnd: time 3.266e-06/0.9549, allocations: 0 / 0.7172 GB, free: 106.4 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 0.0001835/0.9551, allocations: 3.75 kB / 0.7172 GB, free: 106.4 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.01252/0.9676, allocations: 3.491 MB / 0.7207 GB, free: 105 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 5.496e-05/0.9677, allocations: 9.25 kB / 0.7207 GB, free: 105 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008661/0.9686, allocations: 345.2 kB / 0.721 GB, free: 104.9 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001294/0.9699, allocations: 310.1 kB / 0.7213 GB, free: 104.8 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00327/0.9732, allocations: 1.571 MB / 0.7228 GB, free: 104.3 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002434/0.9735, allocations: 215.2 kB / 0.723 GB, free: 104.2 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004691/0.9739, allocations: 185.6 kB / 0.7232 GB, free: 104.2 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006565/0.9805, allocations: 3.29 MB / 0.7264 GB, free: 103.9 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.337e-05/0.9806, allocations: 4.469 kB / 0.7264 GB, free: 103.9 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002937/0.9809, allocations: 86.83 kB / 0.7265 GB, free: 103.9 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003443/0.9813, allocations: 253.1 kB / 0.7267 GB, free: 103.9 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005452/0.9867, allocations: 3.098 MB / 0.7298 GB, free: 103.8 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.01855/1.005, allocations: 13.84 MB / 0.7433 GB, free: 96.69 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003633/1.009, allocations: 2.193 MB / 0.7454 GB, free: 96.36 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001487/1.01, allocations: 1.181 MB / 0.7466 GB, free: 96.16 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.007431/1.018, allocations: 5.624 MB / 0.7521 GB, free: 92.38 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.969e-05/1.018, allocations: 51.25 kB / 0.7521 GB, free: 92.34 MB / 0.5294 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001207/1.019, allocations: 211.9 kB / 0.7523 GB, free: 92.23 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=158): time 5.57e-06/1.019, allocations: 0 / 0.7523 GB, free: 92.23 MB / 0.5294 GB Notification: Performance of matching and sorting (n=259): time 0.511/1.53, allocations: 55.44 MB / 0.8065 GB, free: 40.69 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.1255/1.656, allocations: 45.54 MB / 0.8509 GB, free: 10.74 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002841/1.659, allocations: 1.862 MB / 0.8528 GB, free: 8.836 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0006292/1.659, allocations: 69.7 kB / 0.8528 GB, free: 8.762 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.000923/1.66, allocations: 1.09 MB / 0.8539 GB, free: 7.664 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.001077/1.661, allocations: 0.8689 MB / 0.8547 GB, free: 6.805 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001219/1.663, allocations: 0.5683 MB / 0.8553 GB, free: 6.23 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001258/1.663, allocations: 305.1 kB / 0.8556 GB, free: 5.93 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004358/1.667, allocations: 2.195 MB / 0.8577 GB, free: 3.73 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005008/1.672, allocations: 2.823 MB / 0.8605 GB, free: 0.6523 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01162/1.684, allocations: 5.428 MB / 0.8658 GB, free: 11 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.692e-05/1.684, allocations: 8 kB / 0.8658 GB, free: 10.99 MB / 0.5606 GB Notification: Performance of matching and sorting (n=359) (initialization): time 0.01652/1.7, allocations: 7.5 MB / 0.8731 GB, free: 3.547 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 3.844e-05/1.7, allocations: 15.09 kB / 0.8731 GB, free: 3.535 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.7e-05/1.7, allocations: 16.11 kB / 0.8731 GB, free: 3.52 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.04654/1.747, allocations: 11.86 MB / 0.8847 GB, free: 7.68 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001742/1.749, allocations: 353.2 kB / 0.8851 GB, free: 7.359 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01904/1.768, allocations: 8.616 MB / 0.8935 GB, free: 14.71 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004065/1.772, allocations: 260.7 kB / 0.8937 GB, free: 14.45 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005534/1.772, allocations: 151.9 kB / 0.8939 GB, free: 14.3 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.005393/1.778, allocations: 2.687 MB / 0.8965 GB, free: 11.61 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.005002/1.783, allocations: 2.767 MB / 0.8992 GB, free: 8.59 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.01135/1.794, allocations: 5.303 MB / 0.9044 GB, free: 3.066 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.674e-05/1.794, allocations: 8 kB / 0.9044 GB, free: 3.059 MB / 0.5919 GB Notification: Performance of matching and sorting (n=359) (initialization_lambda0): time 0.01589/1.81, allocations: 7.23 MB / 0.9114 GB, free: 11.88 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.797e-05/1.81, allocations: 16 kB / 0.9115 GB, free: 11.87 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.131e-05/1.81, allocations: 20 kB / 0.9115 GB, free: 11.85 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02644/1.837, allocations: 7.697 MB / 0.919 GB, free: 4.145 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001995/1.839, allocations: 397.2 kB / 0.9194 GB, free: 3.781 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2284/2.067, allocations: 8.138 MB / 0.9273 GB, free: 260.5 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00421/2.071, allocations: 256.7 kB / 0.9276 GB, free: 260.5 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006707/2.072, allocations: 148.6 kB / 0.9277 GB, free: 260.5 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.0009122/2.073, allocations: 336.2 kB / 0.928 GB, free: 260.4 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008898/2.074, allocations: 247.4 kB / 0.9283 GB, free: 260.4 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01968/2.094, allocations: 8.066 MB / 0.9361 GB, free: 257.9 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.148e-05/2.094, allocations: 31.03 kB / 0.9362 GB, free: 257.9 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.016e-05/2.094, allocations: 5.453 kB / 0.9362 GB, free: 257.9 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01524/2.109, allocations: 7.07 MB / 0.9431 GB, free: 255.3 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02381/2.133, allocations: 13.81 MB / 0.9566 GB, free: 249.9 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.395e-05/2.133, allocations: 3.969 kB / 0.9566 GB, free: 249.9 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009165/2.134, allocations: 188.9 kB / 0.9568 GB, free: 249.9 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.03973/2.174, allocations: 11.27 MB / 0.9678 GB, free: 243 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007786/2.174, allocations: 87.95 kB / 0.9678 GB, free: 242.9 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0143/2.189, allocations: 8.339 MB / 0.976 GB, free: 234.6 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.1205/2.309, allocations: 45.1 MB / 1.02 GB, free: 189.6 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01844/2.328, allocations: 10.66 MB / 1.03 GB, free: 178.8 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002103/2.33, allocations: 0.8018 MB / 1.031 GB, free: 178 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005527/2.33, allocations: 56.06 kB / 1.031 GB, free: 178 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002771/2.333, allocations: 248 kB / 1.032 GB, free: 177.7 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004598/2.334, allocations: 202 kB / 1.032 GB, free: 177.5 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002838/2.334, allocations: 111.9 kB / 1.032 GB, free: 177.4 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.001442/2.335, allocations: 1.273 MB / 1.033 GB, free: 176.1 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.2e-07/2.335, allocations: 0 / 1.033 GB, free: 176.1 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.008305/2.344, allocations: 2.914 MB / 1.036 GB, free: 173.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 (95): * Single equations (assignments): 89 * 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.02671/2.37, allocations: 13.22 MB / 1.049 GB, free: 160.2 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.02682/2.397, allocations: 10.37 MB / 1.059 GB, free: 149.8 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 9.908e-06/2.397, allocations: 384 / 1.059 GB, free: 149.8 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.00869/2.406, allocations: 3.23 MB / 1.062 GB, free: 146.6 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005019/2.411, allocations: 1.067 MB / 1.063 GB, free: 145.6 MB / 0.6075 GB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:4638:9-4638:59:writable] Error: Internal error function createStateSetsSets failed. [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:798:5-798:146:writable] Error: Internal error function createSimCode failed [Transformation from optimised DAE to simulation code structure failed]