Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState.conf.json 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/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestExamplesVariants_HeatingSystem_SteadyState",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestExamplesVariants_HeatingSystem_SteadyState",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001275/0.001275, allocations: 197.7 kB / 17.08 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.505/1.505, allocations: 227.2 MB / 245 MB, free: 7.625 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000937/0.000937, allocations: 99.06 kB / 297.3 MB, free: 6.172 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.4541/0.4541, allocations: 45.23 MB / 394.6 MB, free: 31.72 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003332/0.0003334, allocations: 8.219 kB / 468.5 MB, free: 7.629 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4698/0.4701, allocations: 63.23 MB / 0.5193 GB, free: 43.84 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 9.123/9.593, allocations: 3.172 GB / 3.691 GB, free: 126.5 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003444/9.594, allocations: 93.86 kB / 3.691 GB, free: 126.5 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 11.57/21.17, allocations: 3.116 GB / 6.807 GB, free: 46.88 MB / 0.573 GB Notification: Performance of FrontEnd: time 2.735e-06/21.17, allocations: 0 / 6.807 GB, free: 46.88 MB / 0.573 GB Notification: Performance of Transformations before backend: time 0.0002515/21.17, allocations: 67.88 kB / 6.807 GB, free: 46.82 MB / 0.573 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.02122/21.19, allocations: 3.912 MB / 6.811 GB, free: 43.25 MB / 0.573 GB Notification: Performance of prepare preOptimizeDAE: time 6.173e-05/21.19, allocations: 8.031 kB / 6.811 GB, free: 43.24 MB / 0.573 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00231/21.19, allocations: 359.5 kB / 6.811 GB, free: 42.93 MB / 0.573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001748/21.19, allocations: 312.6 kB / 6.811 GB, free: 42.63 MB / 0.573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006679/21.2, allocations: 2.093 MB / 6.813 GB, free: 40.73 MB / 0.573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002035/21.2, allocations: 219.2 kB / 6.814 GB, free: 40.5 MB / 0.573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005154/21.2, allocations: 188 kB / 6.814 GB, free: 40.32 MB / 0.573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006186/21.21, allocations: 3.34 MB / 6.817 GB, free: 36.8 MB / 0.573 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.329e-05/21.21, allocations: 7.938 kB / 6.817 GB, free: 36.79 MB / 0.573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003088/21.21, allocations: 83.97 kB / 6.817 GB, free: 36.71 MB / 0.573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002594/21.21, allocations: 207.8 kB / 6.817 GB, free: 36.51 MB / 0.573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005218/21.21, allocations: 3.087 MB / 6.82 GB, free: 33.42 MB / 0.573 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.01793/21.23, allocations: 12.49 MB / 6.832 GB, free: 20.38 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003287/21.23, allocations: 2.286 MB / 6.835 GB, free: 18.07 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.007573/21.24, allocations: 5.648 MB / 6.84 GB, free: 11.93 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.773e-05/21.24, allocations: 51.88 kB / 6.84 GB, free: 11.87 MB / 0.573 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001066/21.24, allocations: 253.9 kB / 6.841 GB, free: 11.62 MB / 0.573 GB Notification: Performance of pre-optimization done (n=161): time 3.476e-06/21.24, allocations: 0 / 6.841 GB, free: 11.62 MB / 0.573 GB Notification: Performance of matching and sorting (n=263): time 1.006/22.25, allocations: 51.44 MB / 6.891 GB, free: 54.29 MB / 0.573 GB Error: Jacobian StateSetJac0 contains non-linear components. This indicates a singular system or internal generation errors. Notification: Performance of inlineWhenForInitialization (initialization): time 0.1776/22.43, allocations: 50.94 MB / 6.941 GB, free: 48.43 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002681/22.43, allocations: 1.688 MB / 6.942 GB, free: 48.22 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.000732/22.43, allocations: 75.14 kB / 6.942 GB, free: 48.19 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.00071/22.43, allocations: 1.055 MB / 6.943 GB, free: 47.86 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009074/22.43, allocations: 0.8808 MB / 6.944 GB, free: 47.34 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002513/22.43, allocations: 54.5 kB / 6.944 GB, free: 47.34 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0001473/22.43, allocations: 423.9 kB / 6.945 GB, free: 47.03 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003636/22.44, allocations: 2.201 MB / 6.947 GB, free: 47.02 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003935/22.44, allocations: 2.781 MB / 6.949 GB, free: 46.42 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005249/22.44, allocations: 2.635 MB / 6.952 GB, free: 46.37 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.965e-05/22.44, allocations: 11.3 kB / 6.952 GB, free: 46.37 MB / 0.573 GB Notification: Performance of matching and sorting (n=355) (initialization): time 0.01514/22.46, allocations: 7.54 MB / 6.959 GB, free: 46.1 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.001604/22.46, allocations: 6.343 MB / 6.966 GB, free: 39.47 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.404e-05/22.46, allocations: 15.06 kB / 6.966 GB, free: 39.47 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.04313/22.5, allocations: 11.77 MB / 6.977 GB, free: 39.32 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001728/22.51, allocations: 341.7 kB / 6.977 GB, free: 39.32 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01625/22.52, allocations: 8.733 MB / 6.986 GB, free: 38.12 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004407/22.53, allocations: 281.6 kB / 6.986 GB, free: 38.07 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005756/22.53, allocations: 153.7 kB / 6.986 GB, free: 38.04 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.345e-05/22.53, allocations: 4.531 kB / 6.986 GB, free: 38.04 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01489/22.54, allocations: 7.086 MB / 6.993 GB, free: 35.63 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.624e-05/22.54, allocations: 14.62 kB / 6.993 GB, free: 35.63 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02609/22.57, allocations: 7.839 MB / 7.001 GB, free: 34.51 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002134/22.57, allocations: 394.6 kB / 7.001 GB, free: 34.5 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01523/22.59, allocations: 8.2 MB / 7.009 GB, free: 31.17 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00454/22.59, allocations: 275.8 kB / 7.01 GB, free: 31.11 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005541/22.59, allocations: 150.8 kB / 7.01 GB, free: 31.09 MB / 0.573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 70 * 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 (165): * Single equations (assignments): 163 * 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.002185/22.59, allocations: 0.7676 MB / 7.01 GB, free: 30.65 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007942/22.59, allocations: 256.5 kB / 7.011 GB, free: 30.52 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01592/22.61, allocations: 8.081 MB / 7.019 GB, free: 27.71 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.861e-05/22.61, allocations: 42.56 kB / 7.019 GB, free: 27.71 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.869e-06/22.61, allocations: 0 / 7.019 GB, free: 27.71 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01281/22.62, allocations: 7.106 MB / 7.026 GB, free: 22.62 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02548/22.65, allocations: 14.04 MB / 7.039 GB, free: 11.23 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.542e-05/22.65, allocations: 7.891 kB / 7.039 GB, free: 11.22 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008312/22.65, allocations: 195.5 kB / 7.04 GB, free: 11.07 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.04073/22.69, allocations: 11.35 MB / 7.051 GB, free: 3.02 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008172/22.69, allocations: 84 kB / 7.051 GB, free: 2.949 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01594/22.71, allocations: 8.45 MB / 7.059 GB, free: 11.35 MB / 0.5886 GB Error: Jacobian StateSetJac10 contains non-linear components. This indicates a singular system or internal generation errors. Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.6635/23.37, allocations: 59.72 MB / 7.117 GB, free: 62.8 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02107/23.39, allocations: 10.68 MB / 7.128 GB, free: 62.34 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002984/23.4, allocations: 0.8506 MB / 7.129 GB, free: 62.13 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007438/23.4, allocations: 52.83 kB / 7.129 GB, free: 62.13 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003311/23.4, allocations: 264.9 kB / 7.129 GB, free: 62.12 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004367/23.4, allocations: 201.6 kB / 7.129 GB, free: 62.12 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000344/23.4, allocations: 117.1 kB / 7.129 GB, free: 62.12 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.001937/23.4, allocations: 1.275 MB / 7.13 GB, free: 61.97 MB / 0.5886 GB Notification: Performance of sort global known variables: time 1.6e-07/23.4, allocations: 0 / 7.13 GB, free: 61.97 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.01079/23.41, allocations: 3.221 MB / 7.134 GB, free: 61.97 MB / 0.5886 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 (96): * Single equations (assignments): 90 * 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 108} Notification: Performance of Backend phase and start with SimCode phase: time 0.02867/23.44, allocations: 13.96 MB / 7.147 GB, free: 60.46 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.02818/23.47, allocations: 9.247 MB / 7.156 GB, free: 60.26 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 1.841e-05/23.47, allocations: 1.031 kB / 7.156 GB, free: 60.26 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.01071/23.48, allocations: 3.257 MB / 7.159 GB, free: 60.18 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005699/23.49, allocations: 0.9364 MB / 7.16 GB, free: 60.16 MB / 0.5886 GB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:4493:9-4493:59:writable] Error: Internal error function createStateSetsSets failed. [/var/lib/jenkins1/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]