Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.SixthOrder_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.SixthOrder_AVRII,fileNamePrefix="OpenIPSL_OpenIPSL_Examples_PSATSystems_ThreeArea_SixthOrder_AVRII",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.ThreeArea.SixthOrder_AVRII,fileNamePrefix="OpenIPSL_OpenIPSL_Examples_PSATSystems_ThreeArea_SixthOrder_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.001219/0.001219, allocations: 108 kB / 15.6 MB, free: 132 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.445/1.445, allocations: 222.9 MB / 239.2 MB, free: 4.637 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.001346/0.001345, allocations: 188.5 kB / 289.6 MB, free: 2.359 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4947/0.4947, allocations: 78.53 MB / 418.3 MB, free: 3.246 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001916/0.001917, allocations: 83.88 kB / 497.6 MB, free: 6.316 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1697/0.1717, allocations: 68.17 MB / 0.5525 GB, free: 2.105 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.ThreeArea.SixthOrder_AVRII): time 0.3841/0.5559, allocations: 13.82 MB / 0.566 GB, free: 31.43 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.0122/0.5681, allocations: 3.511 MB / 0.5694 GB, free: 30.33 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005673/0.5739, allocations: 27.28 kB / 0.5694 GB, free: 30.33 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003752/0.5777, allocations: 0.5621 MB / 0.57 GB, free: 30.04 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01004/0.5879, allocations: 1.444 MB / 0.5714 GB, free: 29.31 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006294/0.5942, allocations: 1.515 MB / 0.5729 GB, free: 29.13 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.01034/0.6046, allocations: 3.793 MB / 0.5766 GB, free: 28.28 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003026/0.6077, allocations: 0.8992 MB / 0.5774 GB, free: 28.07 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00491/0.6126, allocations: 1.558 MB / 0.579 GB, free: 27.65 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00455/0.6172, allocations: 2.009 MB / 0.5809 GB, free: 27.05 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002291/0.6196, allocations: 292.2 kB / 0.5812 GB, free: 27.05 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002049/0.6217, allocations: 437.8 kB / 0.5816 GB, free: 27.01 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006606/0.6223, allocations: 0.7831 MB / 0.5824 GB, free: 26.48 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00179/0.6241, allocations: 1.657 MB / 0.584 GB, free: 25.36 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005908/0.6301, allocations: 4 MB / 0.5879 GB, free: 23.51 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.141e-05/0.6301, allocations: 0.75 kB / 0.5879 GB, free: 23.51 MB / 430.1 MB Notification: Performance of FrontEnd: time 3.076e-06/0.6301, allocations: 0.5625 kB / 0.5879 GB, free: 23.51 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0001671/0.6303, allocations: 0 / 0.5879 GB, free: 23.51 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: 525 * Number of variables: 525 Notification: Performance of Generate backend data structure: time 0.02837/0.6587, allocations: 6.674 MB / 0.5944 GB, free: 20.87 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.468e-05/0.6588, allocations: 12.78 kB / 0.5944 GB, free: 20.86 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006093/0.6594, allocations: 306.8 kB / 0.5947 GB, free: 20.67 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0158/0.6752, allocations: 2.275 MB / 0.597 GB, free: 20.23 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005659/0.6809, allocations: 1.91 MB / 0.5988 GB, free: 19.05 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000946/0.6819, allocations: 0.7239 MB / 0.5995 GB, free: 18.4 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001178/0.6831, allocations: 224.4 kB / 0.5997 GB, free: 18.32 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01049/0.6936, allocations: 3.056 MB / 0.6027 GB, free: 17.16 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.392e-05/0.6937, allocations: 4.969 kB / 0.6027 GB, free: 17.16 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006863/0.6944, allocations: 87.36 kB / 0.6028 GB, free: 17.09 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.771e-05/0.6945, allocations: 49.56 kB / 0.6029 GB, free: 17.09 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008055/0.7026, allocations: 2.801 MB / 0.6056 GB, free: 16.14 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.02794/0.7305, allocations: 9.961 MB / 0.6153 GB, free: 10.62 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01229/0.7429, allocations: 4.217 MB / 0.6194 GB, free: 8.297 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004865/0.7478, allocations: 1.987 MB / 0.6214 GB, free: 7.273 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005371/0.7483, allocations: 44.08 kB / 0.6214 GB, free: 7.258 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005722/0.7541, allocations: 2.249 MB / 0.6236 GB, free: 5.703 MB / 430.1 MB Notification: Performance of pre-optimization done (n=250): time 9.158e-06/0.7541, allocations: 0 / 0.6236 GB, free: 5.703 MB / 430.1 MB Notification: Performance of matching and sorting (n=250): time 0.1269/0.881, allocations: 28.83 MB / 0.6518 GB, free: 8.758 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001357/0.8812, allocations: 184.2 kB / 0.652 GB, free: 8.539 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005529/0.8868, allocations: 2.341 MB / 0.6542 GB, free: 6.18 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001061/0.8879, allocations: 69.7 kB / 0.6543 GB, free: 6.105 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001375/0.8893, allocations: 1.172 MB / 0.6554 GB, free: 4.922 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002019/0.8913, allocations: 0.8897 MB / 0.6563 GB, free: 4.02 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003254/0.8946, allocations: 0.5699 MB / 0.6569 GB, free: 3.441 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001202/0.8947, allocations: 301.1 kB / 0.6572 GB, free: 3.145 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00547/0.9002, allocations: 1.99 MB / 0.6591 GB, free: 1.152 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005575/0.9058, allocations: 2.358 MB / 0.6614 GB, free: 14.7 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.06084/0.9667, allocations: 14.43 MB / 0.6755 GB, free: 64 kB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.702e-05/0.9667, allocations: 4 kB / 0.6755 GB, free: 60 kB / 478.1 MB Notification: Performance of matching and sorting (n=425) (initialization): time 0.04715/1.014, allocations: 12.6 MB / 0.6878 GB, free: 3.387 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001471/1.014, allocations: 114.8 kB / 0.6879 GB, free: 3.25 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.588e-05/1.014, allocations: 8 kB / 0.6879 GB, free: 3.242 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02009/1.034, allocations: 5.446 MB / 0.6932 GB, free: 13.79 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003403/1.038, allocations: 0.5773 MB / 0.6938 GB, free: 13.21 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.07164/1.109, allocations: 23.66 MB / 0.7169 GB, free: 5.395 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006075/1.116, allocations: 0.4969 MB / 0.7174 GB, free: 4.895 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001012/1.117, allocations: 120 kB / 0.7175 GB, free: 4.777 MB / 0.5137 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 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 (336): * Single equations (assignments): 331 * 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,27)} Notification: Performance of prepare postOptimizeDAE: time 0.002688/1.119, allocations: 0.5318 MB / 0.718 GB, free: 4.23 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001686/1.121, allocations: 300.2 kB / 0.7183 GB, free: 3.934 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04293/1.164, allocations: 11.95 MB / 0.73 GB, free: 7.879 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.623e-05/1.164, allocations: 24 kB / 0.73 GB, free: 7.855 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.277e-05/1.164, allocations: 20.75 kB / 0.73 GB, free: 7.836 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001022/1.164, allocations: 15.89 kB / 0.7301 GB, free: 7.82 MB / 0.5294 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.05142/1.216, allocations: 15.58 MB / 0.7453 GB, free: 8.027 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.469e-05/1.216, allocations: 0 / 0.7453 GB, free: 8.027 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001876/1.218, allocations: 260.3 kB / 0.7455 GB, free: 7.773 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01907/1.237, allocations: 5.288 MB / 0.7507 GB, free: 2.477 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009816/1.238, allocations: 53.62 kB / 0.7507 GB, free: 2.426 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3811/1.619, allocations: 24.95 MB / 0.7751 GB, free: 163.7 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.739e-06/1.619, allocations: 0 / 0.7751 GB, free: 163.7 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05004/1.669, allocations: 14.34 MB / 0.7891 GB, free: 163.2 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001836/1.671, allocations: 416.1 kB / 0.7895 GB, free: 163.1 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001094/1.672, allocations: 47.69 kB / 0.7895 GB, free: 163.1 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003601/1.676, allocations: 301 kB / 0.7898 GB, free: 163.1 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002399/1.678, allocations: 0.5787 MB / 0.7904 GB, free: 163.1 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002614/1.678, allocations: 66.14 kB / 0.7905 GB, free: 163.1 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.003039/1.681, allocations: 1.545 MB / 0.792 GB, free: 162.9 MB / 0.5606 GB Notification: Performance of sort global known variables: time 4.41e-07/1.681, allocations: 0 / 0.792 GB, free: 162.9 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.004824/1.686, allocations: 1.195 MB / 0.7931 GB, free: 162.9 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 19 (order3_2.delta,order3_2.w,order3_2.e1q,order2.delta,order2.w,Syn2.delta,Syn2.w,Syn2.e1q,Syn2.e1d,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 (159): * Single equations (assignments): 154 * 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.0501/1.736, allocations: 14.97 MB / 0.8078 GB, free: 160 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.02228/1.759, allocations: 6.908 MB / 0.8145 GB, free: 157.6 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 7.674e-06/1.759, allocations: 0 / 0.8145 GB, free: 157.6 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.01328/1.772, allocations: 4.428 MB / 0.8188 GB, free: 156 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002844/1.775, allocations: 272.6 kB / 0.8191 GB, free: 155.8 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.107/1.882, allocations: 46.52 MB / 0.8645 GB, free: 112.3 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001105/1.883, allocations: 1.819 MB / 0.8663 GB, free: 110.5 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.001406/1.884, allocations: 265.9 kB / 0.8665 GB, free: 110.2 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001319/1.886, allocations: 1.245 MB / 0.8678 GB, free: 109 MB / 0.5606 GB Notification: Performance of SimCode: time 1.102e-06/1.886, allocations: 0 / 0.8678 GB, free: 109 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1378/2.024, allocations: 89.99 MB / 0.9556 GB, free: 19.44 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.44/17.46, allocations: 11.67 kB / 0.9557 GB, free: 19.43 MB / 0.5606 GB (rm -f OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.SixthOrder_AVRII.pipe ; mkfifo OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.SixthOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.SixthOrder_AVRII.pipe >> ../files/OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.SixthOrder_AVRII.sim & python3 -m fmpy simulate --output-file OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.SixthOrder_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_SixthOrder_AVRII.fmu > OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.SixthOrder_AVRII.pipe 2>&1)