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.007664/0.007664, allocations: 101.3 kB / 15.73 MB, free: 6.039 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.327/1.327, allocations: 222.9 MB / 239.4 MB, free: 4.543 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.001853/0.001853, allocations: 188.5 kB / 289.7 MB, free: 2.25 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.4879/0.4879, allocations: 91.9 MB / 431.8 MB, free: 9.156 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001408/0.001408, allocations: 78.47 kB / 0.5722 GB, free: 33.88 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1208/0.1222, allocations: 71.29 MB / 0.6418 GB, free: 4.086 MB / 446.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.KundurSMIB.SMIB): time 0.004951/0.1272, allocations: 4.913 MB / 0.6466 GB, free: 15.14 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.002822/0.1301, allocations: 1.603 MB / 0.6482 GB, free: 13.54 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004172/0.1305, allocations: 4 kB / 0.6482 GB, free: 13.54 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004255/0.1309, allocations: 154.7 kB / 0.6484 GB, free: 13.38 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001487/0.1325, allocations: 0.6791 MB / 0.649 GB, free: 12.7 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007848/0.1333, allocations: 432.1 kB / 0.6494 GB, free: 12.29 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.001037/0.1343, allocations: 1.079 MB / 0.6505 GB, free: 11.2 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002991/0.1346, allocations: 214.2 kB / 0.6507 GB, free: 10.98 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004823/0.1351, allocations: 454.2 kB / 0.6511 GB, free: 10.54 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005407/0.1357, allocations: 0.5563 MB / 0.6517 GB, free: 9.977 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001238/0.1358, allocations: 96 kB / 0.6518 GB, free: 9.883 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003872/0.1362, allocations: 231.9 kB / 0.652 GB, free: 9.656 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001715/0.1364, allocations: 239.1 kB / 0.6522 GB, free: 9.422 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000346/0.1367, allocations: 469.4 kB / 0.6527 GB, free: 8.961 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001154/0.1379, allocations: 1.265 MB / 0.6539 GB, free: 7.691 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.1379, allocations: 3.938 kB / 0.6539 GB, free: 7.688 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.1379, allocations: 0 / 0.6539 GB, free: 7.688 MB / 462.1 MB Notification: Performance of Transformations before backend: time 1.007e-05/0.1379, allocations: 0 / 0.6539 GB, free: 7.688 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.004881/0.1428, allocations: 1.783 MB / 0.6556 GB, free: 5.852 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.499e-05/0.1429, allocations: 12.03 kB / 0.6557 GB, free: 5.84 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001069/0.143, allocations: 90.7 kB / 0.6557 GB, free: 5.742 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003081/0.1461, allocations: 0.5306 MB / 0.6563 GB, free: 5.211 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008761/0.147, allocations: 0.6515 MB / 0.6569 GB, free: 4.52 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001627/0.1471, allocations: 138.1 kB / 0.657 GB, free: 4.367 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001075/0.1472, allocations: 56 kB / 0.6571 GB, free: 4.312 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001224/0.1485, allocations: 0.6545 MB / 0.6577 GB, free: 3.652 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.429e-05/0.1485, allocations: 3.938 kB / 0.6577 GB, free: 3.648 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.609e-05/0.1486, allocations: 20 kB / 0.6577 GB, free: 3.629 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.239e-05/0.1486, allocations: 15.94 kB / 0.6578 GB, free: 3.613 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00115/0.1497, allocations: 0.6286 MB / 0.6584 GB, free: 2.98 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.004003/0.1537, allocations: 2.624 MB / 0.6609 GB, free: 252 kB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01121/0.165, allocations: 2.807 MB / 0.6637 GB, free: 13.39 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008886/0.1659, allocations: 450.4 kB / 0.6641 GB, free: 12.95 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.046e-05/0.166, allocations: 4.562 kB / 0.6641 GB, free: 12.94 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.728e-05/0.166, allocations: 39.12 kB / 0.6641 GB, free: 12.89 MB / 478.1 MB Notification: Performance of pre-optimization done (n=57): time 4.128e-06/0.166, allocations: 0 / 0.6641 GB, free: 12.89 MB / 478.1 MB Notification: Performance of matching and sorting (n=57): time 0.01161/0.1776, allocations: 3.536 MB / 0.6676 GB, free: 9.289 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.884e-05/0.1777, allocations: 63.91 kB / 0.6677 GB, free: 9.215 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001001/0.1787, allocations: 0.7662 MB / 0.6684 GB, free: 8.438 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 8.257e-05/0.1788, allocations: 37.7 kB / 0.6684 GB, free: 8.395 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002321/0.1791, allocations: 365 kB / 0.6688 GB, free: 8.031 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001943/0.1793, allocations: 214.2 kB / 0.669 GB, free: 7.82 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002965/0.1796, allocations: 170.6 kB / 0.6692 GB, free: 7.648 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001419/0.1797, allocations: 394.7 kB / 0.6695 GB, free: 7.254 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009385/0.1807, allocations: 0.49 MB / 0.67 GB, free: 6.762 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009854/0.1816, allocations: 0.5953 MB / 0.6706 GB, free: 6.145 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01425/0.1959, allocations: 3.568 MB / 0.6741 GB, free: 2.551 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.382e-06/0.196, allocations: 0 / 0.6741 GB, free: 2.551 MB / 478.1 MB Notification: Performance of matching and sorting (n=114) (initialization): time 0.006718/0.2027, allocations: 2.4 MB / 0.6764 GB, free: 136 kB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.676e-05/0.2028, allocations: 5.094 kB / 0.6764 GB, free: 132 kB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.507e-05/0.2028, allocations: 11.98 kB / 0.6764 GB, free: 120 kB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003931/0.2067, allocations: 1.042 MB / 0.6775 GB, free: 15.07 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008097/0.2075, allocations: 151.7 kB / 0.6776 GB, free: 14.92 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009859/0.2174, allocations: 5.071 MB / 0.6826 GB, free: 9.695 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001174/0.2186, allocations: 115.5 kB / 0.6827 GB, free: 9.582 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.98e-05/0.2187, allocations: 36.12 kB / 0.6827 GB, free: 9.547 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.0004422/0.2192, allocations: 224 kB / 0.6829 GB, free: 9.32 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001374/0.2193, allocations: 87.42 kB / 0.683 GB, free: 9.234 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005427/0.2248, allocations: 1.945 MB / 0.6849 GB, free: 7.27 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.336e-06/0.2248, allocations: 8 kB / 0.6849 GB, free: 7.262 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.973e-06/0.2248, allocations: 4 kB / 0.6849 GB, free: 7.258 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.835e-05/0.2248, allocations: 3.984 kB / 0.6849 GB, free: 7.254 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.00655/0.2314, allocations: 3.036 MB / 0.6879 GB, free: 4.117 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.462e-06/0.2314, allocations: 0 / 0.6879 GB, free: 4.117 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004312/0.2319, allocations: 63.91 kB / 0.6879 GB, free: 4.055 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003043/0.2349, allocations: 0.9364 MB / 0.6888 GB, free: 3.109 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.434e-05/0.235, allocations: 12 kB / 0.6889 GB, free: 3.098 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007587/0.2426, allocations: 4.11 MB / 0.6929 GB, free: 14.85 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.617e-06/0.2426, allocations: 7.938 kB / 0.6929 GB, free: 14.84 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006366/0.249, allocations: 2.516 MB / 0.6953 GB, free: 12.3 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003154/0.2493, allocations: 184.4 kB / 0.6955 GB, free: 12.1 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001036/0.2495, allocations: 16 kB / 0.6955 GB, free: 12.09 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006999/0.2502, allocations: 51.94 kB / 0.6956 GB, free: 12.04 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003119/0.2505, allocations: 120.4 kB / 0.6957 GB, free: 11.92 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.529e-05/0.2505, allocations: 8 kB / 0.6957 GB, free: 11.91 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0006119/0.2512, allocations: 0.5225 MB / 0.6962 GB, free: 11.39 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.31e-07/0.2512, allocations: 0 / 0.6962 GB, free: 11.39 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0008489/0.252, allocations: 303.8 kB / 0.6965 GB, free: 11.1 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.006705/0.2587, allocations: 3.083 MB / 0.6995 GB, free: 7.977 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.004164/0.2629, allocations: 1.746 MB / 0.7012 GB, free: 6.168 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 5.029e-06/0.263, allocations: 0 / 0.7012 GB, free: 6.168 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.002559/0.2655, allocations: 1.087 MB / 0.7023 GB, free: 5.027 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006721/0.2662, allocations: 62.94 kB / 0.7023 GB, free: 4.965 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01977/0.286, allocations: 9.929 MB / 0.712 GB, free: 10.85 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004404/0.2865, allocations: 0.946 MB / 0.713 GB, free: 9.875 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0002722/0.2868, allocations: 69.12 kB / 0.713 GB, free: 9.809 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000367/0.2871, allocations: 283.3 kB / 0.7133 GB, free: 9.531 MB / 0.5137 GB Notification: Performance of SimCode: time 9.81e-07/0.2871, allocations: 0 / 0.7133 GB, free: 9.531 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04944/0.3366, allocations: 21.54 MB / 0.7343 GB, free: 4.098 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.76/12.1, allocations: 11.98 kB / 0.7343 GB, free: 4.086 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)