Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_dev_OpenIPSL.Examples.KundurSMIB.SMIB.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.Examples.KundurSMIB.SMIB,fileNamePrefix="OpenIPSL_dev_OpenIPSL_Examples_KundurSMIB_SMIB",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.KundurSMIB.SMIB,fileNamePrefix="OpenIPSL_dev_OpenIPSL_Examples_KundurSMIB_SMIB",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.00723/0.007229, allocations: 101.2 kB / 15.73 MB, free: 6.051 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.444/1.444, allocations: 222.9 MB / 239.4 MB, free: 4.547 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.00175/0.00175, allocations: 192.4 kB / 289.7 MB, free: 2.266 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.5729/0.5729, allocations: 91.9 MB / 431.8 MB, free: 9.16 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002359/0.002359, allocations: 80.19 kB / 0.5722 GB, free: 33.66 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1383/0.1407, allocations: 71.3 MB / 0.6418 GB, free: 4.09 MB / 446.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.KundurSMIB.SMIB): time 0.006402/0.1471, allocations: 4.917 MB / 0.6467 GB, free: 15.15 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.003432/0.1506, allocations: 1.591 MB / 0.6482 GB, free: 13.55 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006646/0.1513, allocations: 8 kB / 0.6482 GB, free: 13.54 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006013/0.1519, allocations: 162.7 kB / 0.6484 GB, free: 13.38 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002047/0.154, allocations: 0.637 MB / 0.649 GB, free: 12.74 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001018/0.155, allocations: 432.1 kB / 0.6494 GB, free: 12.32 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.001584/0.1566, allocations: 1.078 MB / 0.6505 GB, free: 11.24 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004389/0.1571, allocations: 218.2 kB / 0.6507 GB, free: 11.02 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000766/0.1579, allocations: 454.2 kB / 0.6511 GB, free: 10.57 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008577/0.1587, allocations: 0.5485 MB / 0.6516 GB, free: 10.02 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000278/0.159, allocations: 100 kB / 0.6517 GB, free: 9.922 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006229/0.1597, allocations: 239.8 kB / 0.652 GB, free: 9.688 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002822/0.16, allocations: 223.1 kB / 0.6522 GB, free: 9.469 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006503/0.1606, allocations: 481.4 kB / 0.6526 GB, free: 8.996 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001807/0.1624, allocations: 1.268 MB / 0.6539 GB, free: 7.723 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.072e-06/0.1624, allocations: 0 / 0.6539 GB, free: 7.723 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.923e-06/0.1625, allocations: 0 / 0.6539 GB, free: 7.723 MB / 462.1 MB Notification: Performance of Transformations before backend: time 4.519e-05/0.1625, allocations: 0 / 0.6539 GB, free: 7.723 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: 121 * Number of variables: 121 Notification: Performance of Generate backend data structure: time 0.006014/0.1685, allocations: 1.783 MB / 0.6556 GB, free: 5.887 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.109e-05/0.1686, allocations: 12.03 kB / 0.6556 GB, free: 5.875 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001842/0.1688, allocations: 90.7 kB / 0.6557 GB, free: 5.777 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003452/0.1723, allocations: 0.5267 MB / 0.6562 GB, free: 5.25 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001215/0.1735, allocations: 0.6476 MB / 0.6569 GB, free: 4.562 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002064/0.1737, allocations: 142.1 kB / 0.657 GB, free: 4.406 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001695/0.1739, allocations: 52 kB / 0.657 GB, free: 4.355 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001428/0.1753, allocations: 0.6583 MB / 0.6577 GB, free: 3.691 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.646e-05/0.1754, allocations: 4 kB / 0.6577 GB, free: 3.688 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.824e-05/0.1754, allocations: 24 kB / 0.6577 GB, free: 3.664 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.288e-05/0.1754, allocations: 11.94 kB / 0.6577 GB, free: 3.652 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001324/0.1768, allocations: 0.6363 MB / 0.6583 GB, free: 3.012 MB / 462.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.005127/0.1819, allocations: 2.616 MB / 0.6609 GB, free: 292 kB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01194/0.1939, allocations: 2.815 MB / 0.6636 GB, free: 13.42 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001033/0.195, allocations: 451.8 kB / 0.6641 GB, free: 12.97 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.74e-05/0.1951, allocations: 8.562 kB / 0.6641 GB, free: 12.96 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.678e-05/0.1951, allocations: 39.12 kB / 0.6641 GB, free: 12.92 MB / 478.1 MB Notification: Performance of pre-optimization done (n=57): time 4.478e-06/0.1951, allocations: 4 kB / 0.6641 GB, free: 12.91 MB / 478.1 MB Notification: Performance of matching and sorting (n=57): time 0.01341/0.2086, allocations: 3.528 MB / 0.6676 GB, free: 9.32 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.667e-05/0.2087, allocations: 59.97 kB / 0.6676 GB, free: 9.25 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001311/0.21, allocations: 0.7701 MB / 0.6684 GB, free: 8.469 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001296/0.2101, allocations: 37.7 kB / 0.6684 GB, free: 8.426 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003343/0.2105, allocations: 361 kB / 0.6688 GB, free: 8.066 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002986/0.2108, allocations: 218.2 kB / 0.669 GB, free: 7.852 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000406/0.2112, allocations: 170.6 kB / 0.6691 GB, free: 7.68 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.000217/0.2114, allocations: 394.7 kB / 0.6695 GB, free: 7.285 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001101/0.2125, allocations: 0.4939 MB / 0.67 GB, free: 6.789 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001155/0.2137, allocations: 0.5953 MB / 0.6706 GB, free: 6.172 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01616/0.2299, allocations: 3.556 MB / 0.674 GB, free: 2.59 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.297e-06/0.2299, allocations: 4 kB / 0.674 GB, free: 2.586 MB / 478.1 MB Notification: Performance of matching and sorting (n=114) (initialization): time 0.007954/0.2379, allocations: 2.396 MB / 0.6764 GB, free: 176 kB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.178e-05/0.2379, allocations: 8 kB / 0.6764 GB, free: 168 kB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.266e-05/0.238, allocations: 4 kB / 0.6764 GB, free: 164 kB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004319/0.2423, allocations: 1.05 MB / 0.6774 GB, free: 15.1 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009015/0.2432, allocations: 151.7 kB / 0.6776 GB, free: 14.95 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01145/0.2547, allocations: 5.075 MB / 0.6825 GB, free: 9.727 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001337/0.2561, allocations: 115.5 kB / 0.6826 GB, free: 9.613 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001887/0.2563, allocations: 27.98 kB / 0.6827 GB, free: 9.586 MB / 494.1 MB Warning: Assuming fixed start value for the following 2 variables: G1.machine.w:VARIABLE(flow=false start = 1.0 fixed = true ) "Rotor speed [pu]" type: Real G1.machine.delta:VARIABLE(flow=false start = G1.machine.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (93): * Single equations (assignments): 90 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * 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): 2 systems {(2,100.0%), (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): 1 system {(7,13,59.2%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0006133/0.2569, allocations: 218.2 kB / 0.6829 GB, free: 9.363 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002586/0.2572, allocations: 83.42 kB / 0.6829 GB, free: 9.281 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00609/0.2633, allocations: 1.941 MB / 0.6848 GB, free: 7.32 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.437e-05/0.2633, allocations: 8 kB / 0.6849 GB, free: 7.312 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.058e-05/0.2634, allocations: 4 kB / 0.6849 GB, free: 7.309 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.434e-05/0.2634, allocations: 7.922 kB / 0.6849 GB, free: 7.301 MB / 494.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 postOpt removeSimpleEquations (simulation): time 0.007865/0.2713, allocations: 3.036 MB / 0.6878 GB, free: 4.164 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.697e-06/0.2713, allocations: 0 / 0.6878 GB, free: 4.164 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004923/0.2718, allocations: 63.91 kB / 0.6879 GB, free: 4.102 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003354/0.2752, allocations: 0.9413 MB / 0.6888 GB, free: 3.152 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.652e-05/0.2753, allocations: 11.94 kB / 0.6888 GB, free: 3.141 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008801/0.2841, allocations: 4.114 MB / 0.6928 GB, free: 14.88 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.37e-06/0.2842, allocations: 3.938 kB / 0.6928 GB, free: 14.88 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007206/0.2914, allocations: 2.516 MB / 0.6953 GB, free: 12.34 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003739/0.2918, allocations: 184.4 kB / 0.6955 GB, free: 12.14 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002179/0.292, allocations: 16 kB / 0.6955 GB, free: 12.12 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008721/0.2929, allocations: 51.94 kB / 0.6955 GB, free: 12.07 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003858/0.2933, allocations: 116.4 kB / 0.6956 GB, free: 11.96 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.511e-05/0.2934, allocations: 15.98 kB / 0.6957 GB, free: 11.95 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0008177/0.2942, allocations: 0.5225 MB / 0.6962 GB, free: 11.43 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.4e-07/0.2942, allocations: 0 / 0.6962 GB, free: 11.43 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.001131/0.2954, allocations: 303.8 kB / 0.6965 GB, free: 11.13 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (G1.machine.delta,G1.machine.w,G1.machine.e1q,G1.machine.e1d,G1.machine.e2q,G1.machine.e2d) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 37 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * 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): 2 systems {(2,100.0%), (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): 1 system {(9,9,48.1%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.007547/0.3029, allocations: 3.079 MB / 0.6995 GB, free: 8.016 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.00502/0.308, allocations: 1.738 MB / 0.7012 GB, free: 6.215 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 6.482e-06/0.308, allocations: 0 / 0.7012 GB, free: 6.215 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.002915/0.3109, allocations: 1.103 MB / 0.7022 GB, free: 5.059 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008067/0.3118, allocations: 58.92 kB / 0.7023 GB, free: 5 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02335/0.3351, allocations: 9.928 MB / 0.712 GB, free: 10.89 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007377/0.3359, allocations: 0.946 MB / 0.7129 GB, free: 9.914 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0003576/0.3363, allocations: 65.14 kB / 0.713 GB, free: 9.852 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004978/0.3368, allocations: 287.3 kB / 0.7133 GB, free: 9.57 MB / 0.5137 GB Notification: Performance of SimCode: time 7.61e-07/0.3368, allocations: 0 / 0.7133 GB, free: 9.57 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06383/0.4007, allocations: 21.54 MB / 0.7343 GB, free: 4.137 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.06/12.46, allocations: 13.81 kB / 0.7343 GB, free: 4.125 MB / 0.5294 GB (rm -f OpenIPSL_dev_OpenIPSL.Examples.KundurSMIB.SMIB.pipe ; mkfifo OpenIPSL_dev_OpenIPSL.Examples.KundurSMIB.SMIB.pipe ; head -c 1048576 < OpenIPSL_dev_OpenIPSL.Examples.KundurSMIB.SMIB.pipe >> ../files/OpenIPSL_dev_OpenIPSL.Examples.KundurSMIB.SMIB.sim & python3 -m fmpy simulate --output-file OpenIPSL_dev_OpenIPSL.Examples.KundurSMIB.SMIB_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 OpenIPSL_dev_OpenIPSL_Examples_KundurSMIB_SMIB.fmu > OpenIPSL_dev_OpenIPSL.Examples.KundurSMIB.SMIB.pipe 2>&1)