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.001544/0.001544, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001776/0.001777, allocations: 210.4 kB / 18.58 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.493/1.493, allocations: 227.4 MB / 246.8 MB, free: 10.58 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.2312/0.2312, allocations: 46.13 MB / 344.2 MB, free: 11.55 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.004144/0.004144, allocations: 81.23 kB / 417.8 MB, free: 19.61 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1448/0.149, allocations: 62.45 MB / 480.2 MB, free: 5.133 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState): time 0.354/0.503, allocations: 90.44 MB / 0.5573 GB, free: 4.895 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.03598/0.5391, allocations: 21.34 MB / 0.5781 GB, free: 2.828 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00371/0.5429, allocations: 87.44 kB / 0.5782 GB, free: 2.742 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003525/0.5464, allocations: 0.9473 MB / 0.5791 GB, free: 1.789 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01212/0.5586, allocations: 3.74 MB / 0.5828 GB, free: 14.03 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01796/0.5766, allocations: 5.669 MB / 0.5883 GB, free: 8.359 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.01184/0.5884, allocations: 6.937 MB / 0.5951 GB, free: 1.418 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00433/0.5928, allocations: 1.817 MB / 0.5969 GB, free: 15.58 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1857/0.7785, allocations: 74.9 MB / 0.67 GB, free: 3.84 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0763/0.8549, allocations: 31.94 MB / 0.7012 GB, free: 3.512 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 0.0009651/0.8559, allocations: 244 kB / 0.7014 GB, free: 3.273 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.2788/1.135, allocations: 6.107 MB / 0.7074 GB, free: 109.8 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.003058/1.138, allocations: 1.071 MB / 0.7084 GB, free: 109.8 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.004625/1.142, allocations: 1.492 MB / 0.7099 GB, free: 109.8 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.01291/1.155, allocations: 5.446 MB / 0.7152 GB, free: 109.4 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 6.192e-06/1.155, allocations: 0.5 kB / 0.7152 GB, free: 109.4 MB / 0.5294 GB Notification: Performance of FrontEnd: time 2.033e-06/1.155, allocations: 3.969 kB / 0.7152 GB, free: 109.4 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 9.929e-05/1.156, allocations: 1.344 kB / 0.7152 GB, free: 109.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.009447/1.165, allocations: 3.486 MB / 0.7186 GB, free: 108.1 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 5.125e-05/1.165, allocations: 10.19 kB / 0.7186 GB, free: 108.1 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006283/1.166, allocations: 347.7 kB / 0.719 GB, free: 108 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001205/1.167, allocations: 310.1 kB / 0.7193 GB, free: 107.8 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003142/1.17, allocations: 1.566 MB / 0.7208 GB, free: 107.4 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002197/1.17, allocations: 218 kB / 0.721 GB, free: 107.3 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003266/1.171, allocations: 186.5 kB / 0.7212 GB, free: 107.3 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005229/1.176, allocations: 3.294 MB / 0.7244 GB, free: 106.9 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.483e-05/1.176, allocations: 8.25 kB / 0.7244 GB, free: 106.9 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002443/1.176, allocations: 80.05 kB / 0.7245 GB, free: 106.9 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002932/1.177, allocations: 260.5 kB / 0.7247 GB, free: 106.9 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00497/1.181, allocations: 3.094 MB / 0.7277 GB, free: 106.9 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.01772/1.199, allocations: 13.9 MB / 0.7413 GB, free: 99.89 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003931/1.203, allocations: 2.188 MB / 0.7435 GB, free: 99.85 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001931/1.205, allocations: 1.181 MB / 0.7446 GB, free: 99.83 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00821/1.213, allocations: 5.626 MB / 0.7501 GB, free: 96.53 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.644e-05/1.213, allocations: 49.94 kB / 0.7502 GB, free: 96.49 MB / 0.5294 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0009844/1.214, allocations: 157.7 kB / 0.7503 GB, free: 96.39 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=158): time 4.549e-06/1.214, allocations: 0 / 0.7503 GB, free: 96.39 MB / 0.5294 GB Notification: Performance of matching and sorting (n=259): time 0.4882/1.703, allocations: 55.37 MB / 0.8044 GB, free: 44.75 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.1213/1.824, allocations: 45.56 MB / 0.8489 GB, free: 14.79 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002898/1.827, allocations: 1.866 MB / 0.8507 GB, free: 12.89 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0006494/1.828, allocations: 73.7 kB / 0.8508 GB, free: 12.81 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009049/1.829, allocations: 1.083 MB / 0.8518 GB, free: 11.72 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.001147/1.83, allocations: 0.8756 MB / 0.8527 GB, free: 10.85 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001224/1.831, allocations: 0.5643 MB / 0.8532 GB, free: 10.28 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001373/1.831, allocations: 305.1 kB / 0.8535 GB, free: 9.98 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004556/1.836, allocations: 2.183 MB / 0.8556 GB, free: 7.793 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005043/1.841, allocations: 2.816 MB / 0.8584 GB, free: 4.727 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01175/1.852, allocations: 5.412 MB / 0.8637 GB, free: 15.1 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.008e-05/1.853, allocations: 12 kB / 0.8637 GB, free: 15.09 MB / 0.5606 GB Notification: Performance of matching and sorting (n=359) (initialization): time 0.01663/1.869, allocations: 7.475 MB / 0.871 GB, free: 7.66 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 3.848e-05/1.869, allocations: 12 kB / 0.871 GB, free: 7.648 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.827e-05/1.869, allocations: 20.09 kB / 0.871 GB, free: 7.629 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.04692/1.916, allocations: 11.86 MB / 0.8826 GB, free: 11.8 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001728/1.918, allocations: 347.9 kB / 0.8829 GB, free: 11.48 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0193/1.937, allocations: 8.613 MB / 0.8913 GB, free: 2.816 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004289/1.942, allocations: 195.9 kB / 0.8915 GB, free: 2.625 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007668/1.942, allocations: 159.8 kB / 0.8917 GB, free: 2.469 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.006247/1.949, allocations: 2.686 MB / 0.8943 GB, free: 15.78 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.005784/1.955, allocations: 2.754 MB / 0.897 GB, free: 12.77 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.01306/1.968, allocations: 5.289 MB / 0.9022 GB, free: 7.262 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.424e-05/1.968, allocations: 4 kB / 0.9022 GB, free: 7.258 MB / 0.5919 GB Notification: Performance of matching and sorting (n=359) (initialization_lambda0): time 0.01816/1.986, allocations: 7.213 MB / 0.9092 GB, free: 104 kB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 3.563e-05/1.986, allocations: 12 kB / 0.9092 GB, free: 92 kB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.739e-05/1.986, allocations: 27.28 kB / 0.9092 GB, free: 68 kB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02773/2.014, allocations: 7.688 MB / 0.9167 GB, free: 8.375 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002177/2.016, allocations: 396.7 kB / 0.9171 GB, free: 8.012 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2933/2.309, allocations: 8.143 MB / 0.9251 GB, free: 260.2 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004447/2.314, allocations: 194.3 kB / 0.9253 GB, free: 260.2 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005505/2.314, allocations: 145 kB / 0.9254 GB, free: 260.2 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.0008474/2.315, allocations: 336.1 kB / 0.9257 GB, free: 260.1 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007946/2.316, allocations: 245.3 kB / 0.926 GB, free: 260.1 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01835/2.334, allocations: 7.827 MB / 0.9336 GB, free: 259.1 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.083e-05/2.334, allocations: 30.97 kB / 0.9336 GB, free: 259.1 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.526e-06/2.334, allocations: 6.938 kB / 0.9336 GB, free: 259.1 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01678/2.351, allocations: 6.897 MB / 0.9404 GB, free: 256.5 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02412/2.375, allocations: 13.77 MB / 0.9538 GB, free: 251.1 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.517e-05/2.375, allocations: 6.844 kB / 0.9538 GB, free: 251.1 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008745/2.376, allocations: 189.1 kB / 0.954 GB, free: 251.1 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.039/2.415, allocations: 11.27 MB / 0.965 GB, free: 247.4 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008146/2.416, allocations: 87.39 kB / 0.9651 GB, free: 247.3 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01427/2.431, allocations: 8.33 MB / 0.9732 GB, free: 239.1 MB / 0.6075 GB Warning: There are tearing variables with annotation attribute '__OpenModelica_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.1153/2.546, allocations: 42.3 MB / 1.015 GB, free: 196.9 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0185/2.564, allocations: 10.41 MB / 1.025 GB, free: 186.4 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001983/2.566, allocations: 0.807 MB / 1.025 GB, free: 185.6 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006405/2.567, allocations: 57.06 kB / 1.026 GB, free: 185.5 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002681/2.57, allocations: 171.8 kB / 1.026 GB, free: 185.4 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004484/2.57, allocations: 202 kB / 1.026 GB, free: 185.2 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000266/2.57, allocations: 108 kB / 1.026 GB, free: 185.1 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.001415/2.572, allocations: 1.281 MB / 1.027 GB, free: 183.8 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.2e-07/2.572, allocations: 0 / 1.027 GB, free: 183.8 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.007933/2.58, allocations: 2.899 MB / 1.03 GB, free: 181.1 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.02632/2.606, allocations: 12.98 MB / 1.043 GB, free: 168.1 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.02862/2.635, allocations: 10.32 MB / 1.053 GB, free: 157.8 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 8.355e-06/2.635, allocations: 0 / 1.053 GB, free: 157.8 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.009221/2.644, allocations: 3.218 MB / 1.056 GB, free: 154.6 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006161/2.65, allocations: 1.054 MB / 1.057 GB, free: 153.5 MB / 0.6075 GB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:4689:9-4689:59:writable] Error: Internal error function createStateSetsSets failed. [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:803:5-803:146:writable] Error: Internal error function createSimCode failed [Transformation from optimised DAE to simulation code structure failed]