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/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/ModelicaServices 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001478/0.001478, allocations: 181 kB / 17.06 MB, free: 5.094 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.447/1.447, allocations: 223.2 MB / 241 MB, free: 11.9 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009035/0.0009034, allocations: 104 kB / 292.1 MB, free: 10.92 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3679/0.3679, allocations: 44.21 MB / 387.5 MB, free: 38.84 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003629/0.0003629, allocations: 8 kB / 460 MB, free: 1.449 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4179/0.4183, allocations: 61.9 MB / 0.5096 GB, free: 38.16 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.963/9.382, allocations: 3.171 GB / 3.68 GB, free: 90.09 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002935/9.382, allocations: 88.83 kB / 3.68 GB, free: 90.09 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 11.7/21.08, allocations: 3.11 GB / 6.79 GB, free: 1.883 MB / 0.5573 GB Notification: Performance of FrontEnd: time 3.636e-06/21.08, allocations: 4 kB / 6.79 GB, free: 1.879 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 0.0004073/21.08, allocations: 71.92 kB / 6.79 GB, free: 1.809 MB / 0.5573 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.5193/21.6, allocations: 3.899 MB / 6.794 GB, free: 50.89 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 7.084e-05/21.6, allocations: 8.594 kB / 6.794 GB, free: 50.89 MB / 0.5573 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002439/21.6, allocations: 351.4 kB / 6.794 GB, free: 50.84 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002159/21.6, allocations: 309.7 kB / 6.794 GB, free: 50.7 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008973/21.61, allocations: 2.095 MB / 6.796 GB, free: 50.24 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003904/21.61, allocations: 212.5 kB / 6.797 GB, free: 50.17 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001054/21.62, allocations: 190.2 kB / 6.797 GB, free: 50.17 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008949/21.62, allocations: 3.355 MB / 6.8 GB, free: 49.68 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.988e-05/21.62, allocations: 4.906 kB / 6.8 GB, free: 49.68 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004216/21.63, allocations: 87.88 kB / 6.8 GB, free: 49.68 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000379/21.63, allocations: 202.7 kB / 6.8 GB, free: 49.68 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008835/21.63, allocations: 3.096 MB / 6.803 GB, free: 49.66 MB / 0.5573 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.02833/21.66, allocations: 12.48 MB / 6.816 GB, free: 44.58 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006743/21.67, allocations: 2.281 MB / 6.818 GB, free: 44.43 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01697/21.69, allocations: 5.655 MB / 6.823 GB, free: 41.63 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.711e-05/21.69, allocations: 51.38 kB / 6.823 GB, free: 41.59 MB / 0.5573 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002242/21.69, allocations: 255.9 kB / 6.824 GB, free: 41.49 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=161): time 7.444e-06/21.69, allocations: 2.594 kB / 6.824 GB, free: 41.49 MB / 0.5573 GB Notification: Performance of matching and sorting (n=263): time 0.5986/22.29, allocations: 52.18 MB / 6.875 GB, free: 38.35 MB / 0.5573 GB Error: Jacobian StateSetJac0 contains non-linear components. This indicates a singular system or internal generation errors. Notification: Performance of inlineWhenForInitialization (initialization): time 0.1998/22.49, allocations: 51.83 MB / 6.925 GB, free: 32.48 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004022/22.49, allocations: 1.686 MB / 6.927 GB, free: 32.25 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.0009046/22.49, allocations: 73.28 kB / 6.927 GB, free: 32.22 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009255/22.49, allocations: 1.071 MB / 6.928 GB, free: 31.79 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.001366/22.49, allocations: 0.8858 MB / 6.929 GB, free: 31.22 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000667/22.5, allocations: 53.88 kB / 6.929 GB, free: 31.22 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0003079/22.5, allocations: 423.7 kB / 6.929 GB, free: 30.91 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004929/22.5, allocations: 2.201 MB / 6.931 GB, free: 30.91 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004561/22.51, allocations: 2.779 MB / 6.934 GB, free: 30.3 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005839/22.51, allocations: 2.646 MB / 6.937 GB, free: 29.39 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.208e-05/22.51, allocations: 6.219 kB / 6.937 GB, free: 29.39 MB / 0.5573 GB Notification: Performance of matching and sorting (n=355) (initialization): time 0.01622/22.53, allocations: 7.558 MB / 6.944 GB, free: 26.78 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.001876/22.53, allocations: 6.356 MB / 6.95 GB, free: 20.03 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.87e-05/22.53, allocations: 19.89 kB / 6.95 GB, free: 20.03 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.04779/22.58, allocations: 12.2 MB / 6.962 GB, free: 18.46 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001773/22.58, allocations: 349.4 kB / 6.963 GB, free: 18.2 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.019/22.6, allocations: 8.756 MB / 6.971 GB, free: 10.85 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005062/22.6, allocations: 279.4 kB / 6.971 GB, free: 10.65 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009739/22.6, allocations: 148.4 kB / 6.972 GB, free: 10.52 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 1.622e-05/22.6, allocations: 4 kB / 6.972 GB, free: 10.52 MB / 0.5573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01584/22.62, allocations: 7.104 MB / 6.978 GB, free: 4.617 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.14e-05/22.62, allocations: 23.41 kB / 6.979 GB, free: 4.602 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02939/22.65, allocations: 8.114 MB / 6.986 GB, free: 15.2 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002323/22.65, allocations: 395 kB / 6.987 GB, free: 14.84 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01963/22.67, allocations: 8.225 MB / 6.995 GB, free: 6.613 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005053/22.68, allocations: 277.6 kB / 6.995 GB, free: 6.359 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001063/22.68, allocations: 147.9 kB / 6.995 GB, free: 6.215 MB / 0.573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 70 * 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 (165): * Single equations (assignments): 163 * 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.00379/22.68, allocations: 0.7779 MB / 6.996 GB, free: 5.453 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00161/22.68, allocations: 248.9 kB / 6.996 GB, free: 5.207 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02325/22.71, allocations: 8.105 MB / 7.004 GB, free: 13.19 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.48e-05/22.71, allocations: 32 kB / 7.004 GB, free: 13.16 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.143e-06/22.71, allocations: 3.938 kB / 7.004 GB, free: 13.15 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01789/22.72, allocations: 7.136 MB / 7.011 GB, free: 5.938 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4909/23.22, allocations: 14.06 MB / 7.025 GB, free: 78.52 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.914e-05/23.22, allocations: 0 / 7.025 GB, free: 78.52 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000975/23.22, allocations: 190.9 kB / 7.025 GB, free: 78.52 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.04607/23.26, allocations: 11.77 MB / 7.037 GB, free: 78.39 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008778/23.26, allocations: 88.42 kB / 7.037 GB, free: 78.39 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01745/23.28, allocations: 8.461 MB / 7.045 GB, free: 77.29 MB / 0.5886 GB Error: Jacobian StateSetJac10 contains non-linear components. This indicates a singular system or internal generation errors. Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.2554/23.54, allocations: 60.62 MB / 7.104 GB, free: 71.88 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0263/23.56, allocations: 10.71 MB / 7.115 GB, free: 71.34 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005229/23.57, allocations: 0.8558 MB / 7.115 GB, free: 71.11 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002185/23.57, allocations: 53.77 kB / 7.115 GB, free: 71.11 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005296/23.58, allocations: 260.6 kB / 7.116 GB, free: 71.1 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001183/23.58, allocations: 206.8 kB / 7.116 GB, free: 71.09 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0009549/23.58, allocations: 117.2 kB / 7.116 GB, free: 71.09 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.004056/23.58, allocations: 1.275 MB / 7.117 GB, free: 70.95 MB / 0.5886 GB Notification: Performance of sort global known variables: time 4.51e-07/23.58, allocations: 3.719 kB / 7.117 GB, free: 70.95 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.01927/23.6, allocations: 3.208 MB / 7.12 GB, free: 70.91 MB / 0.5886 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 (96): * Single equations (assignments): 90 * 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 108} Notification: Performance of Backend phase and start with SimCode phase: time 0.03942/23.64, allocations: 13.97 MB / 7.134 GB, free: 69.39 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.02795/23.67, allocations: 9.238 MB / 7.143 GB, free: 67.29 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 1.289e-05/23.67, allocations: 5.172 kB / 7.143 GB, free: 67.29 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.01056/23.68, allocations: 3.264 MB / 7.146 GB, free: 66.34 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005841/23.69, allocations: 0.9244 MB / 7.147 GB, free: 66.13 MB / 0.5886 GB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:4493:9-4493: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]