Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Fluid.Examples.HeatingSystem.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001249/0.001249, allocations: 112.2 kB / 21.22 MB, free: 0.7305 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001375/0.001375, allocations: 216.2 kB / 24.53 MB, free: 4.066 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.38/1.38, allocations: 230.6 MB / 258.3 MB, free: 8.008 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.HeatingSystem,fileNamePrefix="Modelica_4_1_0_Modelica_Fluid_Examples_HeatingSystem",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.HeatingSystem,fileNamePrefix="Modelica_4_1_0_Modelica_Fluid_Examples_HeatingSystem",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001538/0.001538, allocations: 51.92 kB / 378.5 MB, free: 3.16 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2374/0.239, allocations: 53.36 MB / 431.9 MB, free: 6.879 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.HeatingSystem): time 0.09515/0.3341, allocations: 91.62 MB / 0.5113 GB, free: 10.96 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.03293/0.3671, allocations: 21.54 MB / 0.5323 GB, free: 5.359 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002491/0.3695, allocations: 122.9 kB / 0.5324 GB, free: 5.238 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002729/0.3723, allocations: 0.955 MB / 0.5333 GB, free: 4.277 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009681/0.382, allocations: 3.888 MB / 0.5371 GB, free: 380 kB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.2437/0.6256, allocations: 6.052 MB / 0.543 GB, free: 4.059 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.00831/0.6339, allocations: 7.421 MB / 0.5503 GB, free: 4.051 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002497/0.6364, allocations: 1.622 MB / 0.5519 GB, free: 3.973 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1473/0.7837, allocations: 74.55 MB / 0.6247 GB, free: 6.055 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.06858/0.8523, allocations: 31.9 MB / 0.6558 GB, free: 6.566 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 0.001148/0.8534, allocations: 248 kB / 0.6561 GB, free: 6.324 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01467/0.8681, allocations: 6.159 MB / 0.6621 GB, free: 396 kB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.002084/0.8702, allocations: 1.126 MB / 0.6632 GB, free: 15.29 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.003579/0.8738, allocations: 1.495 MB / 0.6646 GB, free: 13.82 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.01076/0.8845, allocations: 5.55 MB / 0.6701 GB, free: 8.535 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.8845, allocations: 2.438 kB / 0.6701 GB, free: 8.535 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.342e-06/0.8845, allocations: 8 kB / 0.6701 GB, free: 8.527 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 0.000135/0.8847, allocations: 0 / 0.6701 GB, free: 8.527 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.01134/0.896, allocations: 3.524 MB / 0.6735 GB, free: 5.016 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 4.583e-05/0.8961, allocations: 12.03 kB / 0.6735 GB, free: 5.004 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 9.898e-05/0.8962, allocations: 65.23 kB / 0.6736 GB, free: 4.941 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008458/0.897, allocations: 342.1 kB / 0.6739 GB, free: 4.605 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001245/0.8982, allocations: 322.1 kB / 0.6742 GB, free: 4.289 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003607/0.9019, allocations: 1.589 MB / 0.6758 GB, free: 2.742 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002538/0.9021, allocations: 277.3 kB / 0.676 GB, free: 2.461 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003567/0.9025, allocations: 202 kB / 0.6762 GB, free: 2.273 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005362/0.9078, allocations: 3.311 MB / 0.6795 GB, free: 14.89 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.151e-05/0.9079, allocations: 6.906 kB / 0.6795 GB, free: 14.88 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002234/0.9081, allocations: 82 kB / 0.6796 GB, free: 14.81 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003225/0.9084, allocations: 259 kB / 0.6798 GB, free: 14.56 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005209/0.9136, allocations: 3.129 MB / 0.6829 GB, free: 11.46 MB / 0.545 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.02073/0.9344, allocations: 13.53 MB / 0.6961 GB, free: 13.26 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004338/0.9387, allocations: 2.153 MB / 0.6982 GB, free: 11.11 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002306/0.941, allocations: 1.32 MB / 0.6995 GB, free: 9.793 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.007915/0.9489, allocations: 3.871 MB / 0.7032 GB, free: 5.961 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.601e-05/0.949, allocations: 52.56 kB / 0.7033 GB, free: 5.902 MB / 0.5606 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0007641/0.9497, allocations: 190.5 kB / 0.7035 GB, free: 5.715 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=178): time 3.075e-06/0.9497, allocations: 0 / 0.7035 GB, free: 5.715 MB / 0.5606 GB Notification: Performance of matching and sorting (n=254): time 0.3353/1.285, allocations: 38.64 MB / 0.7412 GB, free: 15.04 MB / 0.6075 GB Error: Internal error IndexReduction.pantelidesIndexReduction failed! System is structurally singular and cannot be handled because the number of unassigned equations is larger than the number of states. Use -d=bltdump to get more information. Error: Internal error Transformation Module PFPlusExt index Reduction Method Pantelides failed! Notification: Performance of inlineWhenForInitialization (initialization): time 0.01215/1.297, allocations: 3.034 MB / 0.7442 GB, free: 11.96 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003027/1.3, allocations: 1.841 MB / 0.746 GB, free: 10.08 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 0.0005318/1.301, allocations: 67.73 kB / 0.746 GB, free: 10.01 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009198/1.302, allocations: 1.085 MB / 0.7471 GB, free: 8.922 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.001236/1.303, allocations: 0.9166 MB / 0.748 GB, free: 8.02 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001583/1.304, allocations: 0.5917 MB / 0.7486 GB, free: 7.422 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001323/1.305, allocations: 305.1 kB / 0.7489 GB, free: 7.121 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00468/1.309, allocations: 2.352 MB / 0.7512 GB, free: 4.762 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005358/1.315, allocations: 2.946 MB / 0.754 GB, free: 1.574 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.2152/1.53, allocations: 5.36 MB / 0.7593 GB, free: 270.2 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.802e-05/1.53, allocations: 4.438 kB / 0.7593 GB, free: 270.2 MB / 0.6075 GB Notification: Performance of matching and sorting (n=362) (initialization): time 0.01294/1.543, allocations: 7.107 MB / 0.7662 GB, free: 267.8 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.809e-05/1.543, allocations: 11.75 kB / 0.7662 GB, free: 267.8 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.067e-05/1.543, allocations: 22.81 kB / 0.7662 GB, free: 267.8 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02562/1.568, allocations: 8.147 MB / 0.7742 GB, free: 266.9 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002345/1.571, allocations: 0.4886 MB / 0.7747 GB, free: 266.9 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009828/1.581, allocations: 6.816 MB / 0.7813 GB, free: 262.3 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00421/1.585, allocations: 407.4 kB / 0.7817 GB, free: 261.9 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000352/1.585, allocations: 171.8 kB / 0.7819 GB, free: 261.7 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.004206/1.589, allocations: 2.824 MB / 0.7846 GB, free: 258.9 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.003598/1.593, allocations: 2.894 MB / 0.7875 GB, free: 255.8 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.007815/1.601, allocations: 5.261 MB / 0.7926 GB, free: 250.3 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.217e-05/1.601, allocations: 4 kB / 0.7926 GB, free: 250.3 MB / 0.6075 GB Notification: Performance of matching and sorting (n=362) (initialization_lambda0): time 0.01137/1.612, allocations: 6.849 MB / 0.7993 GB, free: 243.6 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.942e-05/1.612, allocations: 16 kB / 0.7993 GB, free: 243.6 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.726e-05/1.612, allocations: 17.09 kB / 0.7993 GB, free: 243.6 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01265/1.625, allocations: 4.923 MB / 0.8041 GB, free: 238.7 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002801/1.628, allocations: 0.539 MB / 0.8047 GB, free: 238.2 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01022/1.638, allocations: 6.319 MB / 0.8108 GB, free: 231.8 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004693/1.643, allocations: 414.5 kB / 0.8112 GB, free: 231.4 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007098/1.643, allocations: 166 kB / 0.8114 GB, free: 231.3 MB / 0.6075 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 78 * 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 (212): * Single equations (assignments): 207 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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): 3 systems {(2,10), (1,5), (18,107)} Notification: Performance of prepare postOptimizeDAE: time 0.001073/1.644, allocations: 344.8 kB / 0.8117 GB, free: 231 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008145/1.645, allocations: 262.1 kB / 0.812 GB, free: 230.8 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01508/1.66, allocations: 7.468 MB / 0.8193 GB, free: 223.4 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01294/1.673, allocations: 6.733 MB / 0.8258 GB, free: 216.6 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.052e-05/1.673, allocations: 3.938 kB / 0.8258 GB, free: 216.6 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01255/1.686, allocations: 6.893 MB / 0.8326 GB, free: 209.6 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0243/1.71, allocations: 13.54 MB / 0.8458 GB, free: 196 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.108e-05/1.71, allocations: 4 kB / 0.8458 GB, free: 196 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002558/1.713, allocations: 455.4 kB / 0.8462 GB, free: 195.6 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01926/1.732, allocations: 6.19 MB / 0.8523 GB, free: 189.4 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005955/1.733, allocations: 115.6 kB / 0.8524 GB, free: 189.3 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01273/1.745, allocations: 14.1 MB / 0.8662 GB, free: 174.5 MB / 0.6075 GB Error: Internal error IndexReduction.pantelidesIndexReduction failed! System is structurally singular and cannot be handled because the number of unassigned equations is larger than the number of states. Use -d=bltdump to get more information. Error: Internal error Transformation Module PFPlusExt index Reduction Method Pantelides failed! Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.007071/1.752, allocations: 2.668 MB / 0.8688 GB, free: 171.8 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01595/1.768, allocations: 10.08 MB / 0.8786 GB, free: 161.6 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001712/1.77, allocations: 0.7947 MB / 0.8794 GB, free: 160.8 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007502/1.771, allocations: 67.92 kB / 0.8794 GB, free: 160.8 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00318/1.774, allocations: 275.6 kB / 0.8797 GB, free: 160.5 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004744/1.774, allocations: 229.9 kB / 0.8799 GB, free: 160.3 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003075/1.775, allocations: 119.9 kB / 0.88 GB, free: 160.2 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.001456/1.776, allocations: 1.264 MB / 0.8813 GB, free: 158.9 MB / 0.6075 GB Notification: Performance of sort global known variables: time 8e-08/1.776, allocations: 0 / 0.8813 GB, free: 158.9 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.007026/1.783, allocations: 3.137 MB / 0.8843 GB, free: 155.9 MB / 0.6075 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 10 ($STATESET1.x[6],$STATESET1.x[5],$STATESET1.x[4],$STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],pipe.mediums[1].p,pipe.mediums[1].T,pipe.mediums[2].p,pipe.mediums[2].T) * 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 (199): * Single equations (assignments): 187 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 5 systems {(1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 4 systems {(1,5), (1,9), (2,10), (14,48)} Notification: Performance of Backend phase and start with SimCode phase: time 0.02204/1.805, allocations: 12.33 MB / 0.8964 GB, free: 143.6 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.02194/1.827, allocations: 9 MB / 0.9052 GB, free: 134.6 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 9.177e-06/1.827, allocations: 0 / 0.9052 GB, free: 134.6 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.009186/1.836, allocations: 3.775 MB / 0.9089 GB, free: 130.7 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005577/1.842, allocations: 1.09 MB / 0.9099 GB, free: 129.6 MB / 0.6075 GB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:4733:9-4733:59:writable] Error: Internal error function createStateSetsSets failed. [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:822:5-822:146:writable] Error: Internal error function createSimCode failed [Transformation from optimised DAE to simulation code structure failed] " [Timeout remaining time 658] [Calling sys.exit(0), Time elapsed: 3.9111636279849336] Failed to read output from testmodel.py, exit status != 0: ['time', 'heater.mediums[1].h', 'heater.mediums[1].p', 'pipe.mediums[1].h', 'pipe.mediums[1].p', 'pipe.mediums[2].h', 'pipe.mediums[2].p', 'radiator.mediums[1].h', 'radiator.mediums[1].p', 'tank.level', 'tank.medium.h'] 1.8498383549740538 1.862371516 0.974430203 Calling exit ...