Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_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.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.FifthOrder_AVRII,fileNamePrefix="OpenIPSL_OpenIPSL_Examples_PSATSystems_ThreeArea_FifthOrder_AVRII",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.ThreeArea.FifthOrder_AVRII,fileNamePrefix="OpenIPSL_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.004903/0.004903, allocations: 95.77 kB / 15.73 MB, free: 6.039 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.372/1.372, allocations: 222.9 MB / 239.4 MB, free: 4.555 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.001387/0.001387, allocations: 188.4 kB / 289.7 MB, free: 2.27 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4726/0.4726, allocations: 78.53 MB / 418.4 MB, free: 3.203 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001521/0.001521, allocations: 76.44 kB / 0.5532 GB, free: 1.438 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3646/0.3661, allocations: 68.18 MB / 0.6198 GB, free: 9.375 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.ThreeArea.FifthOrder_AVRII): time 0.01121/0.3774, allocations: 13.76 MB / 0.6332 GB, free: 12.34 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.008278/0.3857, allocations: 3.492 MB / 0.6366 GB, free: 8.836 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002715/0.3885, allocations: 35.88 kB / 0.6367 GB, free: 8.801 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001724/0.3902, allocations: 0.5654 MB / 0.6372 GB, free: 8.227 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005258/0.3955, allocations: 1.576 MB / 0.6388 GB, free: 6.648 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003684/0.3992, allocations: 1.523 MB / 0.6402 GB, free: 5.145 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.005603/0.4048, allocations: 3.784 MB / 0.6439 GB, free: 1.344 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001426/0.4063, allocations: 0.9008 MB / 0.6448 GB, free: 404 kB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002412/0.4087, allocations: 1.552 MB / 0.6463 GB, free: 14.84 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002211/0.4109, allocations: 1.991 MB / 0.6483 GB, free: 12.84 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004722/0.4114, allocations: 292 kB / 0.6486 GB, free: 12.55 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008769/0.4123, allocations: 435.9 kB / 0.649 GB, free: 12.12 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006099/0.4129, allocations: 0.774 MB / 0.6497 GB, free: 11.35 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001486/0.4144, allocations: 1.65 MB / 0.6513 GB, free: 9.688 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004289/0.4187, allocations: 4.039 MB / 0.6553 GB, free: 5.633 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.601e-06/0.4187, allocations: 0 / 0.6553 GB, free: 5.633 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.974e-06/0.4187, allocations: 4 kB / 0.6553 GB, free: 5.629 MB / 462.1 MB Notification: Performance of Transformations before backend: time 8.123e-05/0.4188, allocations: 0 / 0.6553 GB, free: 5.629 MB / 462.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.02355/0.4424, allocations: 6.748 MB / 0.6619 GB, free: 14.78 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.257e-05/0.4425, allocations: 8.031 kB / 0.6619 GB, free: 14.77 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004126/0.4429, allocations: 311.3 kB / 0.6622 GB, free: 14.46 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01518/0.4581, allocations: 2.292 MB / 0.6644 GB, free: 12.16 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004124/0.4622, allocations: 1.92 MB / 0.6663 GB, free: 10.18 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007269/0.463, allocations: 0.7252 MB / 0.667 GB, free: 9.336 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005234/0.4635, allocations: 216 kB / 0.6672 GB, free: 9.125 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006345/0.4699, allocations: 3.043 MB / 0.6702 GB, free: 6.004 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.911e-05/0.4699, allocations: 3.938 kB / 0.6702 GB, free: 6 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002525/0.4702, allocations: 87.94 kB / 0.6703 GB, free: 5.914 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.065e-05/0.4702, allocations: 56 kB / 0.6703 GB, free: 5.859 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005796/0.476, allocations: 2.788 MB / 0.673 GB, free: 3.055 MB / 478.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.01818/0.4942, allocations: 9.878 MB / 0.6827 GB, free: 8.754 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01107/0.5054, allocations: 4.207 MB / 0.6868 GB, free: 4.418 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004427/0.5098, allocations: 1.972 MB / 0.6887 GB, free: 2.441 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002838/0.5101, allocations: 41.95 kB / 0.6888 GB, free: 2.398 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004928/0.5151, allocations: 2.246 MB / 0.691 GB, free: 136 kB / 494.1 MB Notification: Performance of pre-optimization done (n=249): time 5.651e-06/0.5151, allocations: 4 kB / 0.691 GB, free: 132 kB / 494.1 MB Notification: Performance of matching and sorting (n=249): time 0.1175/0.6326, allocations: 27.43 MB / 0.7178 GB, free: 4.574 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001089/0.6327, allocations: 184.2 kB / 0.7179 GB, free: 4.359 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003621/0.6364, allocations: 2.313 MB / 0.7202 GB, free: 2.027 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0007443/0.6371, allocations: 77.75 kB / 0.7203 GB, free: 1.945 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009705/0.6381, allocations: 1.201 MB / 0.7214 GB, free: 0.7344 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.001332/0.6395, allocations: 0.9181 MB / 0.7223 GB, free: 15.8 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001112/0.6406, allocations: 0.566 MB / 0.7229 GB, free: 15.23 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 9.831e-05/0.6407, allocations: 301.1 kB / 0.7232 GB, free: 14.93 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004384/0.6451, allocations: 1.974 MB / 0.7251 GB, free: 12.96 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00465/0.6497, allocations: 2.346 MB / 0.7274 GB, free: 10.52 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.05712/0.7069, allocations: 14.24 MB / 0.7413 GB, free: 12.05 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.769e-05/0.7069, allocations: 7.75 kB / 0.7413 GB, free: 12.05 MB / 0.545 GB Notification: Performance of matching and sorting (n=421) (initialization): time 0.04219/0.7491, allocations: 12.56 MB / 0.7536 GB, free: 15.42 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001052/0.7493, allocations: 114.8 kB / 0.7537 GB, free: 15.28 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.419e-05/0.7493, allocations: 8 kB / 0.7537 GB, free: 15.27 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01823/0.7676, allocations: 5.261 MB / 0.7588 GB, free: 10.01 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003361/0.771, allocations: 0.5812 MB / 0.7594 GB, free: 9.426 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3327/1.104, allocations: 23.2 MB / 0.782 GB, free: 121 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004357/1.108, allocations: 0.4883 MB / 0.7825 GB, free: 120.9 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000336/1.108, allocations: 120.5 kB / 0.7826 GB, free: 120.9 MB / 0.5606 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.001145/1.11, allocations: 0.5387 MB / 0.7832 GB, free: 120.5 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000517/1.11, allocations: 315.3 kB / 0.7835 GB, free: 120.5 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03763/1.148, allocations: 11.93 MB / 0.7951 GB, free: 118 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.646e-05/1.148, allocations: 23.31 kB / 0.7951 GB, free: 118 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.839e-05/1.148, allocations: 20.8 kB / 0.7952 GB, free: 118 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.746e-05/1.148, allocations: 11.53 kB / 0.7952 GB, free: 118 MB / 0.5606 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.04155/1.189, allocations: 15.56 MB / 0.8104 GB, free: 108.1 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.947e-05/1.19, allocations: 0 / 0.8104 GB, free: 108.1 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001747/1.191, allocations: 243.7 kB / 0.8106 GB, free: 107.8 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01637/1.208, allocations: 5.305 MB / 0.8158 GB, free: 102.5 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006531/1.208, allocations: 47.98 kB / 0.8158 GB, free: 102.5 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05262/1.261, allocations: 24.96 MB / 0.8402 GB, free: 77.12 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.495e-06/1.261, allocations: 3.172 kB / 0.8402 GB, free: 77.12 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04114/1.302, allocations: 14.33 MB / 0.8542 GB, free: 62.67 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008832/1.303, allocations: 435 kB / 0.8546 GB, free: 62.27 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005419/1.304, allocations: 48 kB / 0.8547 GB, free: 62.22 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002926/1.307, allocations: 299.8 kB / 0.8549 GB, free: 61.93 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001775/1.308, allocations: 0.5763 MB / 0.8555 GB, free: 61.34 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001955/1.309, allocations: 71.98 kB / 0.8556 GB, free: 61.27 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.001904/1.311, allocations: 1.531 MB / 0.8571 GB, free: 59.74 MB / 0.5606 GB Notification: Performance of sort global known variables: time 3.31e-07/1.311, allocations: 0 / 0.8571 GB, free: 59.74 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.003219/1.314, allocations: 1.186 MB / 0.8582 GB, free: 58.59 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.04143/1.355, allocations: 14.96 MB / 0.8728 GB, free: 43.49 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01679/1.372, allocations: 6.663 MB / 0.8794 GB, free: 36.74 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 6.582e-06/1.372, allocations: 4 kB / 0.8794 GB, free: 36.73 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.01223/1.384, allocations: 4.45 MB / 0.8837 GB, free: 32.21 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002029/1.386, allocations: 272 kB / 0.884 GB, free: 31.95 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1042/1.491, allocations: 42.22 MB / 0.9252 GB, free: 5.309 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001546/1.492, allocations: 1.811 MB / 0.927 GB, free: 3.465 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.001262/1.494, allocations: 266.6 kB / 0.9272 GB, free: 3.203 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001625/1.495, allocations: 1.241 MB / 0.9284 GB, free: 1.961 MB / 0.5762 GB Notification: Performance of SimCode: time 8.82e-07/1.495, allocations: 0 / 0.9284 GB, free: 1.961 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1566/1.652, allocations: 88.47 MB / 1.015 GB, free: 9.68 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.92/19.58, allocations: 5.719 kB / 1.015 GB, free: 9.676 MB / 0.67 GB (rm -f OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.FifthOrder_AVRII.pipe ; mkfifo OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.FifthOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.FifthOrder_AVRII.pipe >> ../files/OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.FifthOrder_AVRII.sim & python3 -m fmpy simulate --output-file OpenIPSL_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_OpenIPSL_Examples_PSATSystems_ThreeArea_FifthOrder_AVRII.fmu > OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.FifthOrder_AVRII.pipe 2>&1)