Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_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.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.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII,fileNamePrefix="OpenIPSL_OpenIPSL_Examples_PSATSystems_ThreeArea_FourthOrder_AVRII",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII,fileNamePrefix="OpenIPSL_OpenIPSL_Examples_PSATSystems_ThreeArea_FourthOrder_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.00822/0.00822, allocations: 98.97 kB / 15.73 MB, free: 6.02 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.346/1.346, 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.001234/0.001234, allocations: 196.5 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.4871/0.4871, allocations: 78.53 MB / 418.4 MB, free: 3.27 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00304/0.00304, allocations: 79.81 kB / 0.5532 GB, free: 1.395 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3378/0.3409, allocations: 68.16 MB / 0.6198 GB, free: 9.32 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII): time 0.01021/0.3511, allocations: 13.68 MB / 0.6331 GB, free: 12.42 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.007721/0.3589, allocations: 3.468 MB / 0.6365 GB, free: 8.945 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002565/0.3615, allocations: 28 kB / 0.6365 GB, free: 8.918 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001972/0.3635, allocations: 0.5615 MB / 0.6371 GB, free: 8.348 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005971/0.3695, allocations: 1.578 MB / 0.6386 GB, free: 6.77 MB / 446.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/Electrical/Machines/PSAT/Order4.mo:25:3-30:9:writable] Warning: In relation order4_1.xq <> order4_1.x1q, <> on Real numbers is only allowed inside functions. Notification: Performance of NFTyping.typeClassSections: time 0.004194/0.3738, allocations: 1.512 MB / 0.6401 GB, free: 5.277 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0057/0.3795, allocations: 3.722 MB / 0.6437 GB, free: 1.539 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001438/0.3809, allocations: 0.9046 MB / 0.6446 GB, free: 0.5859 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002379/0.3833, allocations: 1.525 MB / 0.6461 GB, free: 15.05 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002557/0.3859, allocations: 1.956 MB / 0.648 GB, free: 13.09 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007627/0.3867, allocations: 284 kB / 0.6483 GB, free: 12.81 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001052/0.3878, allocations: 431.9 kB / 0.6487 GB, free: 12.39 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007071/0.3885, allocations: 0.7662 MB / 0.6495 GB, free: 11.62 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001889/0.3904, allocations: 1.627 MB / 0.651 GB, free: 9.984 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005065/0.3955, allocations: 3.996 MB / 0.6549 GB, free: 5.973 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.76e-06/0.3955, allocations: 0 / 0.6549 GB, free: 5.973 MB / 462.1 MB Notification: Performance of FrontEnd: time 3.276e-06/0.3955, allocations: 0 / 0.6549 GB, free: 5.973 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0001299/0.3956, allocations: 3.938 kB / 0.6549 GB, free: 5.969 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: 523 * Number of variables: 523 Notification: Performance of Generate backend data structure: time 0.02426/0.4199, allocations: 6.681 MB / 0.6615 GB, free: 15.19 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.304e-05/0.42, allocations: 8.031 kB / 0.6615 GB, free: 15.18 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004646/0.4204, allocations: 307.2 kB / 0.6618 GB, free: 14.87 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01568/0.4361, allocations: 2.292 MB / 0.664 GB, free: 12.57 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004263/0.4404, allocations: 1.888 MB / 0.6659 GB, free: 10.62 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008268/0.4413, allocations: 0.7329 MB / 0.6666 GB, free: 9.77 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007515/0.442, allocations: 220 kB / 0.6668 GB, free: 9.555 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007042/0.4491, allocations: 3.031 MB / 0.6697 GB, free: 6.445 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.407e-05/0.4492, allocations: 4 kB / 0.6697 GB, free: 6.441 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002794/0.4495, allocations: 87.92 kB / 0.6698 GB, free: 6.355 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.922e-05/0.4495, allocations: 52 kB / 0.6699 GB, free: 6.305 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006614/0.4561, allocations: 2.784 MB / 0.6726 GB, free: 3.504 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.02164/0.4778, allocations: 9.819 MB / 0.6822 GB, free: 9.262 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01198/0.4898, allocations: 4.188 MB / 0.6863 GB, free: 4.945 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004872/0.4947, allocations: 1.964 MB / 0.6882 GB, free: 2.965 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004107/0.4952, allocations: 45.95 kB / 0.6882 GB, free: 2.918 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005731/0.5009, allocations: 2.23 MB / 0.6904 GB, free: 0.668 MB / 494.1 MB Notification: Performance of pre-optimization done (n=248): time 8.797e-06/0.501, allocations: 4 kB / 0.6904 GB, free: 0.6641 MB / 494.1 MB Notification: Performance of matching and sorting (n=248): time 0.1196/0.6206, allocations: 27.32 MB / 0.7171 GB, free: 5.219 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001362/0.6207, allocations: 184.2 kB / 0.7173 GB, free: 5.004 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004024/0.6248, allocations: 2.277 MB / 0.7195 GB, free: 2.707 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.000642/0.6254, allocations: 69.7 kB / 0.7196 GB, free: 2.633 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.001086/0.6265, allocations: 1.181 MB / 0.7207 GB, free: 1.441 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.001653/0.6282, allocations: 0.914 MB / 0.7216 GB, free: 0.5195 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002199/0.6304, allocations: 0.562 MB / 0.7222 GB, free: 15.95 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.000114/0.6305, allocations: 301.1 kB / 0.7225 GB, free: 15.65 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005131/0.6357, allocations: 1.962 MB / 0.7244 GB, free: 13.68 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005274/0.641, allocations: 2.314 MB / 0.7266 GB, free: 11.28 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.05764/0.6986, allocations: 14.03 MB / 0.7403 GB, free: 13.02 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.919e-05/0.6987, allocations: 7.938 kB / 0.7403 GB, free: 13.01 MB / 0.545 GB Notification: Performance of matching and sorting (n=417) (initialization): time 0.04504/0.7438, allocations: 12.52 MB / 0.7526 GB, free: 436 kB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001118/0.7439, allocations: 114.8 kB / 0.7527 GB, free: 296 kB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.632e-05/0.7439, allocations: 8 kB / 0.7527 GB, free: 288 kB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01929/0.7632, allocations: 5.288 MB / 0.7578 GB, free: 10.99 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003205/0.7665, allocations: 0.5734 MB / 0.7584 GB, free: 10.41 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3484/1.115, allocations: 23.19 MB / 0.781 GB, free: 120.9 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00436/1.119, allocations: 495.1 kB / 0.7815 GB, free: 120.9 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004639/1.12, allocations: 121.4 kB / 0.7816 GB, free: 120.9 MB / 0.5606 GB Warning: Assuming fixed start value for the following 7 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 order4_1.delta:VARIABLE(flow=false start = order4_1.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real order4_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 (330): * Single equations (assignments): 325 * 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): 1 system {(63,25,8.1%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001289/1.121, allocations: 0.5323 MB / 0.7822 GB, free: 120.5 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000634/1.122, allocations: 311.4 kB / 0.7825 GB, free: 120.5 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03783/1.16, allocations: 11.9 MB / 0.7941 GB, free: 118.1 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.727e-05/1.16, allocations: 27.5 kB / 0.7941 GB, free: 118.1 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.155e-05/1.16, allocations: 19.66 kB / 0.7941 GB, free: 118.1 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.082e-05/1.16, allocations: 11.53 kB / 0.7941 GB, free: 118.1 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.04301/1.203, allocations: 15.5 MB / 0.8093 GB, free: 108.9 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.291e-05/1.203, allocations: 4 kB / 0.8093 GB, free: 108.9 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001488/1.204, allocations: 247.6 kB / 0.8095 GB, free: 108.7 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01645/1.221, allocations: 5.246 MB / 0.8146 GB, free: 103.4 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005735/1.221, allocations: 47.98 kB / 0.8147 GB, free: 103.4 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05407/1.275, allocations: 24.98 MB / 0.8391 GB, free: 78 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.435e-06/1.276, allocations: 0 / 0.8391 GB, free: 78 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04191/1.317, allocations: 14.3 MB / 0.853 GB, free: 63.59 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008989/1.318, allocations: 422.2 kB / 0.8534 GB, free: 63.2 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008061/1.319, allocations: 47.94 kB / 0.8535 GB, free: 63.15 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003189/1.322, allocations: 299.6 kB / 0.8538 GB, free: 62.86 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001997/1.324, allocations: 0.5802 MB / 0.8543 GB, free: 62.27 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002892/1.325, allocations: 67.98 kB / 0.8544 GB, free: 62.21 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.002118/1.327, allocations: 1.499 MB / 0.8559 GB, free: 60.7 MB / 0.5606 GB Notification: Performance of sort global known variables: time 2.3e-07/1.327, allocations: 0 / 0.8559 GB, free: 60.7 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.00378/1.331, allocations: 1.185 MB / 0.857 GB, free: 59.55 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 17 (order3_2.delta,order3_2.w,order3_2.e1q,order2.delta,order2.w,order4_1.delta,order4_1.w,order4_1.e1q,order4_1.e1d,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 (157): * Single equations (assignments): 152 * 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 {(65,23,7.8%)} * 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.04278/1.373, allocations: 14.92 MB / 0.8716 GB, free: 44.51 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01739/1.391, allocations: 6.637 MB / 0.8781 GB, free: 37.8 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 8.946e-06/1.391, allocations: 4.188 kB / 0.8781 GB, free: 37.79 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.01279/1.404, allocations: 4.421 MB / 0.8824 GB, free: 33.3 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002641/1.406, allocations: 263.6 kB / 0.8826 GB, free: 33.05 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1085/1.515, allocations: 41.9 MB / 0.9236 GB, free: 6.742 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001644/1.517, allocations: 1.802 MB / 0.9253 GB, free: 4.91 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.001261/1.518, allocations: 266.4 kB / 0.9256 GB, free: 4.652 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001738/1.52, allocations: 1.226 MB / 0.9268 GB, free: 3.426 MB / 0.5762 GB Notification: Performance of SimCode: time 1.263e-06/1.52, allocations: 4 kB / 0.9268 GB, free: 3.422 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1455/1.665, allocations: 87.75 MB / 1.012 GB, free: 11.85 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.96/20.63, allocations: 14.97 kB / 1.012 GB, free: 11.84 MB / 0.67 GB (rm -f OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII.pipe ; mkfifo OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII.pipe >> ../files/OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII.sim & python3 -m fmpy simulate --output-file OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_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_OpenIPSL_Examples_PSATSystems_ThreeArea_FourthOrder_AVRII.fmu > OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII.pipe 2>&1)