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.009395/0.009395, allocations: 97.23 kB / 15.73 MB, free: 6.047 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.478/1.478, allocations: 222.9 MB / 239.4 MB, free: 4.547 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.001556/0.001556, allocations: 192.5 kB / 289.7 MB, free: 2.258 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4841/0.4841, allocations: 78.53 MB / 418.4 MB, free: 3.215 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002311/0.002311, allocations: 83.86 kB / 0.5532 GB, free: 1.461 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4348/0.4372, allocations: 68.16 MB / 0.6197 GB, free: 9.395 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete): time 0.00596/0.4432, allocations: 6.199 MB / 0.6258 GB, free: 3.926 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.003948/0.4471, allocations: 1.849 MB / 0.6276 GB, free: 2.074 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007779/0.4479, allocations: 11.94 kB / 0.6276 GB, free: 2.062 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005077/0.4485, allocations: 214.1 kB / 0.6278 GB, free: 1.852 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001703/0.4502, allocations: 0.7618 MB / 0.6286 GB, free: 1.09 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.001105/0.4513, allocations: 0.585 MB / 0.6291 GB, free: 0.5117 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001539/0.4529, allocations: 1.378 MB / 0.6305 GB, free: 15.12 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004919/0.4534, allocations: 279.9 kB / 0.6307 GB, free: 14.84 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009073/0.4543, allocations: 0.5873 MB / 0.6313 GB, free: 14.25 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001047/0.4553, allocations: 0.7583 MB / 0.6321 GB, free: 13.49 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002138/0.4556, allocations: 104 kB / 0.6322 GB, free: 13.39 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005674/0.4561, allocations: 243.9 kB / 0.6324 GB, free: 13.15 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003245/0.4565, allocations: 282.7 kB / 0.6327 GB, free: 12.88 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006897/0.4572, allocations: 0.6136 MB / 0.6333 GB, free: 12.26 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002075/0.4593, allocations: 1.502 MB / 0.6347 GB, free: 10.75 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.538e-06/0.4593, allocations: 4 kB / 0.6347 GB, free: 10.75 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.164e-06/0.4593, allocations: 0 / 0.6347 GB, free: 10.75 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.782e-05/0.4593, allocations: 4 kB / 0.6347 GB, free: 10.75 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.008782/0.4681, allocations: 2.519 MB / 0.6372 GB, free: 8.168 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.74e-05/0.4682, allocations: 12.03 kB / 0.6372 GB, free: 8.156 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001771/0.4684, allocations: 118.5 kB / 0.6373 GB, free: 8.031 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005019/0.4734, allocations: 0.7679 MB / 0.6381 GB, free: 7.262 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001577/0.475, allocations: 0.8056 MB / 0.6389 GB, free: 6.398 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003854/0.4754, allocations: 256.1 kB / 0.6391 GB, free: 6.109 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001799/0.4756, allocations: 79.95 kB / 0.6392 GB, free: 6.031 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002718/0.4783, allocations: 1.178 MB / 0.6403 GB, free: 4.832 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.926e-05/0.4783, allocations: 0 / 0.6403 GB, free: 4.832 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.147e-05/0.4784, allocations: 31.98 kB / 0.6404 GB, free: 4.801 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.295e-05/0.4785, allocations: 20 kB / 0.6404 GB, free: 4.781 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002286/0.4807, allocations: 0.9537 MB / 0.6413 GB, free: 3.824 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.007054/0.4878, allocations: 3.539 MB / 0.6448 GB, free: 100 kB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008218/0.4961, allocations: 2.31 MB / 0.647 GB, free: 13.7 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00156/0.4976, allocations: 0.6556 MB / 0.6477 GB, free: 13.04 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001183/0.4978, allocations: 28.56 kB / 0.6477 GB, free: 13.01 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.731e-05/0.4978, allocations: 39.22 kB / 0.6477 GB, free: 12.96 MB / 462.1 MB Notification: Performance of pre-optimization done (n=92): time 3.787e-06/0.4978, allocations: 0 / 0.6477 GB, free: 12.96 MB / 462.1 MB Notification: Performance of matching and sorting (n=92): time 0.02914/0.527, allocations: 6.75 MB / 0.6543 GB, free: 6.152 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001944/0.5272, allocations: 101.6 kB / 0.6544 GB, free: 6.035 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002029/0.5293, allocations: 0.9696 MB / 0.6554 GB, free: 5.047 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002556/0.5295, allocations: 45.7 kB / 0.6554 GB, free: 4.996 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004496/0.53, allocations: 469.3 kB / 0.6559 GB, free: 4.531 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004351/0.5304, allocations: 329.2 kB / 0.6562 GB, free: 4.207 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005142/0.531, allocations: 259.5 kB / 0.6564 GB, free: 3.945 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001507/0.5311, allocations: 301.1 kB / 0.6567 GB, free: 3.648 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001745/0.5329, allocations: 0.691 MB / 0.6574 GB, free: 2.957 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001826/0.5347, allocations: 0.9185 MB / 0.6583 GB, free: 1.969 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02342/0.5581, allocations: 5.065 MB / 0.6632 GB, free: 12.83 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.598e-05/0.5582, allocations: 3.984 kB / 0.6632 GB, free: 12.83 MB / 478.1 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.01474/0.573, allocations: 4.141 MB / 0.6673 GB, free: 8.672 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.394e-05/0.5731, allocations: 8 kB / 0.6673 GB, free: 8.664 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.283e-05/0.5731, allocations: 4 kB / 0.6673 GB, free: 8.66 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006167/0.5793, allocations: 1.524 MB / 0.6688 GB, free: 7.133 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001431/0.5807, allocations: 259.6 kB / 0.669 GB, free: 6.879 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0232/0.6039, allocations: 8.257 MB / 0.6771 GB, free: 14.47 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002007/0.606, allocations: 175.1 kB / 0.6772 GB, free: 14.3 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003435/0.6064, allocations: 59.97 kB / 0.6773 GB, free: 14.24 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.001107/0.6075, allocations: 265.7 kB / 0.6776 GB, free: 13.97 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00149/0.609, allocations: 345.5 kB / 0.6779 GB, free: 13.62 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01343/0.6225, allocations: 3.592 MB / 0.6814 GB, free: 10.02 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.977e-05/0.6225, allocations: 11.98 kB / 0.6814 GB, free: 10 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.74e-05/0.6226, allocations: 8 kB / 0.6814 GB, free: 9.996 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.561e-05/0.6226, allocations: 7.969 kB / 0.6814 GB, free: 9.988 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.01711/0.6397, allocations: 5.128 MB / 0.6864 GB, free: 4.754 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.407e-05/0.6398, allocations: 0 / 0.6864 GB, free: 4.754 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006716/0.6404, allocations: 111.8 kB / 0.6865 GB, free: 4.645 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006218/0.6467, allocations: 1.582 MB / 0.6881 GB, free: 3.055 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001684/0.6469, allocations: 16 kB / 0.6881 GB, free: 3.039 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02389/0.6708, allocations: 10.78 MB / 0.6986 GB, free: 7.918 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.686e-06/0.6708, allocations: 7.938 kB / 0.6986 GB, free: 7.91 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01722/0.6881, allocations: 4.622 MB / 0.7031 GB, free: 3.258 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008796/0.689, allocations: 216.1 kB / 0.7033 GB, free: 3.027 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004633/0.6895, allocations: 16 kB / 0.7034 GB, free: 3.012 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001403/0.6909, allocations: 87.91 kB / 0.7034 GB, free: 2.926 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008283/0.6918, allocations: 172.8 kB / 0.7036 GB, free: 2.758 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001451/0.692, allocations: 27.98 kB / 0.7036 GB, free: 2.73 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.001468/0.6934, allocations: 0.6434 MB / 0.7043 GB, free: 2.078 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.7e-07/0.6934, allocations: 0 / 0.7043 GB, free: 2.078 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.002366/0.6958, allocations: 439.7 kB / 0.7047 GB, free: 1.648 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.01719/0.713, allocations: 5.209 MB / 0.7098 GB, free: 12.4 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.007351/0.7204, allocations: 2.303 MB / 0.712 GB, free: 10.08 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 5.81e-06/0.7205, allocations: 1.375 kB / 0.712 GB, free: 10.08 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.004689/0.7252, allocations: 1.317 MB / 0.7133 GB, free: 8.742 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002255/0.7275, allocations: 347.3 kB / 0.7136 GB, free: 8.391 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04618/0.7737, allocations: 15.06 MB / 0.7283 GB, free: 9.035 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001168/0.7749, allocations: 1.077 MB / 0.7294 GB, free: 7.926 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.0005979/0.7755, allocations: 103.3 kB / 0.7295 GB, free: 7.82 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009536/0.7765, allocations: 439.3 kB / 0.7299 GB, free: 7.395 MB / 0.5294 GB Notification: Performance of SimCode: time 1.273e-06/0.7765, allocations: 0 / 0.7299 GB, free: 7.395 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09025/0.8668, allocations: 31.34 MB / 0.7605 GB, free: 8.238 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.58/19.45, allocations: 16.56 kB / 0.7605 GB, free: 8.227 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)