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: "" <> buildModelFMU(ThermoSysPro.Examples.SimpleExamples.TestFan_Pin,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestFan_Pin",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Examples.SimpleExamples.TestFan_Pin,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestFan_Pin",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.7904/0.7904, allocations: 150.8 MB / 166.1 MB, free: 15.4 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 1.619e-05/1.621e-05, allocations: 4 kB / 204.9 MB, free: 9.738 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.133/0.133, allocations: 31.98 MB / 236.8 MB, free: 5.449 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.504/1.638, allocations: 299 MB / 0.5233 GB, free: 8.762 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.1377/1.775, allocations: 148.6 MB / 0.6684 GB, free: 3.84 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007663/1.776, allocations: 8 kB / 0.6684 GB, free: 3.832 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.0004894/1.777, allocations: 150.8 kB / 0.6686 GB, free: 3.684 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.001211/1.778, allocations: 428.5 kB / 0.669 GB, free: 3.262 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.002798/1.781, allocations: 1.313 MB / 0.6703 GB, free: 1.945 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.002007/1.783, allocations: 2.301 MB / 0.6725 GB, free: 15.64 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001048/1.784, allocations: 1.041 MB / 0.6735 GB, free: 14.55 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005996/1.784, allocations: 0.6889 MB / 0.6742 GB, free: 13.86 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007605/1.785, allocations: 0.875 MB / 0.6751 GB, free: 12.98 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.0001511/1.785, allocations: 112 kB / 0.6752 GB, free: 12.87 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002031/1.787, allocations: 1.349 MB / 0.6765 GB, free: 11.52 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0002564/1.787, allocations: 346.6 kB / 0.6768 GB, free: 11.18 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0006533/1.788, allocations: 0.8878 MB / 0.6777 GB, free: 10.28 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.002319/1.79, allocations: 2.787 MB / 0.6804 GB, free: 7.484 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.537e-06/1.79, allocations: 0 / 0.6804 GB, free: 7.484 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.413e-06/1.79, allocations: 0 / 0.6804 GB, free: 7.484 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 2.04e-05/1.791, allocations: 4 kB / 0.6804 GB, free: 7.48 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.003185/1.794, allocations: 1.845 MB / 0.6822 GB, free: 5.578 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.874e-05/1.794, allocations: 12.03 kB / 0.6822 GB, free: 5.566 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002807/1.794, allocations: 275 kB / 0.6825 GB, free: 5.289 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002709/1.794, allocations: 214.7 kB / 0.6827 GB, free: 5.078 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000807/1.795, allocations: 0.7337 MB / 0.6834 GB, free: 4.301 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001529/1.795, allocations: 207.4 kB / 0.6836 GB, free: 4.086 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003814/1.796, allocations: 211.9 kB / 0.6838 GB, free: 3.879 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003147/1.799, allocations: 2.339 MB / 0.6861 GB, free: 1.379 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.589e-05/1.799, allocations: 7.938 kB / 0.6861 GB, free: 1.371 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001503/1.799, allocations: 84 kB / 0.6862 GB, free: 1.289 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.807e-05/1.799, allocations: 52 kB / 0.6862 GB, free: 1.238 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003084/1.802, allocations: 2.043 MB / 0.6882 GB, free: 15.19 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.1596/1.962, allocations: 14.66 MB / 0.7025 GB, free: 229.2 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001825/1.964, allocations: 1.077 MB / 0.7036 GB, free: 229.2 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001195/1.965, allocations: 0.7959 MB / 0.7044 GB, free: 229.2 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005456/1.965, allocations: 0.4908 MB / 0.7048 GB, free: 228.8 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001223/1.967, allocations: 0.7624 MB / 0.7056 GB, free: 228.7 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=127): time 3.366e-06/1.967, allocations: 2.812 kB / 0.7056 GB, free: 228.7 MB / 0.5762 GB Notification: Performance of matching and sorting (n=204): time 0.0669/2.034, allocations: 20.59 MB / 0.7257 GB, free: 226.6 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.007905/2.042, allocations: 2.513 MB / 0.7282 GB, free: 225.9 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007023/2.042, allocations: 0.7161 MB / 0.7289 GB, free: 225.7 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 0.0001773/2.042, allocations: 55.64 kB / 0.7289 GB, free: 225.7 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003849/2.043, allocations: 0.7345 MB / 0.7296 GB, free: 225.2 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005576/2.043, allocations: 0.6986 MB / 0.7303 GB, free: 224.8 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002933/2.044, allocations: 211.8 kB / 0.7305 GB, free: 224.8 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 6.315e-05/2.044, allocations: 352.6 kB / 0.7308 GB, free: 224.5 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002811/2.047, allocations: 1.627 MB / 0.7324 GB, free: 224.5 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003043/2.05, allocations: 2.262 MB / 0.7346 GB, free: 223 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.04048/2.09, allocations: 12.06 MB / 0.7464 GB, free: 212.2 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-05/2.09, allocations: 8 kB / 0.7464 GB, free: 212.2 MB / 0.5762 GB Notification: Performance of matching and sorting (n=305) (initialization): time 0.009475/2.1, allocations: 5.568 MB / 0.7519 GB, free: 206.7 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.65e-05/2.1, allocations: 12 kB / 0.7519 GB, free: 206.6 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.43e-05/2.1, allocations: 22.03 kB / 0.7519 GB, free: 206.6 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02944/2.129, allocations: 6.796 MB / 0.7585 GB, free: 199.9 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009474/2.13, allocations: 271.4 kB / 0.7588 GB, free: 199.6 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008211/2.138, allocations: 4.807 MB / 0.7635 GB, free: 194.7 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003537/2.142, allocations: 462.1 kB / 0.7639 GB, free: 194.3 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002696/2.142, allocations: 162.3 kB / 0.7641 GB, free: 194.1 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.0007754/2.143, allocations: 403.6 kB / 0.7645 GB, free: 193.7 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002671/2.143, allocations: 138.5 kB / 0.7646 GB, free: 193.6 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008688/2.152, allocations: 4.898 MB / 0.7694 GB, free: 188.7 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.008283/2.16, allocations: 4.669 MB / 0.7739 GB, free: 184 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.072e-05/2.16, allocations: 0 / 0.7739 GB, free: 184 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.664e-05/2.16, allocations: 7.969 kB / 0.7739 GB, free: 184 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01464/2.175, allocations: 10.01 MB / 0.7837 GB, free: 173.8 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.115e-06/2.175, allocations: 0 / 0.7837 GB, free: 173.8 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009557/2.176, allocations: 240.2 kB / 0.7839 GB, free: 173.6 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02121/2.197, allocations: 5.203 MB / 0.789 GB, free: 168.4 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001813/2.197, allocations: 87.89 kB / 0.7891 GB, free: 168.3 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01134/2.209, allocations: 8.453 MB / 0.7974 GB, free: 159.6 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.006418/2.215, allocations: 2.233 MB / 0.7995 GB, free: 157.4 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01233/2.227, allocations: 7.332 MB / 0.8067 GB, free: 150 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000763/2.228, allocations: 499 kB / 0.8072 GB, free: 149.5 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00024/2.229, allocations: 55.92 kB / 0.8072 GB, free: 149.5 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002322/2.231, allocations: 299.6 kB / 0.8075 GB, free: 149.2 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003071/2.231, allocations: 157.7 kB / 0.8077 GB, free: 149 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001582/2.231, allocations: 101.8 kB / 0.8078 GB, free: 148.9 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0004054/2.232, allocations: 443 kB / 0.8082 GB, free: 148.5 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.2e-07/2.232, allocations: 0 / 0.8082 GB, free: 148.5 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.002316/2.234, allocations: 1.12 MB / 0.8093 GB, free: 147.4 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.0141/2.248, allocations: 8.456 MB / 0.8175 GB, free: 139 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.008198/2.256, allocations: 4.642 MB / 0.8221 GB, free: 134.3 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.966e-06/2.256, allocations: 4.125 kB / 0.8221 GB, free: 134.3 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.006913/2.263, allocations: 3.17 MB / 0.8252 GB, free: 131.2 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001356/2.265, allocations: 223.7 kB / 0.8254 GB, free: 130.9 MB / 0.5762 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]