Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Fluid.Examples.HeatingSystem.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001648/0.001648, allocations: 117 kB / 18.49 MB, free: 4.566 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001919/0.001919, allocations: 216.7 kB / 21.46 MB, free: 1.613 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.462/1.462, allocations: 230.4 MB / 254.7 MB, free: 14.86 MB / 206.1 MB " [Timeout remaining time 178] 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(Modelica.Fluid.Examples.HeatingSystem,fileNamePrefix="Modelica_trunk_Modelica_Fluid_Examples_HeatingSystem",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.HeatingSystem,fileNamePrefix="Modelica_trunk_Modelica_Fluid_Examples_HeatingSystem",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001818/0.001818, allocations: 55.91 kB / 373.7 MB, free: 10.12 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.105/0.1068, allocations: 53.37 MB / 427 MB, free: 4.648 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.HeatingSystem): time 0.2929/0.3997, allocations: 90.88 MB / 0.5058 GB, free: 5.836 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.03326/0.4329, allocations: 21.42 MB / 0.5267 GB, free: 376 kB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003138/0.436, allocations: 122.9 kB / 0.5268 GB, free: 252 kB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002693/0.4387, allocations: 0.9628 MB / 0.5278 GB, free: 15.28 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01005/0.4488, allocations: 3.795 MB / 0.5315 GB, free: 11.46 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01409/0.4629, allocations: 5.673 MB / 0.537 GB, free: 5.797 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.01049/0.4734, allocations: 7.081 MB / 0.5439 GB, free: 14.7 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003431/0.4768, allocations: 1.669 MB / 0.5455 GB, free: 13 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1814/0.6582, allocations: 75.21 MB / 0.619 GB, free: 0.9453 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.3322/0.9904, allocations: 32.2 MB / 0.6504 GB, free: 67.92 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 0.001023/0.9915, allocations: 246.5 kB / 0.6507 GB, free: 67.92 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01232/1.004, allocations: 6.159 MB / 0.6567 GB, free: 66.93 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.001924/1.006, allocations: 1.128 MB / 0.6578 GB, free: 66.93 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.002179/1.008, allocations: 1.488 MB / 0.6592 GB, free: 66.93 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.01319/1.021, allocations: 5.556 MB / 0.6647 GB, free: 66.29 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 6.662e-06/1.021, allocations: 0 / 0.6647 GB, free: 66.29 MB / 0.5137 GB Notification: Performance of FrontEnd: time 2.334e-06/1.021, allocations: 4 kB / 0.6647 GB, free: 66.29 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 0.0001594/1.021, allocations: 0 / 0.6647 GB, free: 66.29 MB / 0.5137 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.01004/1.031, allocations: 3.596 MB / 0.6682 GB, free: 64.66 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 4.41e-05/1.031, allocations: 11.78 kB / 0.6682 GB, free: 64.66 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 7.637e-05/1.031, allocations: 60.36 kB / 0.6683 GB, free: 64.65 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000501/1.032, allocations: 351.2 kB / 0.6686 GB, free: 64.58 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009846/1.033, allocations: 325.9 kB / 0.6689 GB, free: 64.43 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002615/1.036, allocations: 1.686 MB / 0.6705 GB, free: 63.74 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001496/1.036, allocations: 220.8 kB / 0.6708 GB, free: 63.67 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003127/1.036, allocations: 208.2 kB / 0.671 GB, free: 63.66 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004424/1.04, allocations: 3.305 MB / 0.6742 GB, free: 62.05 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.344e-05/1.04, allocations: 7 kB / 0.6742 GB, free: 62.05 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002214/1.041, allocations: 84.53 kB / 0.6743 GB, free: 62.03 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002417/1.041, allocations: 254 kB / 0.6745 GB, free: 61.81 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004276/1.045, allocations: 3.125 MB / 0.6776 GB, free: 59.73 MB / 0.5137 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.01487/1.06, allocations: 13.69 MB / 0.6909 GB, free: 47.77 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003472/1.064, allocations: 2.16 MB / 0.693 GB, free: 46.38 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001769/1.065, allocations: 1.318 MB / 0.6943 GB, free: 45.5 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.007247/1.073, allocations: 5.74 MB / 0.6999 GB, free: 40.43 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.439e-05/1.073, allocations: 56.12 kB / 0.7 GB, free: 40.38 MB / 0.5137 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0008108/1.073, allocations: 184.1 kB / 0.7002 GB, free: 40.23 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=178): time 3.446e-06/1.073, allocations: 4 kB / 0.7002 GB, free: 40.22 MB / 0.5137 GB Notification: Performance of matching and sorting (n=254): time 0.3118/1.385, allocations: 39.17 MB / 0.7384 GB, free: 1.258 MB / 0.5137 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.01186/1.397, allocations: 3.033 MB / 0.7414 GB, free: 14.2 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002997/1.4, allocations: 1.845 MB / 0.7432 GB, free: 12.31 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.000646/1.401, allocations: 69.36 kB / 0.7432 GB, free: 12.24 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009574/1.402, allocations: 1.086 MB / 0.7443 GB, free: 11.15 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001534/1.403, allocations: 0.9137 MB / 0.7452 GB, free: 10.25 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001297/1.404, allocations: 0.5917 MB / 0.7458 GB, free: 9.648 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001324/1.405, allocations: 309.1 kB / 0.7461 GB, free: 9.344 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00482/1.409, allocations: 2.351 MB / 0.7484 GB, free: 6.988 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005373/1.415, allocations: 2.943 MB / 0.7512 GB, free: 3.809 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01107/1.426, allocations: 5.367 MB / 0.7565 GB, free: 14.24 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.49e-05/1.426, allocations: 4 kB / 0.7565 GB, free: 14.24 MB / 0.545 GB Notification: Performance of matching and sorting (n=362) (initialization): time 0.01624/1.442, allocations: 7.095 MB / 0.7634 GB, free: 7.191 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 4.165e-05/1.442, allocations: 12 kB / 0.7634 GB, free: 7.18 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.922e-05/1.442, allocations: 20.09 kB / 0.7634 GB, free: 7.16 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0308/1.473, allocations: 8.148 MB / 0.7714 GB, free: 15.02 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00286/1.476, allocations: 0.4924 MB / 0.7719 GB, free: 14.55 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0138/1.49, allocations: 6.805 MB / 0.7785 GB, free: 7.695 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005192/1.495, allocations: 420.1 kB / 0.7789 GB, free: 7.285 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007176/1.496, allocations: 171.8 kB / 0.7791 GB, free: 7.117 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.006352/1.502, allocations: 2.827 MB / 0.7819 GB, free: 4.285 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.005661/1.508, allocations: 2.896 MB / 0.7847 GB, free: 1.148 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.01164/1.519, allocations: 5.253 MB / 0.7898 GB, free: 11.7 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.454e-05/1.519, allocations: 8 kB / 0.7898 GB, free: 11.69 MB / 0.5762 GB Notification: Performance of matching and sorting (n=362) (initialization_lambda0): time 0.01611/1.535, allocations: 6.846 MB / 0.7965 GB, free: 4.891 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 3.211e-05/1.535, allocations: 12 kB / 0.7965 GB, free: 4.879 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.713e-05/1.535, allocations: 19.94 kB / 0.7965 GB, free: 4.859 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01516/1.551, allocations: 4.939 MB / 0.8014 GB, free: 15.93 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003038/1.554, allocations: 0.5293 MB / 0.8019 GB, free: 15.42 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01254/1.566, allocations: 6.328 MB / 0.8081 GB, free: 9.051 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005082/1.571, allocations: 407.5 kB / 0.8084 GB, free: 8.652 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006001/1.572, allocations: 167.9 kB / 0.8086 GB, free: 8.488 MB / 0.5919 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.000864/1.573, allocations: 332.9 kB / 0.8089 GB, free: 8.184 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007277/1.573, allocations: 266.3 kB / 0.8092 GB, free: 7.922 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01795/1.591, allocations: 7.463 MB / 0.8165 GB, free: 420 kB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01714/1.609, allocations: 6.711 MB / 0.823 GB, free: 9.645 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.024e-05/1.609, allocations: 4 kB / 0.823 GB, free: 9.641 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01669/1.625, allocations: 6.879 MB / 0.8297 GB, free: 2.648 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03264/1.658, allocations: 13.58 MB / 0.843 GB, free: 5.062 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.297e-05/1.658, allocations: 0 / 0.843 GB, free: 5.062 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002833/1.661, allocations: 458.3 kB / 0.8434 GB, free: 4.633 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.2211/1.882, allocations: 6.178 MB / 0.8495 GB, free: 272.5 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008466/1.883, allocations: 107 kB / 0.8496 GB, free: 272.5 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01649/1.899, allocations: 14.61 MB / 0.8638 GB, free: 263.3 MB / 0.6231 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.008464/1.908, allocations: 2.66 MB / 0.8664 GB, free: 262.5 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02053/1.928, allocations: 10.06 MB / 0.8763 GB, free: 259 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002083/1.93, allocations: 0.8661 MB / 0.8771 GB, free: 258.7 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005689/1.931, allocations: 59.5 kB / 0.8772 GB, free: 258.7 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003285/1.934, allocations: 275.7 kB / 0.8774 GB, free: 258.6 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005741/1.935, allocations: 225 kB / 0.8776 GB, free: 258.6 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003173/1.935, allocations: 117.1 kB / 0.8778 GB, free: 258.6 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.001758/1.937, allocations: 1.264 MB / 0.879 GB, free: 258.1 MB / 0.6231 GB Notification: Performance of sort global known variables: time 8e-08/1.937, allocations: 3.609 kB / 0.879 GB, free: 258.1 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.008857/1.946, allocations: 3.141 MB / 0.8821 GB, free: 257.9 MB / 0.6231 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.02546/1.971, allocations: 12.32 MB / 0.8941 GB, free: 253.5 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.0228/1.994, allocations: 8.982 MB / 0.9029 GB, free: 249.8 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 8.045e-06/1.994, allocations: 0 / 0.9029 GB, free: 249.8 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.009552/2.004, allocations: 3.784 MB / 0.9066 GB, free: 246.7 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005059/2.009, allocations: 1.097 MB / 0.9076 GB, free: 245.9 MB / 0.6231 GB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:4705:9-4705:59:writable] Error: Internal error function createStateSetsSets failed. [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:818:5-818: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: 4.201362190011423] 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'] 2.0163096850155853 2.025713848 1.002148575 Calling exit ...