Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_dev_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.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.FourthOrder_AVRII,fileNamePrefix="OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_ThreeArea_FourthOrder_AVRII",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII,fileNamePrefix="OpenIPSL_dev_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.005284/0.005284, allocations: 95.92 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.372/1.372, 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.001445/0.001445, allocations: 188.5 kB / 289.7 MB, free: 2.258 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.5157/0.5157, allocations: 91.98 MB / 431.8 MB, free: 9.051 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002259/0.002259, allocations: 79.66 kB / 0.5724 GB, free: 33.8 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1185/0.1208, allocations: 71.3 MB / 0.642 GB, free: 3.941 MB / 446.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII): time 0.01408/0.1349, allocations: 13.71 MB / 0.6554 GB, free: 6.176 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.007681/0.1426, allocations: 3.472 MB / 0.6588 GB, free: 2.688 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002215/0.1449, allocations: 28 kB / 0.6588 GB, free: 2.66 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001503/0.1464, allocations: 0.5615 MB / 0.6594 GB, free: 2.094 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004085/0.1505, allocations: 1.419 MB / 0.6608 GB, free: 0.6719 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003336/0.1539, allocations: 1.522 MB / 0.6623 GB, free: 15.17 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.004752/0.1586, allocations: 3.729 MB / 0.6659 GB, free: 11.43 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001224/0.1599, allocations: 0.8934 MB / 0.6668 GB, free: 10.48 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002078/0.162, allocations: 1.521 MB / 0.6683 GB, free: 8.957 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002357/0.1643, allocations: 1.948 MB / 0.6702 GB, free: 7 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005338/0.1649, allocations: 284 kB / 0.6704 GB, free: 6.723 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009104/0.1658, allocations: 427.9 kB / 0.6708 GB, free: 6.305 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006911/0.1665, allocations: 0.7701 MB / 0.6716 GB, free: 5.531 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001665/0.1682, allocations: 1.627 MB / 0.6732 GB, free: 3.895 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00471/0.1729, allocations: 3.991 MB / 0.6771 GB, free: 15.89 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.889e-06/0.1729, allocations: 0 / 0.6771 GB, free: 15.89 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.1729, allocations: 0 / 0.6771 GB, free: 15.89 MB / 494.1 MB Notification: Performance of Transformations before backend: time 8.221e-05/0.173, allocations: 0 / 0.6771 GB, free: 15.89 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: 523 * Number of variables: 523 Notification: Performance of Generate backend data structure: time 0.02447/0.1975, allocations: 6.685 MB / 0.6836 GB, free: 9.102 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.44e-05/0.1976, allocations: 8.031 kB / 0.6836 GB, free: 9.094 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005024/0.1981, allocations: 307.2 kB / 0.6839 GB, free: 8.781 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01526/0.2133, allocations: 2.288 MB / 0.6861 GB, free: 6.488 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004378/0.2178, allocations: 1.888 MB / 0.688 GB, free: 4.535 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009192/0.2187, allocations: 0.7329 MB / 0.6887 GB, free: 3.688 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008072/0.2195, allocations: 216 kB / 0.6889 GB, free: 3.477 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007849/0.2274, allocations: 3.032 MB / 0.6919 GB, free: 376 kB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.549e-05/0.2275, allocations: 0 / 0.6919 GB, free: 376 kB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003686/0.2278, allocations: 87.92 kB / 0.6919 GB, free: 288 kB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.361e-05/0.2279, allocations: 48 kB / 0.692 GB, free: 240 kB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006804/0.2347, allocations: 2.784 MB / 0.6947 GB, free: 13.43 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.02057/0.2553, allocations: 9.862 MB / 0.7043 GB, free: 3.156 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0129/0.2682, allocations: 4.184 MB / 0.7084 GB, free: 14.83 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004789/0.2731, allocations: 1.968 MB / 0.7103 GB, free: 12.86 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004149/0.2735, allocations: 41.97 kB / 0.7104 GB, free: 12.82 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005563/0.2791, allocations: 2.224 MB / 0.7126 GB, free: 10.57 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=248): time 6.051e-06/0.2791, allocations: 0 / 0.7126 GB, free: 10.57 MB / 0.5137 GB Notification: Performance of matching and sorting (n=248): time 0.127/0.4061, allocations: 28.19 MB / 0.7401 GB, free: 14.26 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001228/0.4063, allocations: 184.2 kB / 0.7403 GB, free: 14.04 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004021/0.4103, allocations: 2.285 MB / 0.7425 GB, free: 11.74 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.000569/0.4109, allocations: 73.69 kB / 0.7426 GB, free: 11.66 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.001061/0.412, allocations: 1.181 MB / 0.7437 GB, free: 10.47 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.001312/0.4133, allocations: 0.9141 MB / 0.7446 GB, free: 9.547 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001787/0.4151, allocations: 0.562 MB / 0.7452 GB, free: 8.977 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001227/0.4152, allocations: 305.1 kB / 0.7454 GB, free: 8.676 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00492/0.4202, allocations: 1.954 MB / 0.7474 GB, free: 6.719 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005134/0.4253, allocations: 2.33 MB / 0.7496 GB, free: 4.297 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.05766/0.483, allocations: 14.01 MB / 0.7633 GB, free: 6.051 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-05/0.4831, allocations: 7.938 kB / 0.7633 GB, free: 6.043 MB / 0.5606 GB Notification: Performance of matching and sorting (n=417) (initialization): time 0.2917/0.7748, allocations: 12.51 MB / 0.7755 GB, free: 108.1 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 6.748e-05/0.7749, allocations: 115.3 kB / 0.7757 GB, free: 108 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.008e-05/0.7749, allocations: 11 kB / 0.7757 GB, free: 108 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01762/0.7925, allocations: 5.286 MB / 0.7808 GB, free: 107.8 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00281/0.7954, allocations: 0.5683 MB / 0.7814 GB, free: 107.8 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05266/0.848, allocations: 23.2 MB / 0.804 GB, free: 99.21 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003958/0.852, allocations: 495.8 kB / 0.8045 GB, free: 98.86 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002596/0.8523, allocations: 120 kB / 0.8046 GB, free: 98.75 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.001013/0.8533, allocations: 0.5295 MB / 0.8051 GB, free: 98.21 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004257/0.8538, allocations: 314.7 kB / 0.8054 GB, free: 97.93 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03648/0.8903, allocations: 11.9 MB / 0.8171 GB, free: 85.98 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.571e-05/0.8903, allocations: 28 kB / 0.8171 GB, free: 85.96 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.258e-05/0.8904, allocations: 16 kB / 0.8171 GB, free: 85.94 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.996e-05/0.8904, allocations: 11.95 kB / 0.8171 GB, free: 85.93 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.04181/0.9323, allocations: 15.51 MB / 0.8323 GB, free: 70.36 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.905e-05/0.9323, allocations: 0 / 0.8323 GB, free: 70.36 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001372/0.9337, allocations: 247.8 kB / 0.8325 GB, free: 70.12 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0165/0.9502, allocations: 5.239 MB / 0.8376 GB, free: 64.86 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005319/0.9508, allocations: 55.98 kB / 0.8377 GB, free: 64.81 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05215/1.003, allocations: 24.98 MB / 0.8621 GB, free: 39.45 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.885e-06/1.003, allocations: 0 / 0.8621 GB, free: 39.45 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04034/1.043, allocations: 14.29 MB / 0.876 GB, free: 25.05 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000751/1.044, allocations: 437.1 kB / 0.8764 GB, free: 24.64 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004549/1.045, allocations: 47.94 kB / 0.8765 GB, free: 24.6 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002751/1.047, allocations: 295.6 kB / 0.8768 GB, free: 24.31 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001959/1.049, allocations: 0.5841 MB / 0.8773 GB, free: 23.72 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002312/1.05, allocations: 64.48 kB / 0.8774 GB, free: 23.66 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.001907/1.051, allocations: 1.503 MB / 0.8789 GB, free: 22.15 MB / 0.5606 GB Notification: Performance of sort global known variables: time 2.3e-07/1.051, allocations: 0 / 0.8789 GB, free: 22.15 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.002963/1.054, allocations: 1.174 MB / 0.88 GB, free: 21.01 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.04177/1.096, allocations: 14.92 MB / 0.8946 GB, free: 5.977 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01726/1.114, allocations: 6.636 MB / 0.9011 GB, free: 15.27 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 6.903e-06/1.114, allocations: 0 / 0.9011 GB, free: 15.27 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.01407/1.128, allocations: 4.415 MB / 0.9054 GB, free: 10.79 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001908/1.13, allocations: 284.2 kB / 0.9056 GB, free: 10.52 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1149/1.245, allocations: 41.87 MB / 0.9465 GB, free: 248 kB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001527/1.246, allocations: 1.813 MB / 0.9483 GB, free: 14.4 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.001109/1.247, allocations: 266.5 kB / 0.9485 GB, free: 14.14 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001635/1.249, allocations: 1.23 MB / 0.9497 GB, free: 12.91 MB / 0.6231 GB Notification: Performance of SimCode: time 6.31e-07/1.249, allocations: 3.938 kB / 0.9498 GB, free: 12.9 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1527/1.402, allocations: 87.76 MB / 1.035 GB, free: 5.352 MB / 0.7012 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.45/18.85, allocations: 0 / 1.035 GB, free: 5.352 MB / 0.7012 GB (rm -f OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII.pipe ; mkfifo OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII.pipe >> ../files/OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII.sim & python3 -m fmpy simulate --output-file OpenIPSL_dev_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_dev_OpenIPSL_Examples_PSATSystems_ThreeArea_FourthOrder_AVRII.fmu > OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII.pipe 2>&1)