Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.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.TwoAreaOld.FourthOrder_AVRII,fileNamePrefix="OpenIPSL_OpenIPSL_Examples_PSATSystems_TwoAreaOld_FourthOrder_AVRII",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII,fileNamePrefix="OpenIPSL_OpenIPSL_Examples_PSATSystems_TwoAreaOld_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.004914/0.004914, allocations: 100.3 kB / 15.73 MB, free: 6.062 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.255/1.255, allocations: 222.9 MB / 239.4 MB, free: 4.539 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.001465/0.001465, allocations: 196.4 kB / 289.7 MB, free: 2.246 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4286/0.4286, allocations: 78.53 MB / 418.4 MB, free: 3.145 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001419/0.001419, allocations: 80.06 kB / 0.5532 GB, free: 1.465 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3164/0.3178, allocations: 68.16 MB / 0.6197 GB, free: 9.527 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII): time 0.005177/0.323, allocations: 6.572 MB / 0.6261 GB, free: 3.707 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.003065/0.3261, allocations: 1.955 MB / 0.628 GB, free: 1.746 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00045/0.3266, allocations: 15.94 kB / 0.6281 GB, free: 1.73 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005814/0.3272, allocations: 238 kB / 0.6283 GB, free: 1.496 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001474/0.3287, allocations: 0.8555 MB / 0.6291 GB, free: 0.6406 MB / 430.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.xq <> order4.x1q, <> on Real numbers is only allowed inside functions. Notification: Performance of NFTyping.typeClassSections: time 0.0009512/0.3296, allocations: 0.6217 MB / 0.6297 GB, free: 24 kB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001381/0.331, allocations: 1.592 MB / 0.6313 GB, free: 14.43 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004038/0.3314, allocations: 318.4 kB / 0.6316 GB, free: 14.1 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006591/0.3321, allocations: 0.6652 MB / 0.6322 GB, free: 13.43 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007551/0.3329, allocations: 0.8206 MB / 0.633 GB, free: 12.61 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001485/0.333, allocations: 120 kB / 0.6332 GB, free: 12.49 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004007/0.3334, allocations: 259.9 kB / 0.6334 GB, free: 12.24 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002547/0.3337, allocations: 334.6 kB / 0.6337 GB, free: 11.91 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004842/0.3342, allocations: 0.6641 MB / 0.6344 GB, free: 11.24 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001485/0.3357, allocations: 1.673 MB / 0.636 GB, free: 9.566 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.977e-06/0.3357, allocations: 0 / 0.636 GB, free: 9.566 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.382e-06/0.3357, allocations: 0 / 0.636 GB, free: 9.566 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.298e-05/0.3357, allocations: 0 / 0.636 GB, free: 9.566 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 190 * Number of variables: 190 Notification: Performance of Generate backend data structure: time 0.008388/0.3441, allocations: 2.734 MB / 0.6387 GB, free: 6.762 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.961e-05/0.3442, allocations: 8.031 kB / 0.6387 GB, free: 6.754 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001468/0.3443, allocations: 130.6 kB / 0.6388 GB, free: 6.617 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004878/0.3492, allocations: 0.7835 MB / 0.6396 GB, free: 5.832 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001432/0.3507, allocations: 0.8913 MB / 0.6404 GB, free: 4.887 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002572/0.3509, allocations: 252.2 kB / 0.6407 GB, free: 4.602 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001686/0.3511, allocations: 95.89 kB / 0.6408 GB, free: 4.508 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001993/0.3531, allocations: 1.09 MB / 0.6418 GB, free: 3.406 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.823e-05/0.3531, allocations: 0 / 0.6418 GB, free: 3.406 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.506e-05/0.3532, allocations: 32 kB / 0.6419 GB, free: 3.375 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.505e-05/0.3533, allocations: 20 kB / 0.6419 GB, free: 3.355 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001897/0.3552, allocations: 0.9838 MB / 0.6428 GB, free: 2.371 MB / 446.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.005918/0.3611, allocations: 3.805 MB / 0.6466 GB, free: 14.39 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007246/0.3684, allocations: 2.383 MB / 0.6489 GB, free: 11.91 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00134/0.3697, allocations: 0.6723 MB / 0.6495 GB, free: 11.24 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.863e-05/0.3698, allocations: 20.92 kB / 0.6496 GB, free: 11.22 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00155/0.3714, allocations: 0.8271 MB / 0.6504 GB, free: 10.37 MB / 462.1 MB Notification: Performance of pre-optimization done (n=96): time 2.825e-06/0.3714, allocations: 0 / 0.6504 GB, free: 10.37 MB / 462.1 MB Notification: Performance of matching and sorting (n=96): time 0.02742/0.3988, allocations: 7.09 MB / 0.6573 GB, free: 3.219 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.15e-05/0.3989, allocations: 119.7 kB / 0.6574 GB, free: 3.078 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001565/0.4005, allocations: 1.083 MB / 0.6585 GB, free: 1.98 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002247/0.4008, allocations: 41.7 kB / 0.6585 GB, free: 1.934 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003344/0.4011, allocations: 0.4976 MB / 0.659 GB, free: 1.43 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003572/0.4015, allocations: 368.9 kB / 0.6593 GB, free: 1.066 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004526/0.4019, allocations: 287.5 kB / 0.6596 GB, free: 0.7812 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 7.96e-05/0.402, allocations: 301.1 kB / 0.6599 GB, free: 496 kB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00153/0.4035, allocations: 0.7692 MB / 0.6607 GB, free: 15.71 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001605/0.4052, allocations: 0.9381 MB / 0.6616 GB, free: 14.73 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02274/0.4279, allocations: 5.583 MB / 0.667 GB, free: 9.066 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.107e-06/0.428, allocations: 0 / 0.667 GB, free: 9.066 MB / 478.1 MB Notification: Performance of matching and sorting (n=196) (initialization): time 0.01287/0.4408, allocations: 4.348 MB / 0.6713 GB, free: 4.691 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.122e-05/0.441, allocations: 59.41 kB / 0.6713 GB, free: 4.621 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.536e-05/0.441, allocations: 0 / 0.6713 GB, free: 4.621 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005364/0.4463, allocations: 1.512 MB / 0.6728 GB, free: 3.105 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001477/0.4479, allocations: 295.6 kB / 0.6731 GB, free: 2.816 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01871/0.4666, allocations: 8.265 MB / 0.6812 GB, free: 10.39 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001855/0.4685, allocations: 210.9 kB / 0.6814 GB, free: 10.19 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001197/0.4686, allocations: 51.98 kB / 0.6814 GB, free: 10.14 MB / 494.1 MB Warning: Assuming fixed start value for the following 4 variables: order4.w:VARIABLE(flow=false start = 1.0 fixed = true ) "Rotor speed [pu]" type: Real order2.delta:VARIABLE(flow=false start = order2.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real order4.delta:VARIABLE(flow=false start = order4.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real order4.e1q:VARIABLE(start = order4.e1q0 unit = "1" fixed = true ) "q-axis transient voltage" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 2 ($whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (166): * Single equations (assignments): 163 * Array equations: 0 * Algorithm blocks: 2 * 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 {(18,13,25.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000575/0.4692, allocations: 299 kB / 0.6817 GB, free: 9.832 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002173/0.4694, allocations: 135.1 kB / 0.6818 GB, free: 9.699 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01236/0.4818, allocations: 3.881 MB / 0.6856 GB, free: 5.781 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.969e-05/0.4819, allocations: 12 kB / 0.6856 GB, free: 5.77 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.126e-05/0.4819, allocations: 8 kB / 0.6856 GB, free: 5.762 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.268e-05/0.4819, allocations: 7.969 kB / 0.6856 GB, free: 5.754 MB / 494.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 postOpt removeSimpleEquations (simulation): time 0.01416/0.4961, allocations: 5.46 MB / 0.691 GB, free: 192 kB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.017e-05/0.4961, allocations: 4.031 kB / 0.691 GB, free: 188 kB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005976/0.4967, allocations: 99.89 kB / 0.6911 GB, free: 88 kB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005433/0.5022, allocations: 1.602 MB / 0.6926 GB, free: 14.48 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001354/0.5023, allocations: 31.92 kB / 0.6927 GB, free: 14.45 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01934/0.5217, allocations: 9.608 MB / 0.702 GB, free: 4.551 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.345e-06/0.5217, allocations: 0 / 0.702 GB, free: 4.551 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01415/0.5359, allocations: 4.743 MB / 0.7067 GB, free: 15.77 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000456/0.5364, allocations: 231.9 kB / 0.7069 GB, free: 15.53 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001983/0.5366, allocations: 24 kB / 0.7069 GB, free: 15.5 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001129/0.5377, allocations: 103.9 kB / 0.707 GB, free: 15.4 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005474/0.5383, allocations: 196.8 kB / 0.7072 GB, free: 15.21 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.524e-05/0.5384, allocations: 39.86 kB / 0.7072 GB, free: 15.17 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.001018/0.5394, allocations: 0.7235 MB / 0.708 GB, free: 14.44 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.6e-07/0.5394, allocations: 0 / 0.708 GB, free: 14.44 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.001332/0.5407, allocations: 475.6 kB / 0.7084 GB, free: 13.98 MB / 0.5137 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 10 (order2.delta,order2.w,order4.delta,order4.w,order4.e1q,order4.e1d,aVRTypeII.ExcitationSystem.x_scaled[1],aVRTypeII.derivativeBlock.x,aVRTypeII.firstOrder2.y,aVRTypeII.simpleLagLim.state) * Number of discrete variables: 2 ($whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (64): * Single equations (assignments): 61 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(21,11,21.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0143/0.555, allocations: 5.337 MB / 0.7136 GB, free: 8.594 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.006061/0.5611, allocations: 2.505 MB / 0.7161 GB, free: 6.043 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 4.668e-06/0.5612, allocations: 3.938 kB / 0.7161 GB, free: 6.039 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.004249/0.5654, allocations: 1.614 MB / 0.7176 GB, free: 4.391 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009835/0.5664, allocations: 113.8 kB / 0.7178 GB, free: 4.281 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03674/0.6032, allocations: 16.06 MB / 0.7334 GB, free: 4 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006709/0.6039, allocations: 1.12 MB / 0.7345 GB, free: 2.848 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.0005308/0.6045, allocations: 120 kB / 0.7346 GB, free: 2.727 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006399/0.6051, allocations: 467.3 kB / 0.7351 GB, free: 2.27 MB / 0.5294 GB Notification: Performance of SimCode: time 6.81e-07/0.6051, allocations: 0 / 0.7351 GB, free: 2.27 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06557/0.6707, allocations: 34.22 MB / 0.7685 GB, free: 204 kB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.38/14.05, allocations: 16.62 kB / 0.7685 GB, free: 192 kB / 0.5606 GB (rm -f OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.pipe ; mkfifo OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.pipe >> ../files/OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.sim & python3 -m fmpy simulate --output-file OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.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_TwoAreaOld_FourthOrder_AVRII.fmu > OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.pipe 2>&1)