Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRII.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.PSATSystems.ThreeArea.ThirdOrder_AVRII,fileNamePrefix="OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_ThreeArea_ThirdOrder_AVRII",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRII,fileNamePrefix="OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_ThreeArea_ThirdOrder_AVRII",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.01024/0.01024, 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.484/1.484, allocations: 222.9 MB / 239.4 MB, free: 4.535 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.002204/0.002204, allocations: 184.5 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.5658/0.5658, allocations: 91.91 MB / 431.8 MB, free: 9.152 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00141/0.00141, allocations: 84.23 kB / 0.5723 GB, free: 33.66 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1353/0.1367, allocations: 71.28 MB / 0.6419 GB, free: 4.027 MB / 446.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRII): time 0.01392/0.1507, allocations: 13.62 MB / 0.6552 GB, free: 6.352 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.01241/0.1631, allocations: 3.468 MB / 0.6586 GB, free: 2.867 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004334/0.1675, allocations: 28 kB / 0.6586 GB, free: 2.84 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003469/0.1711, allocations: 0.5576 MB / 0.6592 GB, free: 2.277 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009408/0.1805, allocations: 1.58 MB / 0.6607 GB, free: 0.6953 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006817/0.1874, allocations: 1.497 MB / 0.6622 GB, free: 15.22 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.009169/0.1966, allocations: 3.722 MB / 0.6658 GB, free: 11.48 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00294/0.1996, allocations: 0.8934 MB / 0.6667 GB, free: 10.54 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004211/0.2038, allocations: 1.532 MB / 0.6682 GB, free: 9 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004955/0.2088, allocations: 1.956 MB / 0.6701 GB, free: 7.035 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00163/0.2104, allocations: 284 kB / 0.6704 GB, free: 6.758 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002484/0.213, allocations: 431.8 kB / 0.6708 GB, free: 6.336 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001901/0.2149, allocations: 0.7585 MB / 0.6715 GB, free: 5.574 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00413/0.219, allocations: 1.631 MB / 0.6731 GB, free: 3.934 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01068/0.2298, allocations: 3.991 MB / 0.677 GB, free: 15.93 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.305e-06/0.2298, allocations: 0 / 0.677 GB, free: 15.93 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.264e-06/0.2298, allocations: 0 / 0.677 GB, free: 15.93 MB / 494.1 MB Notification: Performance of Transformations before backend: time 0.0001731/0.23, allocations: 0 / 0.677 GB, free: 15.93 MB / 494.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 522 * Number of variables: 522 Notification: Performance of Generate backend data structure: time 0.04323/0.2733, allocations: 6.689 MB / 0.6835 GB, free: 9.137 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.25e-05/0.2734, allocations: 8.031 kB / 0.6835 GB, free: 9.129 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001261/0.2746, allocations: 303.2 kB / 0.6838 GB, free: 8.824 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02819/0.3028, allocations: 2.292 MB / 0.6861 GB, free: 6.527 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008292/0.3112, allocations: 1.896 MB / 0.6879 GB, free: 4.566 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001435/0.3127, allocations: 0.7213 MB / 0.6886 GB, free: 3.73 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001438/0.3141, allocations: 227.8 kB / 0.6888 GB, free: 3.508 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01346/0.3276, allocations: 3.027 MB / 0.6918 GB, free: 412 kB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.272e-05/0.3278, allocations: 7.984 kB / 0.6918 GB, free: 404 kB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000766/0.3285, allocations: 87.94 kB / 0.6919 GB, free: 316 kB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.704e-05/0.3286, allocations: 48 kB / 0.6919 GB, free: 268 kB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01045/0.3391, allocations: 2.784 MB / 0.6947 GB, free: 13.46 MB / 0.4981 GB 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.02435/0.3635, allocations: 9.804 MB / 0.7042 GB, free: 3.242 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01175/0.3753, allocations: 4.188 MB / 0.7083 GB, free: 14.91 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004748/0.3801, allocations: 1.972 MB / 0.7102 GB, free: 12.94 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004132/0.3805, allocations: 41.95 kB / 0.7103 GB, free: 12.9 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005516/0.3861, allocations: 2.223 MB / 0.7125 GB, free: 10.66 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=247): time 9.578e-06/0.3861, allocations: 0 / 0.7125 GB, free: 10.66 MB / 0.5137 GB Notification: Performance of matching and sorting (n=247): time 0.1292/0.5153, allocations: 29.48 MB / 0.7412 GB, free: 13.05 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000148/0.5155, allocations: 188.1 kB / 0.7414 GB, free: 12.83 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004576/0.5201, allocations: 2.273 MB / 0.7436 GB, free: 10.54 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0007293/0.5209, allocations: 77.77 kB / 0.7437 GB, free: 10.45 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.001133/0.522, allocations: 1.189 MB / 0.7449 GB, free: 9.254 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.001528/0.5235, allocations: 0.9102 MB / 0.7458 GB, free: 8.336 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002346/0.5259, allocations: 0.558 MB / 0.7463 GB, free: 7.77 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001121/0.526, allocations: 305.1 kB / 0.7466 GB, free: 7.469 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004822/0.5309, allocations: 1.943 MB / 0.7485 GB, free: 5.523 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005157/0.536, allocations: 2.314 MB / 0.7508 GB, free: 3.117 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.05636/0.5924, allocations: 13.99 MB / 0.7644 GB, free: 4.895 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.51e-05/0.5925, allocations: 11.94 kB / 0.7644 GB, free: 4.883 MB / 0.5606 GB Notification: Performance of matching and sorting (n=413) (initialization): time 0.36/0.9525, allocations: 12.29 MB / 0.7764 GB, free: 109.3 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 9.886e-05/0.9526, allocations: 119.9 kB / 0.7766 GB, free: 109.2 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.988e-05/0.9526, allocations: 8.531 kB / 0.7766 GB, free: 109.2 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01831/0.971, allocations: 5.314 MB / 0.7817 GB, free: 109.1 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002881/0.9739, allocations: 0.566 MB / 0.7823 GB, free: 109 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05522/1.029, allocations: 23.51 MB / 0.8053 GB, free: 99.02 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00445/1.034, allocations: 494.9 kB / 0.8057 GB, free: 98.67 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000383/1.034, allocations: 119.9 kB / 0.8058 GB, free: 98.55 MB / 0.5606 GB Warning: Assuming fixed start value for the following 6 variables: order3_2.delta:VARIABLE(flow=false start = order3_2.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real order3_2.w:VARIABLE(flow=false start = 1.0 fixed = true ) "Rotor speed [pu]" type: Real order3_2.e1q:VARIABLE(start = order3_2.e1q0 unit = "1" fixed = true ) "q-axis transient voltage" type: Real order2.delta:VARIABLE(flow=false start = order2.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real order2.w:VARIABLE(flow=false start = 1.0 fixed = true ) "Rotor speed [pu]" type: Real order3_1.w:VARIABLE(flow=false start = 1.0 fixed = true ) "Rotor speed [pu]" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 29 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition2,$whenCondition1,$whenCondition4,$whenCondition3) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (325): * Single equations (assignments): 320 * Array equations: 0 * Algorithm blocks: 4 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 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 {(63,26)} Notification: Performance of prepare postOptimizeDAE: time 0.001204/1.035, allocations: 0.5344 MB / 0.8064 GB, free: 98.01 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005709/1.036, allocations: 311 kB / 0.8067 GB, free: 97.72 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03638/1.072, allocations: 11.9 MB / 0.8183 GB, free: 85.79 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.663e-05/1.072, allocations: 32 kB / 0.8183 GB, free: 85.75 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.648e-05/1.072, allocations: 16 kB / 0.8183 GB, free: 85.74 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.117e-05/1.072, allocations: 15.95 kB / 0.8183 GB, free: 85.72 MB / 0.5606 GB 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.0403/1.113, allocations: 15.49 MB / 0.8335 GB, free: 70.17 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.44e-05/1.113, allocations: 1.812 kB / 0.8335 GB, free: 70.17 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001534/1.114, allocations: 251.6 kB / 0.8337 GB, free: 69.92 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01677/1.131, allocations: 5.279 MB / 0.8389 GB, free: 64.62 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009077/1.132, allocations: 51.98 kB / 0.8389 GB, free: 64.57 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0532/1.185, allocations: 24.97 MB / 0.8633 GB, free: 39.21 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.527e-06/1.185, allocations: 0 / 0.8633 GB, free: 39.21 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04097/1.226, allocations: 14.28 MB / 0.8772 GB, free: 24.82 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001183/1.228, allocations: 420.6 kB / 0.8777 GB, free: 24.43 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000588/1.228, allocations: 52.88 kB / 0.8777 GB, free: 24.38 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002816/1.231, allocations: 295.6 kB / 0.878 GB, free: 24.09 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001885/1.233, allocations: 0.588 MB / 0.8786 GB, free: 23.5 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001745/1.233, allocations: 65.58 kB / 0.8786 GB, free: 23.43 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.001837/1.235, allocations: 1.511 MB / 0.8801 GB, free: 21.92 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.6e-07/1.235, allocations: 0 / 0.8801 GB, free: 21.92 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.003157/1.238, allocations: 1.182 MB / 0.8812 GB, free: 20.74 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 16 (order3_2.delta,order3_2.w,order3_2.e1q,order2.delta,order2.w,order3_1.delta,order3_1.w,order3_1.e1q,Exc1.ExcitationSystem.x_scaled[1],Exc1.derivativeBlock.x,Exc1.firstOrder2.y,Exc1.simpleLagLim.state,Exc2.ExcitationSystem.x_scaled[1],Exc2.derivativeBlock.x,Exc2.firstOrder2.y,Exc2.simpleLagLim.state) * Number of discrete variables: 4 ($whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (156): * Single equations (assignments): 151 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(66,22,7.7%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,6), (1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.04122/1.279, allocations: 14.91 MB / 0.8958 GB, free: 5.719 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0184/1.298, allocations: 6.708 MB / 0.9024 GB, free: 14.94 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.323e-05/1.298, allocations: 7.938 kB / 0.9024 GB, free: 14.93 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.01489/1.313, allocations: 4.432 MB / 0.9067 GB, free: 10.44 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004152/1.317, allocations: 261.8 kB / 0.9069 GB, free: 10.19 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1261/1.443, allocations: 41.4 MB / 0.9474 GB, free: 364 kB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002389/1.445, allocations: 1.803 MB / 0.9491 GB, free: 14.52 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.001581/1.447, allocations: 262.5 kB / 0.9494 GB, free: 14.26 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002183/1.449, allocations: 1.237 MB / 0.9506 GB, free: 13.02 MB / 0.6231 GB Notification: Performance of SimCode: time 9.52e-07/1.449, allocations: 0 / 0.9506 GB, free: 13.02 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2038/1.653, allocations: 89.64 MB / 1.038 GB, free: 3.602 MB / 0.7012 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.96/20.61, allocations: 3.859 kB / 1.038 GB, free: 3.598 MB / 0.7012 GB (rm -f OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRII.pipe ; mkfifo OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRII.pipe >> ../files/OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRII.sim & python3 -m fmpy simulate --output-file OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRII_res.csv --start-time 0 --stop-time 20 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.008 OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_ThreeArea_ThirdOrder_AVRII.fmu > OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRII.pipe 2>&1)