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.6856/0.6856, allocations: 150.8 MB / 166.7 MB, free: 15.72 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 1.352e-05/1.354e-05, allocations: 4 kB / 205.4 MB, free: 10.19 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1174/0.1174, allocations: 31.98 MB / 237.4 MB, free: 5.395 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.297/1.414, allocations: 298 MB / 0.5228 GB, free: 9.16 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.1243/1.538, allocations: 148.6 MB / 0.668 GB, free: 4.227 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006074/1.539, allocations: 12 kB / 0.668 GB, free: 4.215 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.0003829/1.539, allocations: 150.8 kB / 0.6681 GB, free: 4.066 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.0009785/1.54, allocations: 440.4 kB / 0.6686 GB, free: 3.633 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.002418/1.543, allocations: 1.3 MB / 0.6698 GB, free: 2.332 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.001899/1.545, allocations: 2.301 MB / 0.6721 GB, free: 24 kB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009818/1.546, allocations: 1.043 MB / 0.6731 GB, free: 14.94 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005507/1.546, allocations: 0.6928 MB / 0.6738 GB, free: 14.24 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007087/1.547, allocations: 0.8711 MB / 0.6746 GB, free: 13.37 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.0001302/1.547, allocations: 112 kB / 0.6747 GB, free: 13.26 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001775/1.549, allocations: 1.353 MB / 0.6761 GB, free: 11.9 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0002491/1.549, allocations: 354.6 kB / 0.6764 GB, free: 11.55 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0006053/1.55, allocations: 0.88 MB / 0.6773 GB, free: 10.66 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.001518/1.551, allocations: 2.1 MB / 0.6793 GB, free: 8.559 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 2.845e-06/1.551, allocations: 0 / 0.6793 GB, free: 8.559 MB / 0.5606 GB Notification: Performance of FrontEnd: time 2.685e-06/1.551, allocations: 0 / 0.6793 GB, free: 8.559 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 1.422e-05/1.551, allocations: 7.938 kB / 0.6793 GB, free: 8.551 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.002937/1.554, allocations: 1.845 MB / 0.6811 GB, free: 6.648 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 2.926e-05/1.554, allocations: 12.03 kB / 0.6811 GB, free: 6.637 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002516/1.555, allocations: 210.7 kB / 0.6813 GB, free: 6.43 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007754/1.555, allocations: 0.7262 MB / 0.682 GB, free: 5.66 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001383/1.556, allocations: 203.4 kB / 0.6822 GB, free: 5.449 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003655/1.556, allocations: 220 kB / 0.6824 GB, free: 5.234 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003016/1.559, allocations: 2.335 MB / 0.6847 GB, free: 2.738 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.266e-05/1.559, allocations: 7.938 kB / 0.6847 GB, free: 2.73 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000144/1.559, allocations: 84 kB / 0.6848 GB, free: 2.648 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.4e-05/1.559, allocations: 52 kB / 0.6849 GB, free: 2.598 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002917/1.562, allocations: 2.035 MB / 0.6868 GB, free: 0.5586 MB / 0.5606 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.01019/1.572, allocations: 14.69 MB / 0.7012 GB, free: 292 kB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.2227/1.795, allocations: 1.066 MB / 0.7022 GB, free: 31.41 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001129/1.796, allocations: 0.7929 MB / 0.703 GB, free: 31.4 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005177/1.797, allocations: 0.4906 MB / 0.7035 GB, free: 31.03 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001205/1.798, allocations: 0.7642 MB / 0.7042 GB, free: 30.96 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=127): time 3.096e-06/1.798, allocations: 0.8438 kB / 0.7042 GB, free: 30.96 MB / 0.5762 GB Notification: Performance of matching and sorting (n=204): time 0.06012/1.858, allocations: 20.59 MB / 0.7243 GB, free: 28.24 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.007119/1.865, allocations: 2.518 MB / 0.7268 GB, free: 27.47 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005916/1.866, allocations: 0.7138 MB / 0.7275 GB, free: 27.3 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 0.0001232/1.866, allocations: 63.78 kB / 0.7276 GB, free: 27.27 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003107/1.866, allocations: 0.7317 MB / 0.7283 GB, free: 26.85 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004141/1.867, allocations: 0.6934 MB / 0.729 GB, free: 26.4 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002457/1.867, allocations: 217.8 kB / 0.7292 GB, free: 26.39 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 4.898e-05/1.867, allocations: 346 kB / 0.7295 GB, free: 26.08 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00252/1.869, allocations: 1.628 MB / 0.7311 GB, free: 26.06 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002684/1.872, allocations: 2.258 MB / 0.7333 GB, free: 25.32 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.03808/1.91, allocations: 12.05 MB / 0.7451 GB, free: 23.92 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.137e-06/1.91, allocations: 6.406 kB / 0.7451 GB, free: 23.92 MB / 0.5762 GB Notification: Performance of matching and sorting (n=305) (initialization): time 0.008737/1.919, allocations: 5.566 MB / 0.7505 GB, free: 23 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.969e-05/1.919, allocations: 12 kB / 0.7505 GB, free: 22.99 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.247e-05/1.919, allocations: 20 kB / 0.7505 GB, free: 22.97 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02738/1.946, allocations: 6.806 MB / 0.7572 GB, free: 18.1 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007632/1.947, allocations: 275.2 kB / 0.7574 GB, free: 17.86 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007396/1.955, allocations: 4.809 MB / 0.7621 GB, free: 14.16 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003164/1.958, allocations: 461 kB / 0.7626 GB, free: 13.75 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002059/1.958, allocations: 155.8 kB / 0.7627 GB, free: 13.61 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.0006508/1.959, allocations: 406.1 kB / 0.7631 GB, free: 13.37 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001897/1.959, allocations: 141.1 kB / 0.7632 GB, free: 13.23 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008267/1.967, allocations: 4.905 MB / 0.768 GB, free: 9.93 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.007842/1.975, allocations: 4.673 MB / 0.7726 GB, free: 5.242 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.415e-06/1.975, allocations: 0 / 0.7726 GB, free: 5.242 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.517e-05/1.975, allocations: 7.969 kB / 0.7726 GB, free: 5.234 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01447/1.99, allocations: 10 MB / 0.7824 GB, free: 11.14 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.703e-06/1.99, allocations: 4 kB / 0.7824 GB, free: 11.14 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009129/1.99, allocations: 226.5 kB / 0.7826 GB, free: 10.92 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02143/2.012, allocations: 5.199 MB / 0.7877 GB, free: 5.73 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000161/2.012, allocations: 87.89 kB / 0.7877 GB, free: 5.645 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01225/2.024, allocations: 8.458 MB / 0.796 GB, free: 12.95 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.006484/2.031, allocations: 2.243 MB / 0.7982 GB, free: 10.7 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01312/2.044, allocations: 7.341 MB / 0.8054 GB, free: 3.332 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007083/2.045, allocations: 499.1 kB / 0.8058 GB, free: 2.824 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002091/2.045, allocations: 43.98 kB / 0.8059 GB, free: 2.781 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00224/2.047, allocations: 303.5 kB / 0.8062 GB, free: 2.484 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002889/2.047, allocations: 165.7 kB / 0.8063 GB, free: 2.324 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000163/2.048, allocations: 103.7 kB / 0.8064 GB, free: 2.227 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0004133/2.048, allocations: 439 kB / 0.8069 GB, free: 1.797 MB / 0.6075 GB Notification: Performance of sort global known variables: time 2e-07/2.048, allocations: 0 / 0.8069 GB, free: 1.797 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.002172/2.05, allocations: 1.116 MB / 0.8079 GB, free: 0.7148 MB / 0.6075 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.00167/2.052, allocations: 0.6672 MB / 0.8086 GB, free: 116 kB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.008488/2.06, allocations: 4.621 MB / 0.8131 GB, free: 11.55 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/2.06, allocations: 0 / 0.8131 GB, free: 11.55 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.007182/2.068, allocations: 3.189 MB / 0.8162 GB, free: 8.379 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001177/2.069, allocations: 214 kB / 0.8164 GB, free: 8.172 MB / 0.6231 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]