Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.ThreeArea.FifthOrder_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.FifthOrder_AVRII,fileNamePrefix="OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_ThreeArea_FifthOrder_AVRII",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.ThreeArea.FifthOrder_AVRII,fileNamePrefix="OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_ThreeArea_FifthOrder_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.001374/0.001374, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.469/1.469, allocations: 222.9 MB / 239.2 MB, free: 4.594 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.001574/0.001574, allocations: 199.5 kB / 289.6 MB, free: 2.32 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.5413/0.5413, allocations: 91.89 MB / 431.6 MB, free: 9.266 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002118/0.002119, allocations: 83.88 kB / 0.502 GB, free: 7.637 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4684/0.4705, allocations: 71.26 MB / 0.5716 GB, free: 36.72 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.ThreeArea.FifthOrder_AVRII): time 0.01195/0.4825, allocations: 13.81 MB / 0.5851 GB, free: 27.55 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.009559/0.4921, allocations: 3.507 MB / 0.5885 GB, free: 25.04 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00396/0.4962, allocations: 31.34 kB / 0.5885 GB, free: 25.04 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002247/0.4984, allocations: 0.566 MB / 0.5891 GB, free: 24.72 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006272/0.5048, allocations: 1.431 MB / 0.5905 GB, free: 23.76 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003954/0.5087, allocations: 1.523 MB / 0.5919 GB, free: 22.98 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.007039/0.5158, allocations: 3.751 MB / 0.5956 GB, free: 21.11 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001615/0.5174, allocations: 0.8958 MB / 0.5965 GB, free: 20.64 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003078/0.5205, allocations: 1.547 MB / 0.598 GB, free: 19.85 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003461/0.524, allocations: 1.987 MB / 0.5999 GB, free: 18.88 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001349/0.5254, allocations: 292 kB / 0.6002 GB, free: 18.88 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002038/0.5274, allocations: 444 kB / 0.6006 GB, free: 18.83 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009722/0.5284, allocations: 0.7764 MB / 0.6014 GB, free: 18.31 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002763/0.5312, allocations: 1.647 MB / 0.603 GB, free: 17.19 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00654/0.5377, allocations: 3.958 MB / 0.6069 GB, free: 15.37 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.808e-06/0.5378, allocations: 5.125 kB / 0.6069 GB, free: 15.36 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.324e-06/0.5378, allocations: 4 kB / 0.6069 GB, free: 15.36 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0001803/0.538, allocations: 0 / 0.6069 GB, free: 15.36 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 524 * Number of variables: 524 Notification: Performance of Generate backend data structure: time 0.028/0.566, allocations: 6.65 MB / 0.6134 GB, free: 12.71 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.281e-05/0.5661, allocations: 9.75 kB / 0.6134 GB, free: 12.71 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005056/0.5666, allocations: 308.4 kB / 0.6137 GB, free: 12.52 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01594/0.5825, allocations: 2.273 MB / 0.6159 GB, free: 12.08 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006223/0.5888, allocations: 1.891 MB / 0.6177 GB, free: 10.92 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008554/0.5897, allocations: 0.7368 MB / 0.6185 GB, free: 10.25 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009642/0.5907, allocations: 218.9 kB / 0.6187 GB, free: 10.18 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00757/0.5983, allocations: 3.041 MB / 0.6216 GB, free: 9.027 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.979e-05/0.5983, allocations: 2.016 kB / 0.6216 GB, free: 9.027 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002781/0.5986, allocations: 84.5 kB / 0.6217 GB, free: 8.961 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.183e-05/0.5987, allocations: 54.72 kB / 0.6218 GB, free: 8.957 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006859/0.6056, allocations: 2.794 MB / 0.6245 GB, free: 7.766 MB / 430.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.01894/0.6245, allocations: 9.927 MB / 0.6342 GB, free: 13.75 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01153/0.6361, allocations: 4.215 MB / 0.6383 GB, free: 9.391 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005047/0.6412, allocations: 1.976 MB / 0.6402 GB, free: 7.406 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000482/0.6417, allocations: 41.97 kB / 0.6403 GB, free: 7.367 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005917/0.6476, allocations: 2.248 MB / 0.6425 GB, free: 5.098 MB / 446.1 MB Notification: Performance of pre-optimization done (n=249): time 8.035e-06/0.6477, allocations: 0 / 0.6425 GB, free: 5.098 MB / 446.1 MB Notification: Performance of matching and sorting (n=249): time 0.1552/0.8029, allocations: 27.42 MB / 0.6693 GB, free: 9.559 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001449/0.8031, allocations: 188.2 kB / 0.6694 GB, free: 9.336 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005398/0.8085, allocations: 2.313 MB / 0.6717 GB, free: 7.004 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.00102/0.8095, allocations: 81.58 kB / 0.6718 GB, free: 6.918 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001336/0.8109, allocations: 1.176 MB / 0.6729 GB, free: 5.73 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002066/0.813, allocations: 0.8741 MB / 0.6738 GB, free: 4.844 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00344/0.8164, allocations: 0.5658 MB / 0.6743 GB, free: 4.27 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001285/0.8166, allocations: 309.1 kB / 0.6746 GB, free: 3.965 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005397/0.822, allocations: 1.974 MB / 0.6765 GB, free: 1.988 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005703/0.8277, allocations: 2.338 MB / 0.6788 GB, free: 15.56 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.06064/0.8884, allocations: 14.29 MB / 0.6928 GB, free: 1.031 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.303e-05/0.8885, allocations: 7.938 kB / 0.6928 GB, free: 1.023 MB / 494.1 MB Notification: Performance of matching and sorting (n=421) (initialization): time 0.04622/0.9347, allocations: 12.55 MB / 0.705 GB, free: 4.406 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001267/0.9349, allocations: 118.8 kB / 0.7052 GB, free: 4.266 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.666e-05/0.9349, allocations: 8 kB / 0.7052 GB, free: 4.258 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0188/0.9537, allocations: 5.253 MB / 0.7103 GB, free: 15 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00359/0.9573, allocations: 0.589 MB / 0.7109 GB, free: 14.41 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06704/1.024, allocations: 23.2 MB / 0.7335 GB, free: 7.039 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00582/1.03, allocations: 497 kB / 0.734 GB, free: 6.551 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001016/1.031, allocations: 120 kB / 0.7341 GB, free: 6.434 MB / 0.5294 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 Syn2.delta:VARIABLE(flow=false start = Syn2.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real Syn2.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 (334): * Single equations (assignments): 329 * 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.002725/1.034, allocations: 0.5268 MB / 0.7346 GB, free: 5.887 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001588/1.036, allocations: 304.3 kB / 0.7349 GB, free: 5.586 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04366/1.079, allocations: 11.93 MB / 0.7466 GB, free: 9.562 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.953e-05/1.079, allocations: 24 kB / 0.7466 GB, free: 9.539 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001268/1.08, allocations: 20 kB / 0.7466 GB, free: 9.52 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.596e-05/1.08, allocations: 11.95 kB / 0.7466 GB, free: 9.508 MB / 0.545 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.05369/1.133, allocations: 15.56 MB / 0.7618 GB, free: 9.73 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.468e-05/1.133, allocations: 0 / 0.7618 GB, free: 9.73 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001843/1.135, allocations: 251.6 kB / 0.7621 GB, free: 9.484 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01927/1.155, allocations: 5.304 MB / 0.7672 GB, free: 4.164 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009638/1.156, allocations: 55.98 kB / 0.7673 GB, free: 4.109 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3963/1.552, allocations: 24.94 MB / 0.7917 GB, free: 158.4 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.839e-06/1.552, allocations: 5.031 kB / 0.7917 GB, free: 158.4 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04979/1.602, allocations: 14.31 MB / 0.8056 GB, free: 154.7 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001359/1.603, allocations: 410 kB / 0.806 GB, free: 154.4 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008115/1.604, allocations: 46.97 kB / 0.8061 GB, free: 154.4 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003144/1.607, allocations: 303.8 kB / 0.8064 GB, free: 154.3 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002187/1.609, allocations: 0.5821 MB / 0.8069 GB, free: 154.2 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002327/1.61, allocations: 67.69 kB / 0.807 GB, free: 154.2 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.002515/1.612, allocations: 1.534 MB / 0.8085 GB, free: 153.6 MB / 0.5606 GB Notification: Performance of sort global known variables: time 3.21e-07/1.612, allocations: 0 / 0.8085 GB, free: 153.6 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.005034/1.617, allocations: 1.185 MB / 0.8097 GB, free: 153.5 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 18 (order3_2.delta,order3_2.w,order3_2.e1q,order2.delta,order2.w,Syn2.delta,Syn2.w,Syn2.e1q,Syn2.e2q,Syn2.e2d,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 (158): * Single equations (assignments): 153 * 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 {(67,21,7.5%)} * 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.0446/1.662, allocations: 14.94 MB / 0.8242 GB, free: 145.8 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.02179/1.684, allocations: 6.769 MB / 0.8308 GB, free: 139 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 8.085e-06/1.684, allocations: 0.5625 kB / 0.8309 GB, free: 139 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.01387/1.698, allocations: 4.431 MB / 0.8352 GB, free: 134.5 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004438/1.702, allocations: 276.4 kB / 0.8354 GB, free: 134.2 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1228/1.825, allocations: 46.43 MB / 0.8808 GB, free: 85.98 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001184/1.826, allocations: 1.821 MB / 0.8826 GB, free: 84.13 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.001442/1.828, allocations: 262.6 kB / 0.8828 GB, free: 83.88 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001404/1.829, allocations: 1.237 MB / 0.884 GB, free: 82.64 MB / 0.5606 GB Notification: Performance of SimCode: time 1.022e-06/1.829, allocations: 4 kB / 0.884 GB, free: 82.63 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1421/1.971, allocations: 87.44 MB / 0.9694 GB, free: 11.43 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.64/16.61, allocations: 14.67 kB / 0.9694 GB, free: 11.42 MB / 0.5762 GB (rm -f OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.ThreeArea.FifthOrder_AVRII.pipe ; mkfifo OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.ThreeArea.FifthOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.ThreeArea.FifthOrder_AVRII.pipe >> ../files/OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.ThreeArea.FifthOrder_AVRII.sim & python3 -m fmpy simulate --output-file OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.ThreeArea.FifthOrder_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_FifthOrder_AVRII.fmu > OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.ThreeArea.FifthOrder_AVRII.pipe 2>&1)