Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 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 ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestExamplesVariants_HeatingSystem_SteadyState",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestExamplesVariants_HeatingSystem_SteadyState",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001162/0.001162, allocations: 175.5 kB / 16.72 MB, free: 4.957 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.303/1.303, allocations: 205.4 MB / 222.9 MB, free: 9.012 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008137/0.0008137, allocations: 81.42 kB / 271.2 MB, free: 8.238 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3344/0.3344, allocations: 43.57 MB / 363.1 MB, free: 52.11 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003775/0.0003776, allocations: 12 kB / 432.1 MB, free: 5.734 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1191/0.1195, allocations: 58.85 MB / 490.9 MB, free: 10.8 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState): time 0.2681/0.3876, allocations: 86.77 MB / 0.5642 GB, free: 4.539 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.03178/0.4195, allocations: 20.56 MB / 0.5842 GB, free: 6.43 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003276/0.4228, allocations: 110.4 kB / 0.5843 GB, free: 6.371 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002506/0.4253, allocations: 0.7778 MB / 0.5851 GB, free: 5.84 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.009998/0.4353, allocations: 3.612 MB / 0.5886 GB, free: 3.09 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01412/0.4495, allocations: 4.469 MB / 0.593 GB, free: 0 / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.01059/0.4601, allocations: 8.599 MB / 0.6014 GB, free: 9.273 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003313/0.4634, allocations: 1.538 MB / 0.6029 GB, free: 7.727 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.415/0.8784, allocations: 125.7 MB / 0.7257 GB, free: 50.3 MB / 490.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.06639/0.9449, allocations: 54.96 MB / 0.7794 GB, free: 3.48 MB / 490.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0008708/0.9458, allocations: 124 kB / 0.7795 GB, free: 3.359 MB / 490.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01394/0.9597, allocations: 8.215 MB / 0.7875 GB, free: 12.36 MB / 0.4948 GB Notification: Performance of NFScalarize.scalarize: time 0.001953/0.9617, allocations: 0.9438 MB / 0.7884 GB, free: 11.7 MB / 0.4948 GB Notification: Performance of NFVerifyModel.verify: time 0.002489/0.9642, allocations: 1.322 MB / 0.7897 GB, free: 11.03 MB / 0.4948 GB Notification: Performance of NFConvertDAE.convert: time 0.008124/0.9724, allocations: 3.918 MB / 0.7935 GB, free: 7.816 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 7.725e-06/0.9724, allocations: 4 kB / 0.7935 GB, free: 7.812 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.986e-06/0.9724, allocations: 0 / 0.7935 GB, free: 7.812 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0001233/0.9726, allocations: 0 / 0.7935 GB, free: 7.812 MB / 0.4948 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.008426/0.981, allocations: 2.992 MB / 0.7965 GB, free: 5.066 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.833e-05/0.9811, allocations: 8.031 kB / 0.7965 GB, free: 5.059 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007984/0.9819, allocations: 336.1 kB / 0.7968 GB, free: 4.844 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008718/0.9828, allocations: 317 kB / 0.7971 GB, free: 4.535 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002589/0.9854, allocations: 1.568 MB / 0.7986 GB, free: 3.309 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002055/0.9856, allocations: 225.4 kB / 0.7988 GB, free: 3.145 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002758/0.9859, allocations: 184.3 kB / 0.799 GB, free: 3.023 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005036/0.9909, allocations: 3.281 MB / 0.8022 GB, free: 0.6133 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.429e-05/0.991, allocations: 3.656 kB / 0.8022 GB, free: 0.6133 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002176/0.9912, allocations: 84.12 kB / 0.8023 GB, free: 0.5938 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003029/0.9915, allocations: 252.5 kB / 0.8025 GB, free: 384 kB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004772/0.9963, allocations: 3.092 MB / 0.8056 GB, free: 14.32 MB / 0.5105 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.01859/1.015, allocations: 13.88 MB / 0.8191 GB, free: 2.121 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003682/1.019, allocations: 2.197 MB / 0.8213 GB, free: 0.7422 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001614/1.02, allocations: 1.182 MB / 0.8224 GB, free: 15.97 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.007875/1.028, allocations: 5.635 MB / 0.8279 GB, free: 10.91 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.286e-05/1.028, allocations: 49.62 kB / 0.828 GB, free: 10.87 MB / 0.5261 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0009174/1.029, allocations: 237.2 kB / 0.8282 GB, free: 10.66 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=158): time 8.777e-06/1.029, allocations: 0 / 0.8282 GB, free: 10.66 MB / 0.5261 GB Notification: Performance of matching and sorting (n=259): time 0.4967/1.526, allocations: 55.56 MB / 0.8824 GB, free: 8.25 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.3298/1.856, allocations: 46.61 MB / 0.928 GB, free: 224.9 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003387/1.859, allocations: 1.849 MB / 0.9298 GB, free: 224.2 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.0005665/1.86, allocations: 66.73 kB / 0.9298 GB, free: 224.1 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007937/1.861, allocations: 1.099 MB / 0.9309 GB, free: 223.5 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.001104/1.862, allocations: 0.8667 MB / 0.9318 GB, free: 222.8 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000477/1.862, allocations: 55.69 kB / 0.9318 GB, free: 222.8 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0001947/1.862, allocations: 416.7 kB / 0.9322 GB, free: 222.4 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004347/1.867, allocations: 2.156 MB / 0.9343 GB, free: 221.7 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004415/1.871, allocations: 2.804 MB / 0.937 GB, free: 220.2 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01085/1.882, allocations: 5.433 MB / 0.9424 GB, free: 217.7 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.098e-05/1.882, allocations: 3.281 kB / 0.9424 GB, free: 217.7 MB / 0.573 GB Notification: Performance of matching and sorting (n=359) (initialization): time 0.01406/1.896, allocations: 7.455 MB / 0.9496 GB, free: 215 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002903/1.896, allocations: 0.6391 MB / 0.9503 GB, free: 214.1 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.99e-05/1.897, allocations: 18.41 kB / 0.9503 GB, free: 214.1 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.04277/1.939, allocations: 12.41 MB / 0.9624 GB, free: 204.2 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001475/1.941, allocations: 359.4 kB / 0.9627 GB, free: 203.8 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01534/1.956, allocations: 8.688 MB / 0.9712 GB, free: 195.1 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003481/1.96, allocations: 267.8 kB / 0.9715 GB, free: 194.8 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000511/1.96, allocations: 155.9 kB / 0.9716 GB, free: 194.7 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 8.616e-06/1.96, allocations: 4 kB / 0.9716 GB, free: 194.7 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01227/1.973, allocations: 7.03 MB / 0.9785 GB, free: 187.6 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.364e-05/1.973, allocations: 20 kB / 0.9785 GB, free: 187.6 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02369/1.996, allocations: 7.953 MB / 0.9863 GB, free: 179.6 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001841/1.998, allocations: 399.4 kB / 0.9867 GB, free: 179.2 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01468/2.013, allocations: 8.194 MB / 0.9947 GB, free: 171 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003702/2.017, allocations: 268.6 kB / 0.9949 GB, free: 170.7 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006778/2.017, allocations: 143.9 kB / 0.9951 GB, free: 170.6 MB / 0.573 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.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 {15 79,18 78} Notification: Performance of prepare postOptimizeDAE: time 0.001959/2.019, allocations: 0.7737 MB / 0.9958 GB, free: 169.8 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007798/2.02, allocations: 248.9 kB / 0.9961 GB, free: 169.6 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.015/2.035, allocations: 7.889 MB / 1.004 GB, free: 161.6 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.349e-05/2.035, allocations: 34.08 kB / 1.004 GB, free: 161.6 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.613e-06/2.035, allocations: 0 / 1.004 GB, free: 161.6 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0117/2.047, allocations: 6.943 MB / 1.011 GB, free: 154.5 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02408/2.071, allocations: 13.84 MB / 1.024 GB, free: 140.7 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.326e-05/2.071, allocations: 0 / 1.024 GB, free: 140.7 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008368/2.072, allocations: 191.9 kB / 1.024 GB, free: 140.5 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.04261/2.115, allocations: 11.98 MB / 1.036 GB, free: 128.5 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006412/2.115, allocations: 87.95 kB / 1.036 GB, free: 128.4 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01442/2.13, allocations: 8.397 MB / 1.044 GB, free: 120 MB / 0.573 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.1272/2.257, allocations: 46.62 MB / 1.09 GB, free: 72.88 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01902/2.276, allocations: 10.47 MB / 1.1 GB, free: 62.34 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002163/2.278, allocations: 0.8098 MB / 1.101 GB, free: 61.5 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008997/2.279, allocations: 48 kB / 1.101 GB, free: 61.46 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003201/2.282, allocations: 255.6 kB / 1.101 GB, free: 61.21 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007101/2.283, allocations: 214 kB / 1.101 GB, free: 61 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004256/2.283, allocations: 111.9 kB / 1.101 GB, free: 60.89 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.00197/2.285, allocations: 1.257 MB / 1.103 GB, free: 59.61 MB / 0.573 GB Notification: Performance of sort global known variables: time 5.91e-07/2.285, allocations: 0 / 1.103 GB, free: 59.61 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.00913/2.295, allocations: 2.897 MB / 1.105 GB, free: 56.92 MB / 0.573 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 (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 77,19 105} Notification: Performance of Backend phase and start with SimCode phase: time 0.02694/2.322, allocations: 13.02 MB / 1.118 GB, free: 44.11 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.02495/2.347, allocations: 9.113 MB / 1.127 GB, free: 34.97 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 1.077e-05/2.347, allocations: 4 kB / 1.127 GB, free: 34.96 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.0094/2.356, allocations: 3.219 MB / 1.13 GB, free: 31.74 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00588/2.362, allocations: 0.9783 MB / 1.131 GB, free: 30.75 MB / 0.573 GB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:4558:9-4558:59:writable] Error: Internal error function createStateSetsSets failed. [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:762:5-762:146:writable] Error: Internal error function createSimCode failed [Transformation from optimised DAE to simulation code structure failed]