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/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 trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 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) 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_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/ModelicaServices trunk/package.mo): time 0.001201/0.001201, allocations: 103.8 kB / 17.63 MB, free: 5.48 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001198/0.001198, allocations: 210.4 kB / 18.58 MB, free: 4.535 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.319/1.319, allocations: 227.4 MB / 246.8 MB, free: 10.56 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1993/0.1993, allocations: 46.11 MB / 344.1 MB, free: 11.57 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001352/0.001352, allocations: 80.84 kB / 417.7 MB, free: 19.64 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.092/0.09336, allocations: 62.43 MB / 480.1 MB, free: 5.188 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState): time 0.2602/0.3536, allocations: 90.45 MB / 0.5572 GB, free: 4.965 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.02816/0.3818, allocations: 21.36 MB / 0.5781 GB, free: 2.867 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002589/0.3844, allocations: 87.44 kB / 0.5781 GB, free: 2.781 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002881/0.3874, allocations: 0.9356 MB / 0.5791 GB, free: 1.84 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009563/0.397, allocations: 3.744 MB / 0.5827 GB, free: 14.07 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01313/0.4101, allocations: 5.669 MB / 0.5882 GB, free: 8.406 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.009023/0.4191, allocations: 6.929 MB / 0.595 GB, free: 1.469 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003334/0.4225, allocations: 1.817 MB / 0.5968 GB, free: 15.64 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.146/0.5685, allocations: 74.89 MB / 0.6699 GB, free: 3.898 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.05909/0.6276, allocations: 31.94 MB / 0.7011 GB, free: 3.57 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 0.0008803/0.6285, allocations: 248 kB / 0.7013 GB, free: 3.328 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.2101/0.8386, allocations: 6.103 MB / 0.7073 GB, free: 109.7 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.001757/0.8404, allocations: 1.07 MB / 0.7084 GB, free: 109.7 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.003596/0.844, allocations: 1.492 MB / 0.7098 GB, free: 109.7 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.008129/0.8522, allocations: 5.448 MB / 0.7151 GB, free: 109.4 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 3.557e-06/0.8522, allocations: 0 / 0.7151 GB, free: 109.4 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.903e-06/0.8522, allocations: 0.9375 kB / 0.7151 GB, free: 109.4 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 3.182e-05/0.8522, allocations: 3.938 kB / 0.7151 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.006935/0.8592, allocations: 3.489 MB / 0.7185 GB, free: 108 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.261e-05/0.8592, allocations: 8.938 kB / 0.7186 GB, free: 108 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004445/0.8597, allocations: 345.1 kB / 0.7189 GB, free: 108 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000838/0.8605, allocations: 310.8 kB / 0.7192 GB, free: 107.8 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002039/0.8625, allocations: 1.567 MB / 0.7207 GB, free: 107.4 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001446/0.8627, allocations: 210.8 kB / 0.7209 GB, free: 107.3 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002972/0.863, allocations: 186.6 kB / 0.7211 GB, free: 107.3 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004017/0.867, allocations: 3.303 MB / 0.7243 GB, free: 106.9 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.759e-05/0.8671, allocations: 9.625 kB / 0.7243 GB, free: 106.9 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002192/0.8673, allocations: 86 kB / 0.7244 GB, free: 106.9 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002254/0.8675, allocations: 248.1 kB / 0.7246 GB, free: 106.9 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004061/0.8716, allocations: 3.102 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.01278/0.8844, allocations: 13.89 MB / 0.7412 GB, free: 99.88 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003229/0.8876, allocations: 2.202 MB / 0.7434 GB, free: 99.84 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001391/0.889, allocations: 1.181 MB / 0.7445 GB, free: 99.82 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.005773/0.8948, allocations: 5.61 MB / 0.75 GB, free: 96.51 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.689e-05/0.8949, allocations: 60.25 kB / 0.7501 GB, free: 96.47 MB / 0.5294 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0004349/0.8953, allocations: 159.7 kB / 0.7502 GB, free: 96.37 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=158): time 3.416e-06/0.8953, allocations: 7.938 kB / 0.7502 GB, free: 96.37 MB / 0.5294 GB Notification: Performance of matching and sorting (n=259): time 0.4834/1.379, allocations: 55.35 MB / 0.8043 GB, free: 44.8 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.1232/1.502, allocations: 45.56 MB / 0.8488 GB, free: 14.84 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00266/1.505, allocations: 1.862 MB / 0.8506 GB, free: 12.94 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.000534/1.505, allocations: 73.7 kB / 0.8507 GB, free: 12.86 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007544/1.506, allocations: 1.082 MB / 0.8517 GB, free: 11.77 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.001001/1.507, allocations: 0.8735 MB / 0.8526 GB, free: 10.91 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001361/1.508, allocations: 0.5682 MB / 0.8531 GB, free: 10.34 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 8.549e-05/1.508, allocations: 305.1 kB / 0.8534 GB, free: 10.04 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004211/1.513, allocations: 2.187 MB / 0.8556 GB, free: 7.844 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004636/1.517, allocations: 2.815 MB / 0.8583 GB, free: 4.777 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01151/1.529, allocations: 5.412 MB / 0.8636 GB, free: 15.14 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.2e-05/1.529, allocations: 4 kB / 0.8636 GB, free: 15.14 MB / 0.5606 GB Notification: Performance of matching and sorting (n=359) (initialization): time 0.01632/1.545, allocations: 7.474 MB / 0.8709 GB, free: 7.715 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 3.351e-05/1.545, allocations: 12 kB / 0.8709 GB, free: 7.703 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.536e-05/1.545, allocations: 23.98 kB / 0.8709 GB, free: 7.68 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.04556/1.591, allocations: 11.86 MB / 0.8825 GB, free: 11.84 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001738/1.593, allocations: 356.5 kB / 0.8829 GB, free: 11.52 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01959/1.612, allocations: 8.611 MB / 0.8913 GB, free: 2.855 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004039/1.616, allocations: 191.8 kB / 0.8914 GB, free: 2.668 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007395/1.617, allocations: 151.9 kB / 0.8916 GB, free: 2.52 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.006047/1.623, allocations: 2.686 MB / 0.8942 GB, free: 15.83 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.005232/1.628, allocations: 2.762 MB / 0.8969 GB, free: 12.81 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.01183/1.64, allocations: 5.297 MB / 0.9021 GB, free: 7.301 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.444e-05/1.64, allocations: 4 kB / 0.9021 GB, free: 7.297 MB / 0.5919 GB Notification: Performance of matching and sorting (n=359) (initialization_lambda0): time 0.01765/1.658, allocations: 7.2 MB / 0.9091 GB, free: 156 kB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 3.706e-05/1.658, allocations: 25.81 kB / 0.9091 GB, free: 136 kB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.406e-05/1.658, allocations: 16 kB / 0.9092 GB, free: 120 kB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02696/1.685, allocations: 7.688 MB / 0.9167 GB, free: 8.422 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002018/1.687, allocations: 389.7 kB / 0.917 GB, free: 8.066 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2145/1.902, allocations: 8.14 MB / 0.925 GB, free: 260.5 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004392/1.906, allocations: 193.9 kB / 0.9252 GB, free: 260.5 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008011/1.907, allocations: 146.9 kB / 0.9253 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.0008301/1.908, allocations: 340.2 kB / 0.9256 GB, free: 260.3 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008442/1.909, allocations: 245.4 kB / 0.9259 GB, free: 260.3 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0171/1.926, allocations: 7.829 MB / 0.9335 GB, free: 259.3 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.852e-05/1.926, allocations: 33.56 kB / 0.9335 GB, free: 259.3 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.847e-06/1.926, allocations: 3.562 kB / 0.9335 GB, free: 259.3 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01514/1.941, allocations: 6.897 MB / 0.9403 GB, free: 256.7 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02818/1.969, allocations: 13.77 MB / 0.9537 GB, free: 251.3 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.021e-05/1.969, allocations: 7.875 kB / 0.9537 GB, free: 251.3 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001006/1.97, allocations: 181.2 kB / 0.9539 GB, free: 251.3 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0415/2.012, allocations: 11.28 MB / 0.9649 GB, free: 247.5 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000742/2.013, allocations: 87.67 kB / 0.965 GB, free: 247.4 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01443/2.027, allocations: 8.333 MB / 0.9731 GB, free: 239.2 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.1168/2.144, allocations: 42.3 MB / 1.014 GB, free: 197 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01864/2.163, allocations: 10.42 MB / 1.025 GB, free: 186.5 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002023/2.165, allocations: 0.8038 MB / 1.025 GB, free: 185.7 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009853/2.166, allocations: 55.94 kB / 1.025 GB, free: 185.6 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003188/2.169, allocations: 171.9 kB / 1.026 GB, free: 185.5 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005289/2.169, allocations: 194.1 kB / 1.026 GB, free: 185.3 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003719/2.17, allocations: 115.9 kB / 1.026 GB, free: 185.2 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.001811/2.172, allocations: 1.273 MB / 1.027 GB, free: 183.9 MB / 0.6075 GB Notification: Performance of sort global known variables: time 2.8e-07/2.172, allocations: 3.938 kB / 1.027 GB, free: 183.9 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.008775/2.18, allocations: 2.901 MB / 1.03 GB, free: 181.2 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.02553/2.206, allocations: 12.99 MB / 1.043 GB, free: 168.2 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.02684/2.233, allocations: 10.3 MB / 1.053 GB, free: 157.9 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.116e-05/2.233, allocations: 4 kB / 1.053 GB, free: 157.9 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.009159/2.242, allocations: 3.227 MB / 1.056 GB, free: 154.7 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005571/2.248, allocations: 1.054 MB / 1.057 GB, free: 153.6 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]