Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4_0_0_ModelicaTest_Fluid_TestExamplesVariants_HeatingSystem_SteadyState",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState,fileNamePrefix="ModelicaTest_4_0_0_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.0008384/0.0008384, allocations: 97.59 kB / 17 MB, free: 6.121 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0007778/0.0007777, allocations: 182.8 kB / 17.89 MB, free: 5.699 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.341/1.341, allocations: 223.2 MB / 241.9 MB, free: 14.61 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1903/0.1903, allocations: 44.22 MB / 337.2 MB, free: 2.594 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003372/0.0003372, allocations: 9.5 kB / 409.7 MB, free: 27.6 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1328/0.1332, allocations: 61.92 MB / 471.6 MB, free: 13.64 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState): time 0.3482/0.4814, allocations: 86.54 MB / 0.5451 GB, free: 4.992 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.03112/0.5126, allocations: 20.57 MB / 0.5652 GB, free: 5.316 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004764/0.5174, allocations: 109.5 kB / 0.5653 GB, free: 5.258 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00336/0.5208, allocations: 0.7746 MB / 0.566 GB, free: 4.586 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01134/0.5322, allocations: 3.427 MB / 0.5694 GB, free: 1.953 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0127/0.5449, allocations: 4.471 MB / 0.5738 GB, free: 14.27 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01193/0.5569, allocations: 8.582 MB / 0.5821 GB, free: 5.68 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003854/0.5608, allocations: 1.501 MB / 0.5836 GB, free: 4.156 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1975/0.7583, allocations: 125.8 MB / 0.7065 GB, free: 6.27 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.3936/1.152, allocations: 55 MB / 0.7602 GB, free: 106.3 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 0.0009015/1.153, allocations: 124 kB / 0.7603 GB, free: 106.2 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01511/1.168, allocations: 7.959 MB / 0.7681 GB, free: 100.5 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.002376/1.17, allocations: 0.9468 MB / 0.769 GB, free: 100.1 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.001438/1.172, allocations: 0.5296 MB / 0.7695 GB, free: 99.82 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.008543/1.18, allocations: 3.822 MB / 0.7733 GB, free: 97 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 6.973e-06/1.18, allocations: 3.984 kB / 0.7733 GB, free: 97 MB / 0.5294 GB Notification: Performance of FrontEnd: time 2.525e-06/1.18, allocations: 0 / 0.7733 GB, free: 97 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 0.0001282/1.181, allocations: 4 kB / 0.7733 GB, free: 97 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.008222/1.189, allocations: 3.022 MB / 0.7762 GB, free: 94.2 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 5.016e-05/1.189, allocations: 8.562 kB / 0.7762 GB, free: 94.2 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001058/1.19, allocations: 346.3 kB / 0.7766 GB, free: 93.98 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009425/1.191, allocations: 304.5 kB / 0.7768 GB, free: 93.68 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002934/1.194, allocations: 1.515 MB / 0.7783 GB, free: 92.5 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001581/1.194, allocations: 217.9 kB / 0.7785 GB, free: 92.34 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002751/1.194, allocations: 190 kB / 0.7787 GB, free: 92.22 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004897/1.199, allocations: 3.279 MB / 0.7819 GB, free: 89.81 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.778e-05/1.199, allocations: 3.281 kB / 0.7819 GB, free: 89.81 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002218/1.2, allocations: 81.45 kB / 0.782 GB, free: 89.79 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002655/1.2, allocations: 254.8 kB / 0.7822 GB, free: 89.57 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004614/1.204, allocations: 3.092 MB / 0.7853 GB, free: 87.52 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.01678/1.221, allocations: 13.86 MB / 0.7988 GB, free: 75.33 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003416/1.225, allocations: 2.202 MB / 0.8009 GB, free: 73.95 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001614/1.226, allocations: 1.184 MB / 0.8021 GB, free: 73.19 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.007218/1.234, allocations: 5.632 MB / 0.8076 GB, free: 68.12 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.552e-05/1.234, allocations: 57.23 kB / 0.8077 GB, free: 68.07 MB / 0.5294 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.000864/1.234, allocations: 235.1 kB / 0.8079 GB, free: 67.86 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=158): time 4.268e-06/1.234, allocations: 0 / 0.8079 GB, free: 67.86 MB / 0.5294 GB Notification: Performance of matching and sorting (n=259): time 0.4648/1.699, allocations: 55.78 MB / 0.8623 GB, free: 17.36 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.1414/1.841, allocations: 46.65 MB / 0.9079 GB, free: 3.637 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003641/1.844, allocations: 1.85 MB / 0.9097 GB, free: 1.746 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.000845/1.845, allocations: 65.7 kB / 0.9098 GB, free: 1.676 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.001172/1.846, allocations: 1.095 MB / 0.9108 GB, free: 0.5742 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001602/1.848, allocations: 0.8632 MB / 0.9117 GB, free: 15.71 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006113/1.849, allocations: 62.95 kB / 0.9117 GB, free: 15.66 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0002776/1.849, allocations: 419.8 kB / 0.9121 GB, free: 15.24 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004658/1.854, allocations: 2.153 MB / 0.9142 GB, free: 13.09 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005064/1.859, allocations: 2.8 MB / 0.917 GB, free: 10.04 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006259/1.865, allocations: 2.605 MB / 0.9195 GB, free: 7.426 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.548e-05/1.865, allocations: 4 kB / 0.9195 GB, free: 7.422 MB / 0.5762 GB Notification: Performance of matching and sorting (n=359) (initialization): time 0.01841/1.884, allocations: 7.457 MB / 0.9268 GB, free: 24 kB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 0.2654/2.149, allocations: 0.6434 MB / 0.9274 GB, free: 239.8 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.985e-05/2.149, allocations: 18.53 kB / 0.9275 GB, free: 239.8 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.04989/2.199, allocations: 12.4 MB / 0.9396 GB, free: 239.6 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00205/2.201, allocations: 352.8 kB / 0.9399 GB, free: 239.6 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01692/2.218, allocations: 8.691 MB / 0.9484 GB, free: 236.9 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00421/2.222, allocations: 265.6 kB / 0.9486 GB, free: 236.8 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007574/2.223, allocations: 158.6 kB / 0.9488 GB, free: 236.8 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.229e-05/2.223, allocations: 7.438 kB / 0.9488 GB, free: 236.8 MB / 0.5762 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01418/2.237, allocations: 7.023 MB / 0.9557 GB, free: 234.4 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.424e-05/2.237, allocations: 21.69 kB / 0.9557 GB, free: 234.4 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02413/2.262, allocations: 7.963 MB / 0.9635 GB, free: 227.7 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001959/2.264, allocations: 391.3 kB / 0.9638 GB, free: 227.3 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01538/2.279, allocations: 8.198 MB / 0.9718 GB, free: 219.1 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003749/2.283, allocations: 269.6 kB / 0.9721 GB, free: 218.9 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006639/2.283, allocations: 143.9 kB / 0.9722 GB, free: 218.7 MB / 0.5762 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.002028/2.286, allocations: 0.7789 MB / 0.973 GB, free: 218 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008853/2.286, allocations: 246.4 kB / 0.9732 GB, free: 217.8 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01543/2.302, allocations: 7.896 MB / 0.9809 GB, free: 210 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.931e-05/2.302, allocations: 35.98 kB / 0.981 GB, free: 209.9 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.424e-06/2.302, allocations: 0 / 0.981 GB, free: 209.9 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01214/2.314, allocations: 6.946 MB / 0.9878 GB, free: 202.9 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0274/2.342, allocations: 13.83 MB / 1.001 GB, free: 189.1 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.953e-05/2.342, allocations: 0 / 1.001 GB, free: 189.1 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009375/2.343, allocations: 187.8 kB / 1.001 GB, free: 188.9 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0416/2.384, allocations: 11.94 MB / 1.013 GB, free: 177 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008334/2.385, allocations: 81.84 kB / 1.013 GB, free: 176.9 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01593/2.401, allocations: 8.387 MB / 1.021 GB, free: 168.5 MB / 0.5762 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.1261/2.527, allocations: 46.55 MB / 1.067 GB, free: 121.6 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01914/2.546, allocations: 10.47 MB / 1.077 GB, free: 111 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002004/2.548, allocations: 0.8127 MB / 1.078 GB, free: 110.2 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000838/2.549, allocations: 52 kB / 1.078 GB, free: 110.1 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003003/2.552, allocations: 253.1 kB / 1.078 GB, free: 109.9 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000472/2.553, allocations: 198.1 kB / 1.078 GB, free: 109.7 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003848/2.553, allocations: 115.5 kB / 1.078 GB, free: 109.6 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.001942/2.555, allocations: 1.257 MB / 1.08 GB, free: 108.3 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.173e-06/2.555, allocations: 0 / 1.08 GB, free: 108.3 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.009667/2.565, allocations: 2.897 MB / 1.082 GB, free: 105.6 MB / 0.5762 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.02752/2.592, allocations: 12.99 MB / 1.095 GB, free: 92.61 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.02491/2.617, allocations: 9.118 MB / 1.104 GB, free: 83.46 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 9.498e-06/2.617, allocations: 0 / 1.104 GB, free: 83.46 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.009017/2.626, allocations: 3.226 MB / 1.107 GB, free: 80.23 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005243/2.632, allocations: 0.9998 MB / 1.108 GB, free: 79.24 MB / 0.5762 GB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:4548:9-4548:59:writable] Error: Internal error function createStateSetsSets failed. [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:754:5-754:146:writable] Error: Internal error function createSimCode failed [Transformation from optimised DAE to simulation code structure failed]