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: "" <> buildModelFMU(ThermoSysPro.Fluid.Examples.SimpleExamples.TestStaticFan,fileNamePrefix="ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestStaticFan",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Fluid.Examples.SimpleExamples.TestStaticFan,fileNamePrefix="ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestStaticFan",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.7715/0.7715, allocations: 150.8 MB / 166.1 MB, free: 15.41 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 1.478e-05/1.48e-05, allocations: 4 kB / 204.9 MB, free: 9.965 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1372/0.1372, allocations: 31.98 MB / 236.8 MB, free: 5.191 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.518/1.656, allocations: 302.3 MB / 0.5265 GB, free: 5.609 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.4454/2.101, allocations: 190.4 MB / 0.7124 GB, free: 3.551 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001572/2.103, allocations: 40.81 kB / 0.7124 GB, free: 3.551 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0005894/2.103, allocations: 224.7 kB / 0.7126 GB, free: 3.551 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.001841/2.105, allocations: 0.7526 MB / 0.7134 GB, free: 3.547 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.0241/2.129, allocations: 10.2 MB / 0.7233 GB, free: 3.305 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.003099/2.132, allocations: 3.461 MB / 0.7267 GB, free: 3.297 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001322/2.134, allocations: 1.497 MB / 0.7282 GB, free: 3.035 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001094/2.135, allocations: 1.094 MB / 0.7292 GB, free: 3.035 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0009817/2.136, allocations: 1.272 MB / 0.7305 GB, free: 3.035 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0001975/2.136, allocations: 149 kB / 0.7306 GB, free: 3.035 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.02931/2.165, allocations: 20.35 MB / 0.7505 GB, free: 0.6875 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0006436/2.166, allocations: 0.5246 MB / 0.751 GB, free: 0.582 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.001817/2.168, allocations: 1.377 MB / 0.7523 GB, free: 468 kB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.02339/2.191, allocations: 12.85 MB / 0.7649 GB, free: 11.36 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 5.39e-06/2.191, allocations: 3.281 kB / 0.7649 GB, free: 11.36 MB / 0.5919 GB Notification: Performance of FrontEnd: time 2.925e-06/2.191, allocations: 0 / 0.7649 GB, free: 11.36 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 3.884e-05/2.191, allocations: 2.906 kB / 0.7649 GB, free: 11.36 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.007422/2.199, allocations: 3.733 MB / 0.7685 GB, free: 9.043 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.62e-05/2.199, allocations: 9.219 kB / 0.7686 GB, free: 9.043 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004118/2.199, allocations: 417.9 kB / 0.769 GB, free: 8.91 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003862/2.2, allocations: 345.7 kB / 0.7693 GB, free: 8.75 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00134/2.201, allocations: 1.136 MB / 0.7704 GB, free: 8.141 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001892/2.201, allocations: 287.8 kB / 0.7707 GB, free: 8.07 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004002/2.202, allocations: 320.1 kB / 0.771 GB, free: 8.059 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004778/2.206, allocations: 3.41 MB / 0.7743 GB, free: 6.68 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.46e-05/2.207, allocations: 19.56 kB / 0.7743 GB, free: 6.676 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002043/2.207, allocations: 138.1 kB / 0.7745 GB, free: 6.676 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.966e-05/2.207, allocations: 82.53 kB / 0.7745 GB, free: 6.672 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004171/2.211, allocations: 2.538 MB / 0.777 GB, free: 6.336 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.01675/2.228, allocations: 23.89 MB / 0.8003 GB, free: 12.75 MB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002125/2.23, allocations: 1.302 MB / 0.8016 GB, free: 11.37 MB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001194/2.231, allocations: 0.7179 MB / 0.8023 GB, free: 10.63 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3143/2.545, allocations: 175.4 MB / 0.9736 GB, free: 5.758 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001657/2.547, allocations: 0.8746 MB / 0.9744 GB, free: 4.84 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=127): time 2.895e-06/2.547, allocations: 0 / 0.9744 GB, free: 4.84 MB / 0.8106 GB Notification: Performance of matching and sorting (n=204): time 0.2328/2.78, allocations: 22.44 MB / 0.9963 GB, free: 452.1 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.006962/2.787, allocations: 2.488 MB / 0.9988 GB, free: 451.2 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001342/2.788, allocations: 1.385 MB / 1 GB, free: 451 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 0.0001418/2.788, allocations: 62.33 kB / 1 GB, free: 450.9 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006043/2.789, allocations: 1.343 MB / 1.001 GB, free: 450.2 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004932/2.79, allocations: 0.7036 MB / 1.002 GB, free: 449.7 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003397/2.79, allocations: 309.3 kB / 1.002 GB, free: 449.7 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 2.955e-05/2.79, allocations: 302.7 kB / 1.003 GB, free: 449.4 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003085/2.793, allocations: 1.722 MB / 1.004 GB, free: 449.4 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003543/2.797, allocations: 2.923 MB / 1.007 GB, free: 447.9 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006404/2.803, allocations: 4.645 MB / 1.012 GB, free: 446.3 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.365e-05/2.803, allocations: 15.69 kB / 1.012 GB, free: 446.3 MB / 0.8106 GB Notification: Performance of matching and sorting (n=404) (initialization): time 0.01008/2.813, allocations: 5.968 MB / 1.018 GB, free: 445.3 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 3.047e-05/2.813, allocations: 20.78 kB / 1.018 GB, free: 445.3 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.557e-05/2.813, allocations: 41.81 kB / 1.018 GB, free: 445.3 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02634/2.84, allocations: 5.869 MB / 1.023 GB, free: 444.5 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001268/2.841, allocations: 454 kB / 1.024 GB, free: 444.4 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00768/2.848, allocations: 4.027 MB / 1.028 GB, free: 442 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004862/2.853, allocations: 0.6522 MB / 1.028 GB, free: 441.6 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002512/2.854, allocations: 210.8 kB / 1.029 GB, free: 441.4 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.0009701/2.855, allocations: 0.5622 MB / 1.029 GB, free: 440.8 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002611/2.855, allocations: 205.5 kB / 1.029 GB, free: 440.6 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008528/2.863, allocations: 4.672 MB / 1.034 GB, free: 436.6 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.008253/2.872, allocations: 4.523 MB / 1.038 GB, free: 432.2 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.955e-06/2.872, allocations: 3.938 kB / 1.038 GB, free: 432.2 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.803e-05/2.872, allocations: 19.95 kB / 1.038 GB, free: 432.2 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01565/2.887, allocations: 11.1 MB / 1.049 GB, free: 421 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.807e-06/2.887, allocations: 4 kB / 1.049 GB, free: 421 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00091/2.888, allocations: 227.6 kB / 1.049 GB, free: 420.8 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02071/2.909, allocations: 5.035 MB / 1.054 GB, free: 415.8 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001802/2.909, allocations: 87.88 kB / 1.054 GB, free: 415.7 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00973/2.919, allocations: 5.301 MB / 1.06 GB, free: 410.4 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.005533/2.924, allocations: 1.986 MB / 1.062 GB, free: 408.4 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01495/2.939, allocations: 8.191 MB / 1.07 GB, free: 400.1 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009467/2.94, allocations: 0.6023 MB / 1.07 GB, free: 399.5 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002753/2.941, allocations: 40 kB / 1.07 GB, free: 399.5 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003046/2.944, allocations: 423.4 kB / 1.071 GB, free: 399.1 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003328/2.944, allocations: 177.6 kB / 1.071 GB, free: 398.9 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001586/2.944, allocations: 111.8 kB / 1.071 GB, free: 398.8 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0007786/2.945, allocations: 0.8015 MB / 1.072 GB, free: 398 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.5e-07/2.945, allocations: 0 / 1.072 GB, free: 398 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.007095/2.952, allocations: 3.525 MB / 1.075 GB, free: 394.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.0247/2.977, allocations: 12.1 MB / 1.087 GB, free: 383.1 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.009087/2.986, allocations: 4.879 MB / 1.092 GB, free: 378.2 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 4.939e-06/2.986, allocations: 4 kB / 1.092 GB, free: 378.2 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.006886/2.993, allocations: 3.12 MB / 1.095 GB, free: 375.1 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002803/2.996, allocations: 431.8 kB / 1.095 GB, free: 374.7 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]