Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.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.Discretization.FourthOrder_AVRII_Discrete,fileNamePrefix="OpenIPSL_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discrete",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete,fileNamePrefix="OpenIPSL_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discrete",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.00773/0.00773, allocations: 101.8 kB / 15.73 MB, free: 6.441 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.352/1.352, allocations: 222.9 MB / 239.4 MB, free: 4.5 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.00144/0.00144, allocations: 184.5 kB / 289.7 MB, free: 2.227 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4306/0.4306, allocations: 78.54 MB / 418.4 MB, free: 3.09 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00148/0.00148, allocations: 75.88 kB / 0.5532 GB, free: 1.402 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3423/0.3438, allocations: 68.16 MB / 0.6197 GB, free: 9.473 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete): time 0.005516/0.3494, allocations: 6.207 MB / 0.6258 GB, free: 4.043 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.003621/0.353, allocations: 1.849 MB / 0.6276 GB, free: 2.191 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007157/0.3538, allocations: 8 kB / 0.6276 GB, free: 2.184 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005685/0.3544, allocations: 218.1 kB / 0.6278 GB, free: 1.969 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001904/0.3563, allocations: 0.7996 MB / 0.6286 GB, free: 1.172 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.001138/0.3575, allocations: 0.5927 MB / 0.6292 GB, free: 0.5859 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001328/0.3588, allocations: 1.378 MB / 0.6305 GB, free: 15.2 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004464/0.3593, allocations: 287.8 kB / 0.6308 GB, free: 14.91 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007078/0.36, allocations: 0.5912 MB / 0.6314 GB, free: 14.32 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009202/0.3609, allocations: 0.7506 MB / 0.6321 GB, free: 13.56 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001771/0.3611, allocations: 108 kB / 0.6322 GB, free: 13.46 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005189/0.3616, allocations: 243.8 kB / 0.6324 GB, free: 13.22 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002393/0.3619, allocations: 290.7 kB / 0.6327 GB, free: 12.93 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005361/0.3624, allocations: 0.6097 MB / 0.6333 GB, free: 12.32 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001618/0.364, allocations: 1.498 MB / 0.6348 GB, free: 10.82 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.023e-06/0.3641, allocations: 3.984 kB / 0.6348 GB, free: 10.82 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.3641, allocations: 0 / 0.6348 GB, free: 10.82 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.989e-05/0.3641, allocations: 0 / 0.6348 GB, free: 10.82 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: 178 * Number of variables: 178 Notification: Performance of Generate backend data structure: time 0.008531/0.3726, allocations: 2.523 MB / 0.6372 GB, free: 8.234 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.875e-05/0.3727, allocations: 8.031 kB / 0.6373 GB, free: 8.227 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001664/0.3729, allocations: 122.5 kB / 0.6374 GB, free: 8.098 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005053/0.3779, allocations: 0.7718 MB / 0.6381 GB, free: 7.324 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001464/0.3794, allocations: 0.7977 MB / 0.6389 GB, free: 6.469 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003093/0.3797, allocations: 256.2 kB / 0.6392 GB, free: 6.18 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001745/0.3799, allocations: 79.94 kB / 0.6392 GB, free: 6.102 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002453/0.3824, allocations: 1.178 MB / 0.6404 GB, free: 4.902 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.369e-05/0.3824, allocations: 7.938 kB / 0.6404 GB, free: 4.895 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.279e-05/0.3825, allocations: 32 kB / 0.6404 GB, free: 4.863 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.669e-05/0.3825, allocations: 19.94 kB / 0.6404 GB, free: 4.844 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001986/0.3845, allocations: 0.9421 MB / 0.6414 GB, free: 3.898 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.006438/0.391, allocations: 3.539 MB / 0.6448 GB, free: 176 kB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007552/0.3985, allocations: 2.312 MB / 0.6471 GB, free: 13.77 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001532/0.4001, allocations: 0.6556 MB / 0.6477 GB, free: 13.11 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.66e-05/0.4002, allocations: 20.64 kB / 0.6477 GB, free: 13.09 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.104e-05/0.4003, allocations: 43.22 kB / 0.6478 GB, free: 13.04 MB / 462.1 MB Notification: Performance of pre-optimization done (n=92): time 2.696e-06/0.4003, allocations: 0 / 0.6478 GB, free: 13.04 MB / 462.1 MB Notification: Performance of matching and sorting (n=92): time 0.02794/0.4282, allocations: 6.761 MB / 0.6544 GB, free: 6.219 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001199/0.4284, allocations: 93.77 kB / 0.6545 GB, free: 6.109 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001508/0.4299, allocations: 0.9734 MB / 0.6554 GB, free: 5.117 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002286/0.4301, allocations: 41.7 kB / 0.6555 GB, free: 5.07 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003828/0.4305, allocations: 465.3 kB / 0.6559 GB, free: 4.609 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004414/0.431, allocations: 333.2 kB / 0.6562 GB, free: 4.281 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005288/0.4315, allocations: 255.5 kB / 0.6565 GB, free: 4.023 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001021/0.4316, allocations: 305.1 kB / 0.6567 GB, free: 3.723 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001513/0.4332, allocations: 0.6988 MB / 0.6574 GB, free: 3.023 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001697/0.4349, allocations: 0.9146 MB / 0.6583 GB, free: 2.039 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0227/0.4576, allocations: 5.065 MB / 0.6633 GB, free: 12.9 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.518e-05/0.4576, allocations: 4 kB / 0.6633 GB, free: 12.9 MB / 478.1 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.01404/0.4717, allocations: 4.145 MB / 0.6673 GB, free: 8.738 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.721e-05/0.4718, allocations: 8 kB / 0.6673 GB, free: 8.73 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.245e-05/0.4718, allocations: 4 kB / 0.6673 GB, free: 8.727 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005815/0.4776, allocations: 1.516 MB / 0.6688 GB, free: 7.207 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00136/0.479, allocations: 259.6 kB / 0.6691 GB, free: 6.953 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02017/0.4992, allocations: 8.269 MB / 0.6771 GB, free: 14.53 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0016/0.5008, allocations: 179.1 kB / 0.6773 GB, free: 14.36 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000176/0.501, allocations: 51.98 kB / 0.6774 GB, free: 14.3 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: 23 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 4 (aVRTypeII.vf,aVRTypeII.vr2,aVRTypeII.vr1,aVRTypeII.vm) * Top-level inputs: 0 Notification: Strong component statistics for initialization (151): * Single equations (assignments): 150 * Array equations: 0 * Algorithm blocks: 0 * 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.000601/0.5016, allocations: 265.3 kB / 0.6776 GB, free: 14.04 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001062/0.5027, allocations: 345.4 kB / 0.6779 GB, free: 13.69 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01236/0.5151, allocations: 3.588 MB / 0.6814 GB, free: 10.09 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.318e-05/0.5151, allocations: 12 kB / 0.6815 GB, free: 10.07 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.764e-05/0.5152, allocations: 8 kB / 0.6815 GB, free: 10.07 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.736e-05/0.5152, allocations: 3.984 kB / 0.6815 GB, free: 10.06 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.01464/0.5298, allocations: 5.127 MB / 0.6865 GB, free: 4.828 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.686e-05/0.5299, allocations: 0 / 0.6865 GB, free: 4.828 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006486/0.5305, allocations: 111.9 kB / 0.6866 GB, free: 4.719 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005654/0.5362, allocations: 1.578 MB / 0.6881 GB, free: 3.133 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001671/0.5364, allocations: 27.98 kB / 0.6881 GB, free: 3.105 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02205/0.5585, allocations: 10.77 MB / 0.6987 GB, free: 7.988 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.031e-06/0.5585, allocations: 3.938 kB / 0.6987 GB, free: 7.984 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01546/0.574, allocations: 4.614 MB / 0.7032 GB, free: 3.34 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004703/0.5745, allocations: 220.1 kB / 0.7034 GB, free: 3.105 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003511/0.5749, allocations: 16 kB / 0.7034 GB, free: 3.09 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001215/0.5761, allocations: 87.89 kB / 0.7035 GB, free: 3.004 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005758/0.5767, allocations: 172.8 kB / 0.7036 GB, free: 2.836 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001154/0.5768, allocations: 28 kB / 0.7037 GB, free: 2.809 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.001023/0.5779, allocations: 0.6473 MB / 0.7043 GB, free: 2.152 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.2e-07/0.5779, allocations: 4 kB / 0.7043 GB, free: 2.148 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.001697/0.5796, allocations: 443.6 kB / 0.7047 GB, free: 1.715 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 6 (order2.delta,order2.w,order4.delta,order4.w,order4.e1q,order4.e1d) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 4 (aVRTypeII.vm,aVRTypeII.vr1,aVRTypeII.vr2,aVRTypeII.vf) * Top-level inputs: 0 Notification: Strong component statistics for simulation (61): * Single equations (assignments): 59 * Array equations: 0 * Algorithm blocks: 0 * 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 {(20,12,23.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01574/0.5953, allocations: 5.2 MB / 0.7098 GB, free: 12.48 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.006682/0.6021, allocations: 2.304 MB / 0.7121 GB, free: 10.15 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 5.44e-06/0.6021, allocations: 0 / 0.7121 GB, free: 10.15 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.004449/0.6066, allocations: 1.329 MB / 0.7134 GB, free: 8.805 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002019/0.6086, allocations: 347.9 kB / 0.7137 GB, free: 8.453 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04024/0.6489, allocations: 15.05 MB / 0.7284 GB, free: 9.109 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008093/0.6497, allocations: 1.077 MB / 0.7294 GB, free: 8 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.0005636/0.6503, allocations: 95.33 kB / 0.7295 GB, free: 7.902 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007225/0.651, allocations: 447.2 kB / 0.73 GB, free: 7.469 MB / 0.5294 GB Notification: Performance of SimCode: time 1.162e-06/0.6511, allocations: 0 / 0.73 GB, free: 7.469 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06947/0.7205, allocations: 31.34 MB / 0.7606 GB, free: 8.305 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.66/17.38, allocations: 12.75 kB / 0.7606 GB, free: 8.301 MB / 0.5606 GB (rm -f OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe ; mkfifo OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe ; head -c 1048576 < OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe >> ../files/OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.sim & python3 -m fmpy simulate --output-file OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete_res.csv --start-time 0 --stop-time 20 --timeout 50 --relative-tolerance 0.001 --interface-type ModelExchange --solver CVode --output-interval 0.01 OpenIPSL_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discrete.fmu > OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe 2>&1)