Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_ModelicaTest_Fluid_TestExamplesVariants_HeatingSystem_SteadyState",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState,fileNamePrefix="ModelicaTest_3_2_3_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.001089/0.001088, allocations: 95.89 kB / 15.68 MB, free: 488 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00134/0.00134, allocations: 175.1 kB / 16.56 MB, free: 6.379 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.554/1.554, allocations: 205.4 MB / 222.7 MB, free: 5.664 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3812/0.3812, allocations: 43.55 MB / 314.5 MB, free: 8.812 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005615/0.0005616, allocations: 16 kB / 384 MB, free: 7.941 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1386/0.1391, allocations: 58.85 MB / 442.8 MB, free: 12.98 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState): time 0.3181/0.4573, allocations: 67.61 MB / 0.4985 GB, free: 7.676 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.03605/0.4934, allocations: 20.65 MB / 0.5186 GB, free: 9.68 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004307/0.4978, allocations: 103.6 kB / 0.5187 GB, free: 9.625 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004163/0.502, allocations: 0.917 MB / 0.5196 GB, free: 9.098 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01263/0.5147, allocations: 2.692 MB / 0.5223 GB, free: 7.41 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.02259/0.5373, allocations: 5.429 MB / 0.5276 GB, free: 4.543 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01276/0.5501, allocations: 3.779 MB / 0.5313 GB, free: 2.098 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004407/0.5545, allocations: 1.493 MB / 0.5327 GB, free: 1.145 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.601/1.156, allocations: 123.8 MB / 0.6537 GB, free: 94.91 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.08235/1.238, allocations: 53.32 MB / 0.7057 GB, free: 49.09 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001351/1.239, allocations: 122.7 kB / 0.7058 GB, free: 48.97 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01961/1.259, allocations: 7.999 MB / 0.7136 GB, free: 41.97 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002355/1.261, allocations: 0.8547 MB / 0.7145 GB, free: 41.4 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001605/1.263, allocations: 0.531 MB / 0.715 GB, free: 41.09 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008006/1.271, allocations: 3.804 MB / 0.7187 GB, free: 37.82 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/1.271, allocations: 0 / 0.7187 GB, free: 37.82 MB / 494.1 MB Notification: Performance of FrontEnd: time 3.015e-06/1.271, allocations: 0 / 0.7187 GB, free: 37.82 MB / 494.1 MB Notification: Performance of Transformations before backend: time 0.0001066/1.271, allocations: 0 / 0.7187 GB, free: 37.82 MB / 494.1 MB 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.00899/1.28, allocations: 2.997 MB / 0.7216 GB, free: 35 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.246e-05/1.28, allocations: 8.031 kB / 0.7217 GB, free: 35 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00102/1.281, allocations: 355.5 kB / 0.722 GB, free: 34.77 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001028/1.282, allocations: 304.5 kB / 0.7223 GB, free: 34.47 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003041/1.285, allocations: 1.515 MB / 0.7238 GB, free: 33.3 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001938/1.286, allocations: 217.4 kB / 0.724 GB, free: 33.14 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00028/1.286, allocations: 186.3 kB / 0.7241 GB, free: 33.02 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005208/1.291, allocations: 3.272 MB / 0.7273 GB, free: 30.62 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.816e-05/1.291, allocations: 2.625 kB / 0.7273 GB, free: 30.62 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002364/1.292, allocations: 85.28 kB / 0.7274 GB, free: 30.61 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002796/1.292, allocations: 251.8 kB / 0.7277 GB, free: 30.39 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004621/1.296, allocations: 3.093 MB / 0.7307 GB, free: 28.34 MB / 494.1 MB 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.01921/1.316, allocations: 14.02 MB / 0.7444 GB, free: 16.07 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003626/1.319, allocations: 2.2 MB / 0.7465 GB, free: 14.68 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008142/1.328, allocations: 5.702 MB / 0.7521 GB, free: 9.586 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.909e-05/1.328, allocations: 54.36 kB / 0.7521 GB, free: 9.535 MB / 494.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.00105/1.329, allocations: 231.9 kB / 0.7524 GB, free: 9.328 MB / 494.1 MB Notification: Performance of pre-optimization done (n=160): time 4.338e-06/1.329, allocations: 4 kB / 0.7524 GB, free: 9.324 MB / 494.1 MB Notification: Performance of matching and sorting (n=262): time 0.502/1.831, allocations: 57.02 MB / 0.8081 GB, free: 5.504 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.488/2.319, allocations: 60.23 MB / 0.8669 GB, free: 196.7 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002612/2.321, allocations: 1.842 MB / 0.8687 GB, free: 196 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0006192/2.322, allocations: 71.73 kB / 0.8687 GB, free: 195.9 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006848/2.323, allocations: 1.085 MB / 0.8698 GB, free: 195.2 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.000798/2.324, allocations: 0.8762 MB / 0.8707 GB, free: 194.6 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002271/2.324, allocations: 55.97 kB / 0.8707 GB, free: 194.5 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001359/2.324, allocations: 421.3 kB / 0.8711 GB, free: 194.2 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003921/2.328, allocations: 2.181 MB / 0.8732 GB, free: 193.4 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004791/2.333, allocations: 2.823 MB / 0.876 GB, free: 191.9 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005739/2.338, allocations: 2.635 MB / 0.8786 GB, free: 190.9 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.117e-05/2.338, allocations: 5.5 kB / 0.8786 GB, free: 190.9 MB / 0.545 GB Notification: Performance of matching and sorting (n=361) (initialization): time 0.01495/2.353, allocations: 7.549 MB / 0.8859 GB, free: 188.2 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.00151/2.355, allocations: 7.514 MB / 0.8933 GB, free: 180.2 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.098e-05/2.355, allocations: 19.56 kB / 0.8933 GB, free: 180.2 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.04452/2.4, allocations: 12.4 MB / 0.9054 GB, free: 173.7 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001868/2.401, allocations: 343.4 kB / 0.9057 GB, free: 173.3 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.016/2.417, allocations: 8.805 MB / 0.9143 GB, free: 164.5 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00407/2.422, allocations: 271.8 kB / 0.9146 GB, free: 164.2 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005435/2.422, allocations: 151.9 kB / 0.9147 GB, free: 164.1 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.423e-05/2.422, allocations: 4 kB / 0.9147 GB, free: 164.1 MB / 0.545 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01263/2.435, allocations: 7.122 MB / 0.9217 GB, free: 156.9 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.589e-05/2.435, allocations: 24.06 kB / 0.9217 GB, free: 156.9 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02465/2.46, allocations: 8.016 MB / 0.9296 GB, free: 148.8 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001997/2.462, allocations: 395.3 kB / 0.9299 GB, free: 148.5 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01447/2.476, allocations: 8.299 MB / 0.938 GB, free: 140.1 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004129/2.48, allocations: 275.7 kB / 0.9383 GB, free: 139.8 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005652/2.481, allocations: 147.9 kB / 0.9384 GB, free: 139.7 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 83 * 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 (171): * Single equations (assignments): 169 * 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.001738/2.483, allocations: 0.7775 MB / 0.9392 GB, free: 138.9 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006507/2.483, allocations: 249 kB / 0.9394 GB, free: 138.7 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01428/2.498, allocations: 7.957 MB / 0.9472 GB, free: 130.7 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.189e-05/2.498, allocations: 39.95 kB / 0.9472 GB, free: 130.6 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.582e-06/2.498, allocations: 0 / 0.9472 GB, free: 130.6 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01245/2.51, allocations: 7 MB / 0.9541 GB, free: 123.5 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02534/2.536, allocations: 13.96 MB / 0.9677 GB, free: 109.5 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.718e-05/2.536, allocations: 0 / 0.9677 GB, free: 109.5 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009691/2.537, allocations: 191.8 kB / 0.9679 GB, free: 109.3 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.04393/2.581, allocations: 12.01 MB / 0.9796 GB, free: 97.32 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008271/2.581, allocations: 79.95 kB / 0.9797 GB, free: 97.25 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01459/2.596, allocations: 8.506 MB / 0.988 GB, free: 88.68 MB / 0.545 GB Error: Jacobian StateSetJac9 contains non-linear components. This indicates a singular system or internal generation errors. Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.1921/2.788, allocations: 57.18 MB / 1.044 GB, free: 31.19 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01794/2.806, allocations: 10.74 MB / 1.054 GB, free: 20.33 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002175/2.808, allocations: 0.841 MB / 1.055 GB, free: 19.46 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005158/2.809, allocations: 55.98 kB / 1.055 GB, free: 19.41 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002666/2.812, allocations: 251.6 kB / 1.055 GB, free: 19.16 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000389/2.812, allocations: 202.1 kB / 1.056 GB, free: 18.96 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002637/2.812, allocations: 115.9 kB / 1.056 GB, free: 18.85 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.001433/2.814, allocations: 1.225 MB / 1.057 GB, free: 17.61 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.4e-07/2.814, allocations: 0 / 1.057 GB, free: 17.61 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.00951/2.823, allocations: 2.897 MB / 1.06 GB, free: 14.92 MB / 0.545 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 (94): * Single equations (assignments): 88 * 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 106} Notification: Performance of Backend phase and start with SimCode phase: time 0.02521/2.848, allocations: 13.51 MB / 1.073 GB, free: 1.559 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.2391/3.088, allocations: 9.254 MB / 1.082 GB, free: 202.9 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.153e-05/3.088, allocations: 0 / 1.082 GB, free: 202.9 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.009282/3.097, allocations: 3.264 MB / 1.085 GB, free: 202.8 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004651/3.102, allocations: 0.9126 MB / 1.086 GB, free: 202.8 MB / 0.545 GB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:4497:9-4497: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]