Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestFan_Pin.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.Examples.SimpleExamples.TestFan_Pin,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestFan_Pin") translateModel(ThermoSysPro.Examples.SimpleExamples.TestFan_Pin,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestFan_Pin") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.7349/0.7349, allocations: 150.8 MB / 166.1 MB, free: 15.41 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 1.407e-05/1.408e-05, allocations: 4 kB / 204.8 MB, free: 10.06 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1352/0.1353, allocations: 31.98 MB / 236.8 MB, free: 5.262 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.Examples.SimpleExamples.TestFan_Pin): time 1.411/1.547, allocations: 298 MB / 0.5222 GB, free: 9.082 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.1334/1.68, allocations: 148.6 MB / 0.6674 GB, free: 4.148 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003943/1.681, allocations: 15.94 kB / 0.6674 GB, free: 4.133 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.0003023/1.681, allocations: 138.8 kB / 0.6675 GB, free: 3.996 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.0007508/1.682, allocations: 444.4 kB / 0.668 GB, free: 3.559 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.002297/1.684, allocations: 1.305 MB / 0.6692 GB, free: 2.254 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.001746/1.686, allocations: 2.302 MB / 0.6715 GB, free: 15.94 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009859/1.687, allocations: 1.042 MB / 0.6725 GB, free: 14.86 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005667/1.687, allocations: 0.685 MB / 0.6732 GB, free: 14.17 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007628/1.688, allocations: 0.875 MB / 0.674 GB, free: 13.29 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.0001484/1.688, allocations: 112 kB / 0.6741 GB, free: 13.18 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001968/1.69, allocations: 1.353 MB / 0.6755 GB, free: 11.83 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0002626/1.69, allocations: 354.6 kB / 0.6758 GB, free: 11.48 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0006566/1.691, allocations: 0.88 MB / 0.6766 GB, free: 10.59 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.002281/1.693, allocations: 2.791 MB / 0.6794 GB, free: 7.789 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.226e-06/1.693, allocations: 0 / 0.6794 GB, free: 7.789 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.222e-06/1.693, allocations: 0 / 0.6794 GB, free: 7.789 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 1.704e-05/1.693, allocations: 0 / 0.6794 GB, free: 7.789 MB / 0.5606 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 507 * Number of variables: 507 Notification: Performance of Generate backend data structure: time 0.003132/1.697, allocations: 1.849 MB / 0.6812 GB, free: 5.883 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.074e-05/1.697, allocations: 8.031 kB / 0.6812 GB, free: 5.875 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002727/1.697, allocations: 218.7 kB / 0.6814 GB, free: 5.66 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008104/1.698, allocations: 0.7301 MB / 0.6821 GB, free: 4.887 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001463/1.698, allocations: 207.3 kB / 0.6823 GB, free: 4.672 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003838/1.698, allocations: 216 kB / 0.6825 GB, free: 4.461 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003143/1.701, allocations: 2.335 MB / 0.6848 GB, free: 1.965 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.424e-05/1.701, allocations: 3.938 kB / 0.6848 GB, free: 1.961 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001487/1.702, allocations: 88 kB / 0.6849 GB, free: 1.875 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.615e-05/1.702, allocations: 55.94 kB / 0.6849 GB, free: 1.82 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003035/1.705, allocations: 2.039 MB / 0.6869 GB, free: 15.78 MB / 0.5762 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.154/1.859, allocations: 14.67 MB / 0.7013 GB, free: 233.7 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001749/1.86, allocations: 1.073 MB / 0.7023 GB, free: 233.6 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001006/1.862, allocations: 0.795 MB / 0.7031 GB, free: 233.6 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004974/1.862, allocations: 0.489 MB / 0.7036 GB, free: 233.2 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001106/1.863, allocations: 0.7662 MB / 0.7043 GB, free: 233.2 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=127): time 3.687e-06/1.863, allocations: 0.5 kB / 0.7043 GB, free: 233.2 MB / 0.5762 GB Notification: Performance of matching and sorting (n=204): time 0.06342/1.927, allocations: 20.59 MB / 0.7244 GB, free: 231.1 MB / 0.5762 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.007595/1.934, allocations: 2.511 MB / 0.7269 GB, free: 230.3 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006445/1.935, allocations: 0.7197 MB / 0.7276 GB, free: 230.2 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 0.0001405/1.935, allocations: 59.02 kB / 0.7276 GB, free: 230.1 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.000344/1.935, allocations: 0.73 MB / 0.7283 GB, free: 229.7 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.000469/1.936, allocations: 0.6987 MB / 0.729 GB, free: 229.3 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002737/1.936, allocations: 215.9 kB / 0.7292 GB, free: 229.3 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 5.457e-05/1.936, allocations: 348.1 kB / 0.7296 GB, free: 229 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002681/1.939, allocations: 1.63 MB / 0.7311 GB, free: 228.9 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002874/1.942, allocations: 2.256 MB / 0.7334 GB, free: 227.5 MB / 0.5762 GB Notification: It was not possible to check the given initialization system for consistency symbolically, because the relevant equations are part of an algebraic loop. This is not supported yet. Notification: Performance of analyzeInitialSystem (initialization): time 0.03963/1.981, allocations: 12.05 MB / 0.7451 GB, free: 216.4 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.108e-05/1.981, allocations: 11.94 kB / 0.7451 GB, free: 216.4 MB / 0.5762 GB Notification: Performance of matching and sorting (n=305) (initialization): time 0.009021/1.99, allocations: 5.57 MB / 0.7506 GB, free: 210.8 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.505e-05/1.99, allocations: 12 kB / 0.7506 GB, free: 210.8 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.187e-05/1.991, allocations: 23.94 kB / 0.7506 GB, free: 210.8 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02882/2.019, allocations: 6.812 MB / 0.7573 GB, free: 204 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008951/2.02, allocations: 255.5 kB / 0.7575 GB, free: 203.7 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007816/2.028, allocations: 4.82 MB / 0.7622 GB, free: 198.9 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003365/2.031, allocations: 451.4 kB / 0.7626 GB, free: 198.4 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002326/2.032, allocations: 159.8 kB / 0.7628 GB, free: 198.3 MB / 0.5762 GB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: $DER.volume2S.P = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 84 * Number of states: 0 () * Number of discrete variables: 60 ($PRE.singularPressureLossFlueGases2.touvert,$whenCondition4,$PRE.singularPressureLossFlueGases2.tferme,$whenCondition3,$PRE.singularPressureLossFlueGases5.touvert,$whenCondition2,$PRE.singularPressureLossFlueGases5.tferme,$whenCondition1,staticFan1.commandeFan.signal,staticFan.commandeFan.signal,singularPressureLossFlueGases5.tferme,singularPressureLossFlueGases5.touvert,singularPressureLossFlueGases5.ouvert,$PRE.singularPressureLossFlueGases5.ouvert,singularPressureLossFlueGases2.tferme,singularPressureLossFlueGases2.touvert,singularPressureLossFlueGases2.ouvert,$PRE.singularPressureLossFlueGases2.ouvert,temperatureSensor1.C2.b,temperatureSensor1.C1.a,temperatureSensor.C2.b,temperatureSensor.C1.a,volume2S.Cs3.b,volume2S.Cs2.b,volume2S.Cs1.b,volume2S.Ce.a,mixerFlueGases2_1.Ce1.a,mixerFlueGases2_1.Cs.b,mixerFlueGases2_1.Ce2.a,singularPressureLossFlueGases5.C2.b,singularPressureLossFlueGases5.C1.a,staticFan1.C2.b,staticFan1.C1.a,singularPressureLossFlueGases4.C2.b,singularPressureLossFlueGases4.C1.a,singularPressureLossFlueGases3.C2.b,singularPressureLossFlueGases3.C1.a,dynamicExchanger1.Ce3.a,dynamicExchanger1.Ce2.a,dynamicExchanger1.Cs.b,dynamicExchanger1.Ce1.a,singularPressureLossFlueGases2.C2.b,singularPressureLossFlueGases2.C1.a,staticFan.C2.b,staticFan.C1.a,singularPressureLossFlueGases1.C2.b,singularPressureLossFlueGases1.C1.a,singularPressureLossFlueGases.C2.b,singularPressureLossFlueGases.C1.a,dynamicExchanger.Ce2.a,dynamicExchanger.Cs1.b,dynamicExchanger.Cs2.b,dynamicExchanger.Ce1.a,Puits_Fumees.C.a,Source_Fumees.C.b,volume2S.Cs3.a,dynamicExchanger1.Ce3.b,dynamicExchanger1.Ce2.b,dynamicExchanger.Cs2.a,dynamicExchanger.Ce2.b) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (149): * Single equations (assignments): 145 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems 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 {(51,94)} Notification: Performance of prepare postOptimizeDAE: time 0.0006906/2.032, allocations: 401.8 kB / 0.7632 GB, free: 197.9 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002219/2.033, allocations: 142.3 kB / 0.7633 GB, free: 197.7 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008584/2.041, allocations: 4.889 MB / 0.7681 GB, free: 192.8 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.00815/2.049, allocations: 4.678 MB / 0.7727 GB, free: 188.1 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.736e-06/2.049, allocations: 0 / 0.7727 GB, free: 188.1 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.753e-05/2.049, allocations: 11.95 kB / 0.7727 GB, free: 188.1 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01402/2.063, allocations: 10.01 MB / 0.7824 GB, free: 178 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.043e-06/2.063, allocations: 0 / 0.7824 GB, free: 178 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009227/2.064, allocations: 240.9 kB / 0.7827 GB, free: 177.8 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02078/2.085, allocations: 5.2 MB / 0.7877 GB, free: 172.6 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001847/2.085, allocations: 87.88 kB / 0.7878 GB, free: 172.5 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01092/2.096, allocations: 8.448 MB / 0.7961 GB, free: 163.8 MB / 0.5762 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.00628/2.103, allocations: 2.242 MB / 0.7983 GB, free: 161.5 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01215/2.115, allocations: 7.332 MB / 0.8054 GB, free: 154.2 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007207/2.116, allocations: 0.489 MB / 0.8059 GB, free: 153.6 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002211/2.116, allocations: 40 kB / 0.8059 GB, free: 153.6 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002271/2.118, allocations: 311.4 kB / 0.8062 GB, free: 153.3 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002951/2.118, allocations: 165.7 kB / 0.8064 GB, free: 153.1 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001501/2.119, allocations: 95.89 kB / 0.8065 GB, free: 153 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.000377/2.119, allocations: 443 kB / 0.8069 GB, free: 152.6 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.6e-07/2.119, allocations: 0 / 0.8069 GB, free: 152.6 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.002191/2.121, allocations: 1.114 MB / 0.808 GB, free: 151.5 MB / 0.5762 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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: 10 ($whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,singularPressureLossFlueGases2.ouvert,singularPressureLossFlueGases2.touvert,singularPressureLossFlueGases2.tferme,singularPressureLossFlueGases5.ouvert,singularPressureLossFlueGases5.touvert,singularPressureLossFlueGases5.tferme) * 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 (88): * Single equations (assignments): 80 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 2 systems {1, 1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(11,19), (11,19), (29,43)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001677/2.123, allocations: 0.6667 MB / 0.8087 GB, free: 150.9 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.00812/2.131, allocations: 4.631 MB / 0.8132 GB, free: 146.3 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/2.131, allocations: 4.062 kB / 0.8132 GB, free: 146.3 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.00674/2.138, allocations: 3.182 MB / 0.8163 GB, free: 143.1 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001273/2.139, allocations: 218.4 kB / 0.8165 GB, free: 142.9 MB / 0.5762 GB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:4560:9-4560:59:writable] Error: Internal error function createStateSetsSets failed. [/var/lib/jenkins/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]