Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestStaticFan.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo", uses=false) Using package ThermoSysPro with version 4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo) Running command: translateModel(ThermoSysPro.Fluid.Examples.SimpleExamples.TestStaticFan,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestStaticFan") translateModel(ThermoSysPro.Fluid.Examples.SimpleExamples.TestStaticFan,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestStaticFan") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.7009/0.7009, allocations: 150.8 MB / 166.7 MB, free: 15.63 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 1.225e-05/1.226e-05, allocations: 4 kB / 205.4 MB, free: 10.21 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1213/0.1213, allocations: 31.99 MB / 237.4 MB, free: 5.41 MB / 190.1 MB Notification: Automatically loaded package Complex 4.0.0 due to uses annotation. Notification: Automatically loaded package ModelicaServices 4.0.0 due to uses annotation. Notification: Automatically loaded package Modelica 4.0.0 due to usage. Notification: Performance of NFInst.instantiate(ThermoSysPro.Fluid.Examples.SimpleExamples.TestStaticFan): time 1.347/1.468, allocations: 301.3 MB / 0.526 GB, free: 5.781 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.3994/1.868, allocations: 190.4 MB / 0.712 GB, free: 3.559 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001328/1.869, allocations: 36.94 kB / 0.712 GB, free: 3.559 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0004406/1.869, allocations: 227.3 kB / 0.7122 GB, free: 3.559 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.001416/1.871, allocations: 0.7532 MB / 0.7129 GB, free: 3.555 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.0217/1.893, allocations: 10.21 MB / 0.7229 GB, free: 3.309 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.002661/1.895, allocations: 3.458 MB / 0.7263 GB, free: 3.301 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001125/1.896, allocations: 1.495 MB / 0.7278 GB, free: 3.039 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0008778/1.897, allocations: 1.103 MB / 0.7288 GB, free: 3.035 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00086/1.898, allocations: 1.267 MB / 0.7301 GB, free: 3.035 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.000173/1.898, allocations: 147.2 kB / 0.7302 GB, free: 3.035 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0262/1.925, allocations: 20.34 MB / 0.7501 GB, free: 0.7031 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0005165/1.925, allocations: 0.5243 MB / 0.7506 GB, free: 0.5977 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.001399/1.926, allocations: 1.372 MB / 0.7519 GB, free: 488 kB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.01143/1.938, allocations: 9.098 MB / 0.7608 GB, free: 12.8 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 3.607e-06/1.938, allocations: 0 / 0.7608 GB, free: 12.8 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.433e-06/1.938, allocations: 0 / 0.7608 GB, free: 12.8 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 2.425e-05/1.938, allocations: 0 / 0.7608 GB, free: 12.8 MB / 0.5919 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 785 * Number of variables: 785 Notification: Performance of Generate backend data structure: time 0.006575/1.945, allocations: 3.734 MB / 0.7645 GB, free: 10.51 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.217e-05/1.945, allocations: 14.94 kB / 0.7645 GB, free: 10.51 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003565/1.945, allocations: 345.6 kB / 0.7648 GB, free: 10.35 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001224/1.946, allocations: 1.136 MB / 0.7659 GB, free: 9.738 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002035/1.946, allocations: 289.8 kB / 0.7662 GB, free: 9.668 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003687/1.947, allocations: 317.8 kB / 0.7665 GB, free: 9.656 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00403/1.951, allocations: 3.407 MB / 0.7698 GB, free: 8.281 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.015e-05/1.951, allocations: 21.69 kB / 0.7698 GB, free: 8.277 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001803/1.951, allocations: 139.1 kB / 0.77 GB, free: 8.273 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.016e-05/1.951, allocations: 79.98 kB / 0.77 GB, free: 8.273 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003957/1.955, allocations: 2.541 MB / 0.7725 GB, free: 7.938 MB / 0.5919 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.01547/1.971, allocations: 23.89 MB / 0.7959 GB, free: 0.8633 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001964/1.973, allocations: 1.31 MB / 0.7971 GB, free: 15.48 MB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001098/1.974, allocations: 0.7109 MB / 0.7978 GB, free: 14.74 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2855/2.259, allocations: 175.3 MB / 0.9691 GB, free: 9.926 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001468/2.261, allocations: 0.882 MB / 0.9699 GB, free: 9.004 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=127): time 2.905e-06/2.261, allocations: 4 kB / 0.9699 GB, free: 9 MB / 0.8106 GB Notification: Performance of matching and sorting (n=204): time 0.2127/2.473, allocations: 22.44 MB / 0.9918 GB, free: 451.9 MB / 0.8106 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.006509/2.48, allocations: 2.487 MB / 0.9943 GB, free: 451 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001341/2.481, allocations: 1.39 MB / 0.9956 GB, free: 450.7 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 0.0001444/2.481, allocations: 60.27 kB / 0.9957 GB, free: 450.7 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006071/2.482, allocations: 1.333 MB / 0.997 GB, free: 449.9 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004709/2.483, allocations: 0.7054 MB / 0.9977 GB, free: 449.5 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003153/2.483, allocations: 304 kB / 0.998 GB, free: 449.5 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 2.842e-05/2.483, allocations: 306 kB / 0.9983 GB, free: 449.2 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002899/2.486, allocations: 1.726 MB / 0.9999 GB, free: 449.2 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003246/2.489, allocations: 2.922 MB / 1.003 GB, free: 447.7 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006083/2.495, allocations: 4.641 MB / 1.007 GB, free: 446.1 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.488e-05/2.495, allocations: 11.45 kB / 1.007 GB, free: 446.1 MB / 0.8106 GB Notification: Performance of matching and sorting (n=404) (initialization): time 0.009286/2.504, allocations: 5.975 MB / 1.013 GB, free: 445.6 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 2.605e-05/2.504, allocations: 25.98 kB / 1.013 GB, free: 445.6 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.119e-05/2.505, allocations: 39.56 kB / 1.013 GB, free: 445.6 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02447/2.529, allocations: 5.868 MB / 1.019 GB, free: 444.8 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001155/2.53, allocations: 459.5 kB / 1.019 GB, free: 444.7 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007212/2.537, allocations: 4.024 MB / 1.023 GB, free: 443 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004443/2.542, allocations: 0.6466 MB / 1.024 GB, free: 442.9 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000236/2.542, allocations: 209.1 kB / 1.024 GB, free: 442.8 MB / 0.8106 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 177 * Number of states: 0 () * Number of discrete variables: 85 ($PRE.singularPressureLossFlueGases2.touvert,$whenCondition4,$PRE.singularPressureLossFlueGases2.tferme,$whenCondition3,$PRE.singularPressureLossFlueGases5.touvert,$whenCondition2,$PRE.singularPressureLossFlueGases5.tferme,$whenCondition1,temperatureSensor1.C1.diff_on_2,singularPressureLossFlueGases5.C2.diff_on_1,temperatureSensor.C1.diff_on_2,singularPressureLossFlueGases2.C2.diff_on_1,dynamicExchanger1.Cs1.ftype,dynamicExchanger.Cs1.ftype,volume2S.Cs3.ftype,volume2S.Cs2.ftype,volume2S.Cs1.ftype,Source_Fumees.C.ftype,volume2S.fluids[1],mixerFlueGases2_1.Cs.ftype,mixerFlueGases2_1.fluids[1],staticFan1.commandeFan.signal,dynamicExchanger1.Cs2.ftype,dynamicExchanger1.Ce2.ftype,dynamicExchanger1.fluids[1],staticFan.commandeFan.signal,dynamicExchanger.Cs2.ftype,dynamicExchanger.Ce2.ftype,dynamicExchanger.fluids[1],staticFan.fluid,staticFan1.fluid,Puits_Fumees.fluid,singularPressureLossFlueGases.fluid,singularPressureLossFlueGases1.fluid,singularPressureLossFlueGases2.fluid,singularPressureLossFlueGases3.fluid,singularPressureLossFlueGases4.fluid,singularPressureLossFlueGases5.fluid,temperatureSensor.fluid,temperatureSensor1.fluid,singularPressureLossFlueGases5.tferme,singularPressureLossFlueGases5.touvert,singularPressureLossFlueGases5.ouvert,$PRE.singularPressureLossFlueGases5.ouvert,singularPressureLossFlueGases2.tferme,singularPressureLossFlueGases2.touvert,singularPressureLossFlueGases2.ouvert,$PRE.singularPressureLossFlueGases2.ouvert,volume2S.fluid1,mixerFlueGases2_1.fluid1,dynamicExchanger1.fluid1,dynamicExchanger.fluid1,Source_Fumees.fluid1,mixerFlueGases2_1.Ce2.diff_on_2,staticFan1.C2.diff_on_2,singularPressureLossFlueGases3.C2.diff_on_2,dynamicExchanger1.Cs1.diff_on_1,singularPressureLossFlueGases3.C2.diff_on_1,staticFan1.C2.diff_on_1,mixerFlueGases2_1.Ce1.diff_on_2,staticFan.C2.diff_on_2,singularPressureLossFlueGases.C2.diff_on_2,dynamicExchanger.Cs1.diff_on_1,singularPressureLossFlueGases.C2.diff_on_1,staticFan.C2.diff_on_1,volume2S.Cs3.diff_on_1,volume2S.Cs2.diff_on_1,singularPressureLossFlueGases4.C2.diff_on_1,volume2S.Cs1.diff_on_1,singularPressureLossFlueGases1.C2.diff_on_1,volume2S.Ce.diff_on_2,volume2S.Cs3.diff_on_2,mixerFlueGases2_1.Cs.diff_on_1,dynamicExchanger1.Ce1.diff_on_2,volume2S.Cs2.diff_on_2,dynamicExchanger1.Cs2.diff_on_1,dynamicExchanger1.Ce2.diff_on_2,dynamicExchanger1.Cs2.diff_on_2,dynamicExchanger1.Ce2.diff_on_1,dynamicExchanger.Ce1.diff_on_2,volume2S.Cs1.diff_on_2,dynamicExchanger.Cs2.diff_on_1,dynamicExchanger.Ce2.diff_on_2,dynamicExchanger.Cs2.diff_on_2,dynamicExchanger.Ce2.diff_on_1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (253): * Single equations (assignments): 250 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(49,91)} Notification: Performance of prepare postOptimizeDAE: time 0.0008856/2.543, allocations: 0.568 MB / 1.025 GB, free: 442.4 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002417/2.543, allocations: 208.3 kB / 1.025 GB, free: 442.3 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007961/2.551, allocations: 4.668 MB / 1.029 GB, free: 439.9 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.007865/2.559, allocations: 4.528 MB / 1.034 GB, free: 436 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.446e-06/2.559, allocations: 7.938 kB / 1.034 GB, free: 435.9 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.772e-05/2.559, allocations: 17.41 kB / 1.034 GB, free: 435.9 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01487/2.574, allocations: 11.11 MB / 1.045 GB, free: 424.9 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.515e-06/2.574, allocations: 4 kB / 1.045 GB, free: 424.9 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008478/2.575, allocations: 236 kB / 1.045 GB, free: 424.7 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01934/2.594, allocations: 5.01 MB / 1.05 GB, free: 419.7 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001827/2.594, allocations: 99.86 kB / 1.05 GB, free: 419.6 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009206/2.604, allocations: 5.293 MB / 1.055 GB, free: 414.3 MB / 0.8106 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.005239/2.609, allocations: 2.003 MB / 1.057 GB, free: 412.3 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01412/2.623, allocations: 8.186 MB / 1.065 GB, free: 404.1 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009753/2.624, allocations: 0.5958 MB / 1.066 GB, free: 403.5 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002487/2.624, allocations: 52 kB / 1.066 GB, free: 403.4 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002824/2.627, allocations: 415.4 kB / 1.066 GB, free: 403 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000305/2.627, allocations: 188.6 kB / 1.066 GB, free: 402.8 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001455/2.628, allocations: 99.88 kB / 1.066 GB, free: 402.7 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0007683/2.628, allocations: 0.8015 MB / 1.067 GB, free: 401.9 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.11e-07/2.628, allocations: 0 / 1.067 GB, free: 401.9 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.006887/2.635, allocations: 3.527 MB / 1.071 GB, free: 398.7 MB / 0.8106 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 7 ($STATESET1.x[7],$STATESET1.x[6],$STATESET1.x[5],$STATESET1.x[4],$STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1]) * Number of discrete variables: 14 ($whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,singularPressureLossFlueGases2.ouvert,singularPressureLossFlueGases2.touvert,singularPressureLossFlueGases2.tferme,singularPressureLossFlueGases5.ouvert,singularPressureLossFlueGases5.touvert,singularPressureLossFlueGases5.tferme,singularPressureLossFlueGases2.C2.diff_on_1,temperatureSensor.C1.diff_on_2,singularPressureLossFlueGases5.C2.diff_on_1,temperatureSensor1.C1.diff_on_2) * Number of discrete states: 4 (singularPressureLossFlueGases2.touvert,singularPressureLossFlueGases2.tferme,singularPressureLossFlueGases5.touvert,singularPressureLossFlueGases5.tferme) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (89): * Single equations (assignments): 85 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(23,38), (28,44)} Notification: Performance of Backend phase and start with SimCode phase: time 0.007997/2.643, allocations: 3.457 MB / 1.074 GB, free: 395.7 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.008627/2.652, allocations: 4.877 MB / 1.079 GB, free: 390.9 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 3.597e-06/2.652, allocations: 0 / 1.079 GB, free: 390.9 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.00644/2.658, allocations: 3.127 MB / 1.082 GB, free: 387.7 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002546/2.661, allocations: 428.5 kB / 1.082 GB, free: 387.3 MB / 0.8106 GB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:4560:9-4560:59:writable] Error: Internal error function createStateSetsSets failed. [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:764:5-764:146:writable] Error: Internal error function createSimCode failed [Transformation from optimised DAE to simulation code structure failed]