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.006034/0.006034, allocations: 97.27 kB / 15.73 MB, free: 5.602 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.474/1.474, allocations: 222.9 MB / 239.4 MB, free: 4.352 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.001744/0.001745, allocations: 184.5 kB / 289.7 MB, free: 2.094 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.5778/0.5778, allocations: 91.91 MB / 431.8 MB, free: 9.113 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002282/0.002282, allocations: 82.31 kB / 0.5723 GB, free: 33.94 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1481/0.1504, allocations: 71.28 MB / 0.6419 GB, free: 4.125 MB / 446.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRII): time 0.01569/0.1661, allocations: 13.62 MB / 0.6552 GB, free: 6.445 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.009364/0.1755, allocations: 3.461 MB / 0.6586 GB, free: 2.969 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003593/0.1792, allocations: 28 kB / 0.6586 GB, free: 2.941 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00228/0.1815, allocations: 0.5615 MB / 0.6592 GB, free: 2.375 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006248/0.1878, allocations: 1.426 MB / 0.6606 GB, free: 0.9453 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004472/0.1923, allocations: 1.505 MB / 0.662 GB, free: 15.46 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.006843/0.1991, allocations: 3.725 MB / 0.6657 GB, free: 11.72 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001709/0.2009, allocations: 0.8895 MB / 0.6665 GB, free: 10.78 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002841/0.2038, allocations: 1.525 MB / 0.668 GB, free: 9.25 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003091/0.2069, allocations: 1.952 MB / 0.6699 GB, free: 7.289 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008426/0.2077, allocations: 284 kB / 0.6702 GB, free: 7.012 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001114/0.2089, allocations: 435.8 kB / 0.6706 GB, free: 6.586 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007203/0.2096, allocations: 0.7584 MB / 0.6714 GB, free: 5.824 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001824/0.2114, allocations: 1.639 MB / 0.673 GB, free: 4.176 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005418/0.2169, allocations: 3.987 MB / 0.6769 GB, free: 176 kB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.96e-06/0.2169, allocations: 0 / 0.6769 GB, free: 176 kB / 478.1 MB Notification: Performance of FrontEnd: time 2.444e-06/0.2169, allocations: 0 / 0.6769 GB, free: 176 kB / 478.1 MB Notification: Performance of Transformations before backend: time 0.0001459/0.2171, allocations: 0 / 0.6769 GB, free: 176 kB / 478.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.02357/0.2406, allocations: 6.685 MB / 0.6834 GB, free: 9.383 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.512e-05/0.2407, allocations: 8.031 kB / 0.6834 GB, free: 9.375 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004763/0.2412, allocations: 303.2 kB / 0.6837 GB, free: 9.07 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01531/0.2565, allocations: 2.296 MB / 0.6859 GB, free: 6.77 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004699/0.2612, allocations: 1.9 MB / 0.6878 GB, free: 4.805 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008446/0.2621, allocations: 0.7291 MB / 0.6885 GB, free: 3.961 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006675/0.2628, allocations: 216 kB / 0.6887 GB, free: 3.75 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006692/0.2695, allocations: 3.031 MB / 0.6917 GB, free: 0.6406 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.768e-05/0.2696, allocations: 0 / 0.6917 GB, free: 0.6406 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002637/0.2698, allocations: 87.94 kB / 0.6917 GB, free: 0.5547 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.42e-05/0.2699, allocations: 48 kB / 0.6918 GB, free: 0.5078 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006075/0.276, allocations: 2.788 MB / 0.6945 GB, free: 13.7 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.02067/0.2967, allocations: 9.8 MB / 0.7041 GB, free: 3.488 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01128/0.308, allocations: 4.192 MB / 0.7082 GB, free: 15.15 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004507/0.3125, allocations: 1.964 MB / 0.7101 GB, free: 13.19 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002933/0.3128, allocations: 41.95 kB / 0.7101 GB, free: 13.15 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004981/0.3178, allocations: 2.228 MB / 0.7123 GB, free: 10.9 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=247): time 5.391e-06/0.3179, allocations: 3.938 kB / 0.7123 GB, free: 10.89 MB / 0.5137 GB Notification: Performance of matching and sorting (n=247): time 0.1261/0.444, allocations: 29.48 MB / 0.7411 GB, free: 13.29 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002182/0.4442, allocations: 184.3 kB / 0.7413 GB, free: 13.07 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0056/0.4499, allocations: 2.277 MB / 0.7435 GB, free: 10.78 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0008339/0.4507, allocations: 73.7 kB / 0.7436 GB, free: 10.7 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.001366/0.4521, allocations: 1.189 MB / 0.7447 GB, free: 9.5 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.00183/0.454, allocations: 0.9102 MB / 0.7456 GB, free: 8.582 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002826/0.4568, allocations: 0.5619 MB / 0.7462 GB, free: 8.012 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001659/0.457, allocations: 305.1 kB / 0.7465 GB, free: 7.711 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005068/0.4621, allocations: 1.947 MB / 0.7484 GB, free: 5.762 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00538/0.4675, allocations: 2.31 MB / 0.7506 GB, free: 3.359 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.05709/0.5246, allocations: 13.99 MB / 0.7643 GB, free: 5.133 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.691e-05/0.5247, allocations: 11.88 kB / 0.7643 GB, free: 5.121 MB / 0.5606 GB Notification: Performance of matching and sorting (n=413) (initialization): time 0.3838/0.9085, allocations: 12.29 MB / 0.7763 GB, free: 109.2 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 9.522e-05/0.9086, allocations: 123.3 kB / 0.7764 GB, free: 109 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.539e-05/0.9087, allocations: 7.156 kB / 0.7764 GB, free: 109 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01824/0.9269, allocations: 5.315 MB / 0.7816 GB, free: 108.9 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003011/0.93, allocations: 0.5637 MB / 0.7822 GB, free: 108.9 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05277/0.9828, allocations: 23.51 MB / 0.8051 GB, free: 99.17 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004455/0.9873, allocations: 491.1 kB / 0.8056 GB, free: 98.82 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007819/0.9881, allocations: 123.9 kB / 0.8057 GB, free: 98.7 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.00202/0.9901, allocations: 0.5327 MB / 0.8062 GB, free: 98.16 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001108/0.9912, allocations: 310.5 kB / 0.8065 GB, free: 97.87 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03544/1.027, allocations: 11.9 MB / 0.8181 GB, free: 85.93 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.427e-05/1.027, allocations: 31.98 kB / 0.8182 GB, free: 85.9 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.485e-05/1.027, allocations: 16 kB / 0.8182 GB, free: 85.89 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.362e-05/1.027, allocations: 15.95 kB / 0.8182 GB, free: 85.87 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.04385/1.071, allocations: 15.49 MB / 0.8333 GB, free: 70.32 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.877e-05/1.071, allocations: 0 / 0.8333 GB, free: 70.32 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001514/1.072, allocations: 247.2 kB / 0.8336 GB, free: 70.08 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01565/1.088, allocations: 5.286 MB / 0.8387 GB, free: 64.78 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007159/1.089, allocations: 47.98 kB / 0.8388 GB, free: 64.73 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05345/1.142, allocations: 24.98 MB / 0.8632 GB, free: 39.36 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.657e-06/1.142, allocations: 0 / 0.8632 GB, free: 39.36 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04104/1.183, allocations: 14.29 MB / 0.8771 GB, free: 24.97 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009752/1.184, allocations: 426 kB / 0.8775 GB, free: 24.57 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001138/1.186, allocations: 44 kB / 0.8776 GB, free: 24.52 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00349/1.189, allocations: 295.6 kB / 0.8778 GB, free: 24.23 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002391/1.192, allocations: 0.5879 MB / 0.8784 GB, free: 23.64 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005424/1.192, allocations: 63.98 kB / 0.8785 GB, free: 23.58 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.002571/1.195, allocations: 1.515 MB / 0.88 GB, free: 22.06 MB / 0.5606 GB Notification: Performance of sort global known variables: time 2.91e-07/1.195, allocations: 0 / 0.88 GB, free: 22.06 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.004681/1.199, allocations: 1.176 MB / 0.8811 GB, free: 20.89 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.04179/1.241, allocations: 14.91 MB / 0.8957 GB, free: 5.859 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01804/1.259, allocations: 6.711 MB / 0.9022 GB, free: 15.07 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 9.498e-06/1.259, allocations: 5.75 kB / 0.9022 GB, free: 15.07 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.01462/1.274, allocations: 4.413 MB / 0.9065 GB, free: 10.6 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003601/1.278, allocations: 271.5 kB / 0.9068 GB, free: 10.34 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1264/1.404, allocations: 41.4 MB / 0.9472 GB, free: 0.5078 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002649/1.407, allocations: 1.81 MB / 0.949 GB, free: 14.66 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.001573/1.408, allocations: 258.5 kB / 0.9492 GB, free: 14.41 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002375/1.411, allocations: 1.23 MB / 0.9504 GB, free: 13.18 MB / 0.6231 GB Notification: Performance of SimCode: time 1.142e-06/1.411, allocations: 4 kB / 0.9504 GB, free: 13.18 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1834/1.594, allocations: 89.64 MB / 1.038 GB, free: 3.75 MB / 0.7012 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.91/21.5, allocations: 5.828 kB / 1.038 GB, free: 3.746 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)