Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_OpenIPSL.Tests.FACTS.TCSC_Test.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo", uses=false) Using package OpenIPSL with version 3.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(OpenIPSL.Tests.FACTS.TCSC_Test,fileNamePrefix="OpenIPSL_OpenIPSL_Tests_FACTS_TCSC_Test",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Tests.FACTS.TCSC_Test,fileNamePrefix="OpenIPSL_OpenIPSL_Tests_FACTS_TCSC_Test",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00497/0.00497, allocations: 100.9 kB / 15.73 MB, free: 6.062 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.408/1.408, allocations: 222.9 MB / 239.4 MB, free: 4.523 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001421/0.001421, allocations: 188.4 kB / 289.7 MB, free: 2.238 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4719/0.4719, allocations: 78.53 MB / 418.4 MB, free: 3.227 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002211/0.002211, allocations: 83.8 kB / 0.5531 GB, free: 1.441 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3085/0.3107, allocations: 68.16 MB / 0.6197 GB, free: 9.262 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Tests.FACTS.TCSC_Test): time 0.005453/0.3162, allocations: 6.016 MB / 0.6256 GB, free: 4.102 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.00333/0.3195, allocations: 1.841 MB / 0.6274 GB, free: 2.254 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006987/0.3203, allocations: 15.94 kB / 0.6274 GB, free: 2.238 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006661/0.3209, allocations: 206.2 kB / 0.6276 GB, free: 2.035 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001535/0.3225, allocations: 0.7049 MB / 0.6283 GB, free: 1.328 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009294/0.3235, allocations: 0.5449 MB / 0.6288 GB, free: 0.7852 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001284/0.3248, allocations: 1.417 MB / 0.6302 GB, free: 15.36 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004573/0.3252, allocations: 283.3 kB / 0.6304 GB, free: 15.07 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007568/0.326, allocations: 0.5562 MB / 0.631 GB, free: 14.51 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008323/0.3268, allocations: 0.6494 MB / 0.6316 GB, free: 13.86 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001706/0.327, allocations: 100 kB / 0.6317 GB, free: 13.76 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004923/0.3275, allocations: 231.9 kB / 0.6319 GB, free: 13.54 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002673/0.3278, allocations: 266.9 kB / 0.6322 GB, free: 13.27 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005395/0.3283, allocations: 0.5709 MB / 0.6327 GB, free: 12.7 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001626/0.33, allocations: 1.397 MB / 0.6341 GB, free: 11.3 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.597e-06/0.33, allocations: 4 kB / 0.6341 GB, free: 11.3 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.282e-06/0.33, allocations: 0 / 0.6341 GB, free: 11.3 MB / 446.1 MB Notification: Performance of Transformations before backend: time 2.009e-05/0.33, allocations: 0 / 0.6341 GB, free: 11.3 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 157 * Number of variables: 157 Notification: Performance of Generate backend data structure: time 0.007279/0.3373, allocations: 2.274 MB / 0.6363 GB, free: 8.969 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.454e-05/0.3374, allocations: 8.031 kB / 0.6363 GB, free: 8.961 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001478/0.3375, allocations: 118.7 kB / 0.6365 GB, free: 8.836 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003568/0.3411, allocations: 0.5654 MB / 0.637 GB, free: 8.27 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001592/0.3427, allocations: 0.7924 MB / 0.6378 GB, free: 7.422 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003111/0.343, allocations: 221.7 kB / 0.638 GB, free: 7.172 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001333/0.3432, allocations: 64 kB / 0.6381 GB, free: 7.109 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001886/0.3451, allocations: 0.8341 MB / 0.6389 GB, free: 6.27 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.018e-05/0.3451, allocations: 0 / 0.6389 GB, free: 6.27 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.64e-05/0.3452, allocations: 28 kB / 0.6389 GB, free: 6.242 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.661e-05/0.3452, allocations: 15.94 kB / 0.6389 GB, free: 6.227 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001956/0.3472, allocations: 0.8484 MB / 0.6397 GB, free: 5.379 MB / 446.1 MB 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.005692/0.3529, allocations: 3.036 MB / 0.6427 GB, free: 2.215 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006603/0.3595, allocations: 1.705 MB / 0.6444 GB, free: 420 kB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00124/0.3608, allocations: 0.546 MB / 0.6449 GB, free: 15.86 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.665e-05/0.3609, allocations: 20.5 kB / 0.6449 GB, free: 15.84 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001392/0.3623, allocations: 0.6172 MB / 0.6455 GB, free: 15.21 MB / 462.1 MB Notification: Performance of pre-optimization done (n=74): time 3.386e-06/0.3623, allocations: 0 / 0.6455 GB, free: 15.21 MB / 462.1 MB Notification: Performance of matching and sorting (n=74): time 0.01971/0.382, allocations: 4.707 MB / 0.6501 GB, free: 10.45 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.474e-05/0.3821, allocations: 60.06 kB / 0.6502 GB, free: 10.38 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001545/0.3836, allocations: 0.9661 MB / 0.6511 GB, free: 9.391 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001089/0.3838, allocations: 41.7 kB / 0.6512 GB, free: 9.344 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004069/0.3842, allocations: 472.9 kB / 0.6516 GB, free: 8.875 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002957/0.3845, allocations: 277.6 kB / 0.6519 GB, free: 8.602 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003783/0.3849, allocations: 190.5 kB / 0.6521 GB, free: 8.41 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.000157/0.385, allocations: 349.8 kB / 0.6524 GB, free: 8.062 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001311/0.3863, allocations: 0.5524 MB / 0.6529 GB, free: 7.508 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001424/0.3878, allocations: 0.6711 MB / 0.6536 GB, free: 6.809 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01782/0.4056, allocations: 4.038 MB / 0.6575 GB, free: 2.734 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.542e-06/0.4056, allocations: 0 / 0.6575 GB, free: 2.734 MB / 462.1 MB Notification: Performance of matching and sorting (n=125) (initialization): time 0.009467/0.4151, allocations: 2.84 MB / 0.6603 GB, free: 15.88 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.596e-05/0.4152, allocations: 8 kB / 0.6603 GB, free: 15.87 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.18e-05/0.4152, allocations: 4 kB / 0.6603 GB, free: 15.87 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005054/0.4203, allocations: 1.269 MB / 0.6616 GB, free: 14.59 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001047/0.4213, allocations: 187.7 kB / 0.6617 GB, free: 14.41 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01393/0.4353, allocations: 5.683 MB / 0.6673 GB, free: 8.586 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001653/0.437, allocations: 159.2 kB / 0.6674 GB, free: 8.43 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001214/0.4371, allocations: 39.98 kB / 0.6675 GB, free: 8.391 MB / 478.1 MB Warning: Assuming fixed start value for the following 1 variables: Gen1.delta:VARIABLE(flow=false start = Gen1.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 2 ($whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (103): * Single equations (assignments): 101 * Array equations: 0 * 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): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * 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 {(14,8)} Notification: Performance of prepare postOptimizeDAE: time 0.0005208/0.4376, allocations: 236.8 kB / 0.6677 GB, free: 8.152 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002153/0.4379, allocations: 115.2 kB / 0.6678 GB, free: 8.039 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009229/0.4471, allocations: 2.661 MB / 0.6704 GB, free: 5.367 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.503e-05/0.4472, allocations: 8 kB / 0.6704 GB, free: 5.359 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.418e-06/0.4472, allocations: 0 / 0.6704 GB, free: 5.359 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.704e-05/0.4472, allocations: 3.984 kB / 0.6704 GB, free: 5.355 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01109/0.4583, allocations: 4.019 MB / 0.6743 GB, free: 1.223 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.25e-05/0.4583, allocations: 7.922 kB / 0.6744 GB, free: 1.215 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005245/0.4589, allocations: 87.89 kB / 0.6744 GB, free: 1.129 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005237/0.4641, allocations: 1.327 MB / 0.6757 GB, free: 15.79 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.326e-05/0.4642, allocations: 12 kB / 0.6757 GB, free: 15.78 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01413/0.4784, allocations: 6.019 MB / 0.6816 GB, free: 9.625 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.4784, allocations: 0 / 0.6816 GB, free: 9.625 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01098/0.4894, allocations: 3.381 MB / 0.6849 GB, free: 6.215 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000423/0.4899, allocations: 204.3 kB / 0.6851 GB, free: 5.996 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001464/0.49, allocations: 12 kB / 0.6851 GB, free: 5.984 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001007/0.491, allocations: 87.89 kB / 0.6852 GB, free: 5.898 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005588/0.4916, allocations: 152.4 kB / 0.6854 GB, free: 5.75 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.262e-05/0.4917, allocations: 24 kB / 0.6854 GB, free: 5.727 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.001132/0.4928, allocations: 0.6553 MB / 0.686 GB, free: 5.062 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.4928, allocations: 4 kB / 0.686 GB, free: 5.059 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.001231/0.4941, allocations: 355.7 kB / 0.6864 GB, free: 4.711 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (tCSC.PIcontroller.x_scaled[1],tCSC.X1.state,Gen1.delta,Gen1.w) * Number of discrete variables: 2 ($whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (48): * Single equations (assignments): 46 * Array equations: 0 * 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): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * 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 {(15,13)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01134/0.5054, allocations: 3.947 MB / 0.6902 GB, free: 0.7266 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.005406/0.5109, allocations: 1.886 MB / 0.6921 GB, free: 14.8 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 4.087e-06/0.5109, allocations: 4 kB / 0.6921 GB, free: 14.8 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.003701/0.5146, allocations: 1.211 MB / 0.6932 GB, free: 13.56 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009346/0.5156, allocations: 105.8 kB / 0.6933 GB, free: 13.46 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02968/0.5453, allocations: 12 MB / 0.7051 GB, free: 1.27 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007119/0.546, allocations: 1.046 MB / 0.7061 GB, free: 200 kB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0004901/0.5465, allocations: 98.67 kB / 0.7062 GB, free: 96 kB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005844/0.5471, allocations: 403.4 kB / 0.7066 GB, free: 15.7 MB / 0.5137 GB Notification: Performance of SimCode: time 9.92e-07/0.5471, allocations: 0 / 0.7066 GB, free: 15.7 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06776/0.6149, allocations: 28.22 MB / 0.7341 GB, free: 3.582 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.63/16.25, allocations: 8.062 kB / 0.7341 GB, free: 3.574 MB / 0.5294 GB (rm -f OpenIPSL_OpenIPSL.Tests.FACTS.TCSC_Test.pipe ; mkfifo OpenIPSL_OpenIPSL.Tests.FACTS.TCSC_Test.pipe ; head -c 1048576 < OpenIPSL_OpenIPSL.Tests.FACTS.TCSC_Test.pipe >> ../files/OpenIPSL_OpenIPSL.Tests.FACTS.TCSC_Test.sim & python3 -m fmpy simulate --output-file OpenIPSL_OpenIPSL.Tests.FACTS.TCSC_Test_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.004 OpenIPSL_OpenIPSL_Tests_FACTS_TCSC_Test.fmu > OpenIPSL_OpenIPSL.Tests.FACTS.TCSC_Test.pipe 2>&1)