Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_dev_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.1.0-master/package.mo", uses=false) Using package OpenIPSL with version 3.1.0-dev (/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/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_dev_OpenIPSL_Tests_FACTS_TCSC_Test",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Tests.FACTS.TCSC_Test,fileNamePrefix="OpenIPSL_dev_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.001576/0.001576, allocations: 112.5 kB / 15.73 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.383/1.383, allocations: 222.9 MB / 239.4 MB, free: 4.527 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.00144/0.00144, allocations: 192.4 kB / 289.7 MB, free: 2.242 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.5369/0.5369, allocations: 91.97 MB / 431.8 MB, free: 9.109 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002218/0.002218, allocations: 79.66 kB / 0.5723 GB, free: 33.55 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1375/0.1397, allocations: 71.29 MB / 0.6419 GB, free: 4.07 MB / 446.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Tests.FACTS.TCSC_Test): time 0.007284/0.147, allocations: 6.04 MB / 0.6478 GB, free: 14 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.003913/0.151, allocations: 1.837 MB / 0.6496 GB, free: 12.16 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006307/0.1517, allocations: 15.94 kB / 0.6496 GB, free: 12.14 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006648/0.1523, allocations: 206.2 kB / 0.6498 GB, free: 11.94 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001706/0.1541, allocations: 0.7078 MB / 0.6505 GB, free: 11.23 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001158/0.1552, allocations: 0.5469 MB / 0.651 GB, free: 10.69 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.001569/0.1568, allocations: 1.429 MB / 0.6524 GB, free: 9.254 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004726/0.1573, allocations: 279.3 kB / 0.6527 GB, free: 8.969 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008307/0.1581, allocations: 0.5601 MB / 0.6532 GB, free: 8.406 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008386/0.159, allocations: 0.6455 MB / 0.6539 GB, free: 7.758 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001618/0.1592, allocations: 96 kB / 0.654 GB, free: 7.664 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005032/0.1597, allocations: 235.8 kB / 0.6542 GB, free: 7.434 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002872/0.16, allocations: 266.9 kB / 0.6545 GB, free: 7.172 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006036/0.1606, allocations: 0.5708 MB / 0.655 GB, free: 6.598 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0017/0.1623, allocations: 1.4 MB / 0.6564 GB, free: 5.191 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.1623, allocations: 0 / 0.6564 GB, free: 5.191 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.1623, allocations: 0 / 0.6564 GB, free: 5.191 MB / 462.1 MB Notification: Performance of Transformations before backend: time 1.751e-05/0.1623, allocations: 0 / 0.6564 GB, free: 5.191 MB / 462.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.1696, allocations: 2.27 MB / 0.6586 GB, free: 2.867 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.815e-05/0.1697, allocations: 12.03 kB / 0.6586 GB, free: 2.855 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001499/0.1699, allocations: 118.6 kB / 0.6587 GB, free: 2.73 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003416/0.1733, allocations: 0.5615 MB / 0.6593 GB, free: 2.168 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001484/0.1748, allocations: 0.7924 MB / 0.66 GB, free: 1.32 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002737/0.1751, allocations: 213.7 kB / 0.6602 GB, free: 1.078 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000135/0.1752, allocations: 67.98 kB / 0.6603 GB, free: 1.012 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001781/0.177, allocations: 0.8302 MB / 0.6611 GB, free: 180 kB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.895e-05/0.177, allocations: 3.984 kB / 0.6611 GB, free: 176 kB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.849e-05/0.1771, allocations: 24 kB / 0.6611 GB, free: 152 kB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.732e-05/0.1771, allocations: 19.94 kB / 0.6612 GB, free: 132 kB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001891/0.179, allocations: 0.8484 MB / 0.662 GB, free: 15.28 MB / 478.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.005823/0.1849, allocations: 3.036 MB / 0.665 GB, free: 12.12 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006411/0.1913, allocations: 1.709 MB / 0.6666 GB, free: 10.3 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001283/0.1926, allocations: 0.5498 MB / 0.6672 GB, free: 9.75 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001003/0.1927, allocations: 16.58 kB / 0.6672 GB, free: 9.734 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001388/0.1941, allocations: 0.6172 MB / 0.6678 GB, free: 9.102 MB / 478.1 MB Notification: Performance of pre-optimization done (n=74): time 2.825e-06/0.1941, allocations: 0 / 0.6678 GB, free: 9.102 MB / 478.1 MB Notification: Performance of matching and sorting (n=74): time 0.01904/0.2132, allocations: 4.711 MB / 0.6724 GB, free: 4.34 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.87e-05/0.2133, allocations: 60.06 kB / 0.6724 GB, free: 4.27 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001483/0.2148, allocations: 0.9661 MB / 0.6734 GB, free: 3.285 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001233/0.2149, allocations: 41.7 kB / 0.6734 GB, free: 3.238 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003751/0.2153, allocations: 476.8 kB / 0.6739 GB, free: 2.766 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002914/0.2156, allocations: 281.6 kB / 0.6741 GB, free: 2.488 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003577/0.216, allocations: 178.6 kB / 0.6743 GB, free: 2.305 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.000149/0.2161, allocations: 345.9 kB / 0.6746 GB, free: 1.961 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001264/0.2174, allocations: 0.5524 MB / 0.6752 GB, free: 1.41 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001368/0.2188, allocations: 0.6711 MB / 0.6758 GB, free: 0.707 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01737/0.2361, allocations: 4.038 MB / 0.6798 GB, free: 12.64 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.827e-06/0.2362, allocations: 0 / 0.6798 GB, free: 12.64 MB / 494.1 MB Notification: Performance of matching and sorting (n=125) (initialization): time 0.009439/0.2456, allocations: 2.843 MB / 0.6826 GB, free: 9.777 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.328e-05/0.2457, allocations: 4 kB / 0.6826 GB, free: 9.773 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.666e-05/0.2457, allocations: 4 kB / 0.6826 GB, free: 9.77 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004992/0.2507, allocations: 1.268 MB / 0.6838 GB, free: 8.496 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001028/0.2518, allocations: 191.7 kB / 0.684 GB, free: 8.309 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01317/0.265, allocations: 5.678 MB / 0.6895 GB, free: 2.492 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001509/0.2665, allocations: 159.2 kB / 0.6897 GB, free: 2.336 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001064/0.2666, allocations: 35.98 kB / 0.6897 GB, free: 2.301 MB / 494.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.0004959/0.2672, allocations: 237.5 kB / 0.6899 GB, free: 2.059 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002074/0.2674, allocations: 119.2 kB / 0.6901 GB, free: 1.941 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009043/0.2764, allocations: 2.657 MB / 0.6927 GB, free: 15.27 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.24e-05/0.2765, allocations: 8 kB / 0.6927 GB, free: 15.26 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.741e-06/0.2765, allocations: 0 / 0.6927 GB, free: 15.26 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.434e-05/0.2765, allocations: 7.922 kB / 0.6927 GB, free: 15.25 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01085/0.2873, allocations: 4.019 MB / 0.6966 GB, free: 11.11 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.164e-05/0.2874, allocations: 3.938 kB / 0.6966 GB, free: 11.11 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005456/0.288, allocations: 87.88 kB / 0.6967 GB, free: 11.02 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005111/0.2931, allocations: 1.323 MB / 0.698 GB, free: 9.691 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001131/0.2932, allocations: 12 kB / 0.698 GB, free: 9.68 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01377/0.307, allocations: 6.028 MB / 0.7039 GB, free: 3.512 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.414e-06/0.307, allocations: 0 / 0.7039 GB, free: 3.512 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01052/0.3176, allocations: 3.381 MB / 0.7072 GB, free: 108 kB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004457/0.318, allocations: 208.6 kB / 0.7074 GB, free: 15.88 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002199/0.3183, allocations: 8 kB / 0.7074 GB, free: 15.87 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001058/0.3193, allocations: 91.89 kB / 0.7075 GB, free: 15.78 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00048/0.3198, allocations: 152.4 kB / 0.7076 GB, free: 15.63 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.191e-05/0.3199, allocations: 24 kB / 0.7076 GB, free: 15.61 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.00114/0.3211, allocations: 0.6592 MB / 0.7083 GB, free: 14.94 MB / 0.5137 GB Notification: Performance of sort global known variables: time 2.3e-07/0.3211, allocations: 4 kB / 0.7083 GB, free: 14.94 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.00121/0.3223, allocations: 351.7 kB / 0.7086 GB, free: 14.59 MB / 0.5137 GB 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.01094/0.3332, allocations: 3.951 MB / 0.7125 GB, free: 10.61 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.005395/0.3387, allocations: 1.881 MB / 0.7143 GB, free: 8.691 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 5.61e-06/0.3387, allocations: 0 / 0.7143 GB, free: 8.691 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.003739/0.3425, allocations: 1.208 MB / 0.7155 GB, free: 7.445 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001035/0.3435, allocations: 98.45 kB / 0.7156 GB, free: 7.348 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02964/0.3732, allocations: 12.01 MB / 0.7273 GB, free: 11.16 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007915/0.374, allocations: 1.057 MB / 0.7283 GB, free: 10.08 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.0004667/0.3745, allocations: 102.7 kB / 0.7284 GB, free: 9.973 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005836/0.3751, allocations: 399.3 kB / 0.7288 GB, free: 9.582 MB / 0.5294 GB Notification: Performance of SimCode: time 6.81e-07/0.3751, allocations: 4 kB / 0.7288 GB, free: 9.578 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06671/0.4418, allocations: 28.22 MB / 0.7564 GB, free: 13.47 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.65/16.09, allocations: 15.64 kB / 0.7564 GB, free: 13.46 MB / 0.5606 GB (rm -f OpenIPSL_dev_OpenIPSL.Tests.FACTS.TCSC_Test.pipe ; mkfifo OpenIPSL_dev_OpenIPSL.Tests.FACTS.TCSC_Test.pipe ; head -c 1048576 < OpenIPSL_dev_OpenIPSL.Tests.FACTS.TCSC_Test.pipe >> ../files/OpenIPSL_dev_OpenIPSL.Tests.FACTS.TCSC_Test.sim & python3 -m fmpy simulate --output-file OpenIPSL_dev_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_dev_OpenIPSL_Tests_FACTS_TCSC_Test.fmu > OpenIPSL_dev_OpenIPSL.Tests.FACTS.TCSC_Test.pipe 2>&1)