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.008295/0.008295, allocations: 96.7 kB / 15.73 MB, free: 6.055 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.351/1.351, allocations: 222.9 MB / 239.4 MB, free: 4.52 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.001416/0.001416, allocations: 192.4 kB / 289.7 MB, free: 2.234 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4589/0.4589, allocations: 78.53 MB / 418.4 MB, free: 3.164 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001849/0.001849, allocations: 87.86 kB / 0.5531 GB, free: 1.512 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3291/0.331, allocations: 68.17 MB / 0.6197 GB, free: 9.496 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Tests.FACTS.TCSC_Test): time 0.005047/0.3361, allocations: 6.019 MB / 0.6256 GB, free: 4.281 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.003116/0.3393, allocations: 1.841 MB / 0.6274 GB, free: 2.434 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006758/0.34, allocations: 11.94 kB / 0.6274 GB, free: 2.422 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006052/0.3406, allocations: 206.2 kB / 0.6276 GB, free: 2.219 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00151/0.3421, allocations: 0.7401 MB / 0.6283 GB, free: 1.477 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009646/0.3431, allocations: 0.5487 MB / 0.6288 GB, free: 0.9297 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001276/0.3444, allocations: 1.425 MB / 0.6302 GB, free: 15.5 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004125/0.3448, allocations: 283.3 kB / 0.6305 GB, free: 15.21 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007205/0.3455, allocations: 0.5602 MB / 0.631 GB, free: 14.64 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000697/0.3462, allocations: 0.6532 MB / 0.6317 GB, free: 13.99 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001359/0.3464, allocations: 100 kB / 0.6318 GB, free: 13.89 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004344/0.3468, allocations: 231.8 kB / 0.632 GB, free: 13.66 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002291/0.3471, allocations: 258.9 kB / 0.6322 GB, free: 13.41 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004753/0.3475, allocations: 0.5709 MB / 0.6328 GB, free: 12.84 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001441/0.349, allocations: 1.397 MB / 0.6342 GB, free: 11.44 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.349, allocations: 4 kB / 0.6342 GB, free: 11.43 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.943e-06/0.349, allocations: 0 / 0.6342 GB, free: 11.43 MB / 446.1 MB Notification: Performance of Transformations before backend: time 2.135e-05/0.349, allocations: 0 / 0.6342 GB, free: 11.43 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.007052/0.3561, allocations: 2.281 MB / 0.6364 GB, free: 9.098 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.628e-05/0.3562, allocations: 8.031 kB / 0.6364 GB, free: 9.09 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001381/0.3563, allocations: 106.7 kB / 0.6365 GB, free: 8.977 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003415/0.3597, allocations: 0.5654 MB / 0.637 GB, free: 8.406 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001465/0.3612, allocations: 0.7923 MB / 0.6378 GB, free: 7.559 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002633/0.3615, allocations: 209.8 kB / 0.638 GB, free: 7.32 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001353/0.3616, allocations: 64 kB / 0.6381 GB, free: 7.258 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001747/0.3634, allocations: 0.8379 MB / 0.6389 GB, free: 6.414 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.722e-05/0.3634, allocations: 0 / 0.6389 GB, free: 6.414 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.508e-05/0.3635, allocations: 32 kB / 0.6389 GB, free: 6.383 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.053e-05/0.3635, allocations: 23.92 kB / 0.639 GB, free: 6.359 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001799/0.3654, allocations: 0.8484 MB / 0.6398 GB, free: 5.512 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.005448/0.3708, allocations: 3.043 MB / 0.6428 GB, free: 2.34 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006089/0.3769, allocations: 1.705 MB / 0.6444 GB, free: 0.5352 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001184/0.3781, allocations: 0.5498 MB / 0.645 GB, free: 15.98 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.011e-05/0.3782, allocations: 12.59 kB / 0.645 GB, free: 15.96 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001284/0.3795, allocations: 0.6133 MB / 0.6456 GB, free: 15.34 MB / 462.1 MB Notification: Performance of pre-optimization done (n=74): time 2.665e-06/0.3795, allocations: 0 / 0.6456 GB, free: 15.34 MB / 462.1 MB Notification: Performance of matching and sorting (n=74): time 0.01819/0.3977, allocations: 4.711 MB / 0.6502 GB, free: 10.57 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.318e-05/0.3978, allocations: 60.06 kB / 0.6502 GB, free: 10.5 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001547/0.3994, allocations: 0.9661 MB / 0.6512 GB, free: 9.52 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000159/0.3996, allocations: 37.7 kB / 0.6512 GB, free: 9.477 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004164/0.4, allocations: 472.9 kB / 0.6517 GB, free: 9.008 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004054/0.4004, allocations: 281.6 kB / 0.6519 GB, free: 8.73 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003954/0.4008, allocations: 186.5 kB / 0.6521 GB, free: 8.543 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001867/0.401, allocations: 349.9 kB / 0.6524 GB, free: 8.195 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001366/0.4024, allocations: 0.5524 MB / 0.653 GB, free: 7.641 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00138/0.4038, allocations: 0.6672 MB / 0.6536 GB, free: 6.945 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0176/0.4214, allocations: 4.034 MB / 0.6576 GB, free: 2.875 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.157e-06/0.4214, allocations: 3.938 kB / 0.6576 GB, free: 2.871 MB / 462.1 MB Notification: Performance of matching and sorting (n=125) (initialization): time 0.008915/0.4303, allocations: 2.847 MB / 0.6603 GB, free: 8 kB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.192e-05/0.4304, allocations: 4 kB / 0.6604 GB, free: 4 kB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.798e-05/0.4305, allocations: 8.047 kB / 0.6604 GB, free: 15.99 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004901/0.4354, allocations: 1.269 MB / 0.6616 GB, free: 14.72 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001043/0.4365, allocations: 187.7 kB / 0.6618 GB, free: 14.54 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01262/0.4491, allocations: 5.677 MB / 0.6673 GB, free: 8.719 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001535/0.4507, allocations: 159.2 kB / 0.6675 GB, free: 8.562 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.581e-05/0.4508, allocations: 32 kB / 0.6675 GB, free: 8.531 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.0004694/0.4512, allocations: 233.6 kB / 0.6677 GB, free: 8.293 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002143/0.4515, allocations: 127.2 kB / 0.6678 GB, free: 8.168 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008628/0.4601, allocations: 2.657 MB / 0.6704 GB, free: 5.5 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.367e-05/0.4602, allocations: 8 kB / 0.6704 GB, free: 5.492 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.54e-06/0.4602, allocations: 4 kB / 0.6705 GB, free: 5.488 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.52e-05/0.4602, allocations: 3.984 kB / 0.6705 GB, free: 5.484 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01044/0.4706, allocations: 4.019 MB / 0.6744 GB, free: 1.352 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.08e-05/0.4707, allocations: 3.938 kB / 0.6744 GB, free: 1.348 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000547/0.4712, allocations: 87.89 kB / 0.6745 GB, free: 1.262 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004978/0.4762, allocations: 1.323 MB / 0.6758 GB, free: 15.93 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001534/0.4764, allocations: 16 kB / 0.6758 GB, free: 15.92 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01306/0.4895, allocations: 6.019 MB / 0.6817 GB, free: 9.758 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.056e-06/0.4895, allocations: 0 / 0.6817 GB, free: 9.758 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0105/0.5, allocations: 3.385 MB / 0.685 GB, free: 6.344 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004449/0.5005, allocations: 200.3 kB / 0.6852 GB, free: 6.129 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001915/0.5007, allocations: 15.98 kB / 0.6852 GB, free: 6.113 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009994/0.5017, allocations: 87.91 kB / 0.6853 GB, free: 6.027 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005076/0.5022, allocations: 156.4 kB / 0.6854 GB, free: 5.875 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.423e-05/0.5023, allocations: 20 kB / 0.6854 GB, free: 5.855 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.001039/0.5034, allocations: 0.6592 MB / 0.6861 GB, free: 5.188 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.5034, allocations: 0 / 0.6861 GB, free: 5.188 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.001127/0.5045, allocations: 351.7 kB / 0.6864 GB, free: 4.844 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.01061/0.5151, allocations: 3.951 MB / 0.6903 GB, free: 0.8555 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.00509/0.5203, allocations: 1.885 MB / 0.6921 GB, free: 14.93 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 4.258e-06/0.5203, allocations: 0 / 0.6921 GB, free: 14.93 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.003459/0.5238, allocations: 1.219 MB / 0.6933 GB, free: 13.68 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008817/0.5247, allocations: 102.2 kB / 0.6934 GB, free: 13.59 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02765/0.5523, allocations: 12 MB / 0.7051 GB, free: 1.398 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005936/0.553, allocations: 1.042 MB / 0.7061 GB, free: 336 kB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0004476/0.5534, allocations: 94.69 kB / 0.7062 GB, free: 236 kB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005361/0.554, allocations: 403.4 kB / 0.7066 GB, free: 15.83 MB / 0.5137 GB Notification: Performance of SimCode: time 8.02e-07/0.554, allocations: 0 / 0.7066 GB, free: 15.83 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05932/0.6133, allocations: 28.22 MB / 0.7342 GB, free: 3.715 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.75/15.36, allocations: 16.92 kB / 0.7342 GB, free: 3.707 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)