Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.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.TwoAreaOld.FifthOrder_AVRII,fileNamePrefix="OpenIPSL_OpenIPSL_Examples_PSATSystems_TwoAreaOld_FifthOrder_AVRII",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_AVRII,fileNamePrefix="OpenIPSL_OpenIPSL_Examples_PSATSystems_TwoAreaOld_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.007552/0.007552, allocations: 101.6 kB / 15.73 MB, free: 6.5 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.307/1.307, allocations: 222.9 MB / 239.4 MB, free: 4.508 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.001581/0.001581, allocations: 192.5 kB / 289.7 MB, free: 2.23 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4448/0.4448, allocations: 78.54 MB / 418.4 MB, free: 3.152 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001643/0.001643, allocations: 83.83 kB / 0.5532 GB, free: 1.426 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.314/0.3156, allocations: 68.17 MB / 0.6197 GB, free: 9.305 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_AVRII): time 0.005234/0.3209, allocations: 6.639 MB / 0.6262 GB, free: 3.496 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.003399/0.3243, allocations: 1.993 MB / 0.6282 GB, free: 1.496 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006874/0.325, allocations: 12 kB / 0.6282 GB, free: 1.484 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007038/0.3258, allocations: 242 kB / 0.6284 GB, free: 1.246 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001767/0.3276, allocations: 0.8636 MB / 0.6292 GB, free: 392 kB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001255/0.3288, allocations: 0.6411 MB / 0.6299 GB, free: 15.75 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.001457/0.3303, allocations: 1.636 MB / 0.6315 GB, free: 14.11 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004447/0.3307, allocations: 330.5 kB / 0.6318 GB, free: 13.77 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007185/0.3315, allocations: 0.6808 MB / 0.6325 GB, free: 13.09 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008319/0.3323, allocations: 0.8557 MB / 0.6333 GB, free: 12.23 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001597/0.3325, allocations: 128 kB / 0.6334 GB, free: 12.1 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000441/0.3329, allocations: 263.9 kB / 0.6337 GB, free: 11.84 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002726/0.3332, allocations: 346.6 kB / 0.634 GB, free: 11.5 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005107/0.3337, allocations: 0.6913 MB / 0.6347 GB, free: 10.81 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001695/0.3354, allocations: 1.712 MB / 0.6363 GB, free: 9.094 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.3355, allocations: 3.938 kB / 0.6363 GB, free: 9.09 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.3355, allocations: 0 / 0.6363 GB, free: 9.09 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.565e-05/0.3355, allocations: 0 / 0.6363 GB, free: 9.09 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: 191 * Number of variables: 191 Notification: Performance of Generate backend data structure: time 0.008874/0.3444, allocations: 2.8 MB / 0.6391 GB, free: 6.219 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.557e-05/0.3444, allocations: 12.03 kB / 0.6391 GB, free: 6.207 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001566/0.3446, allocations: 130.7 kB / 0.6392 GB, free: 6.07 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004901/0.3495, allocations: 0.7835 MB / 0.64 GB, free: 5.285 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001546/0.3511, allocations: 0.9227 MB / 0.6409 GB, free: 4.309 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002759/0.3513, allocations: 264.2 kB / 0.6411 GB, free: 4.012 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001715/0.3515, allocations: 87.95 kB / 0.6412 GB, free: 3.926 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002046/0.3536, allocations: 1.094 MB / 0.6423 GB, free: 2.82 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.993e-05/0.3536, allocations: 0 / 0.6423 GB, free: 2.82 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.491e-05/0.3537, allocations: 35.98 kB / 0.6423 GB, free: 2.785 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.827e-05/0.3537, allocations: 20 kB / 0.6423 GB, free: 2.766 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001941/0.3557, allocations: 0.9994 MB / 0.6433 GB, free: 1.766 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.006163/0.3619, allocations: 3.856 MB / 0.6471 GB, free: 13.73 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00724/0.3691, allocations: 2.394 MB / 0.6494 GB, free: 11.24 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001355/0.3705, allocations: 0.684 MB / 0.6501 GB, free: 10.55 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.582e-05/0.3706, allocations: 24.95 kB / 0.6501 GB, free: 10.53 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001574/0.3722, allocations: 0.8333 MB / 0.6509 GB, free: 9.676 MB / 462.1 MB Notification: Performance of pre-optimization done (n=97): time 2.896e-06/0.3722, allocations: 0 / 0.6509 GB, free: 9.676 MB / 462.1 MB Notification: Performance of matching and sorting (n=97): time 0.02833/0.4005, allocations: 7.218 MB / 0.658 GB, free: 2.395 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.341e-05/0.4006, allocations: 115.8 kB / 0.6581 GB, free: 2.258 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001993/0.4027, allocations: 1.131 MB / 0.6592 GB, free: 1.113 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002142/0.4029, allocations: 41.7 kB / 0.6592 GB, free: 1.066 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004238/0.4033, allocations: 0.5054 MB / 0.6597 GB, free: 0.5547 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004697/0.4038, allocations: 380.8 kB / 0.6601 GB, free: 184 kB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007176/0.4045, allocations: 295.4 kB / 0.6604 GB, free: 15.89 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 8.91e-05/0.4046, allocations: 305.1 kB / 0.6607 GB, free: 15.59 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001696/0.4063, allocations: 0.7808 MB / 0.6614 GB, free: 14.8 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001756/0.4081, allocations: 0.9538 MB / 0.6624 GB, free: 13.81 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02402/0.4321, allocations: 5.79 MB / 0.668 GB, free: 7.934 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.007e-06/0.4322, allocations: 0 / 0.668 GB, free: 7.934 MB / 478.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.01335/0.4456, allocations: 4.462 MB / 0.6724 GB, free: 3.441 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.596e-05/0.4457, allocations: 63.39 kB / 0.6724 GB, free: 3.367 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.384e-05/0.4457, allocations: 0 / 0.6724 GB, free: 3.367 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005855/0.4516, allocations: 1.631 MB / 0.674 GB, free: 1.734 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001472/0.453, allocations: 291.6 kB / 0.6743 GB, free: 1.449 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01966/0.4727, allocations: 8.617 MB / 0.6827 GB, free: 8.684 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001948/0.4747, allocations: 211.1 kB / 0.6829 GB, free: 8.477 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001277/0.4749, allocations: 59.97 kB / 0.683 GB, free: 8.418 MB / 494.1 MB Warning: Assuming fixed start value for the following 5 variables: order5.w:VARIABLE(flow=false start = 1.0 fixed = true ) "Rotor speed [pu]" type: Real order2.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 order5.delta:VARIABLE(flow=false start = order5.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real order5.e1q:VARIABLE(start = order5.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 (167): * Single equations (assignments): 164 * 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 {(20,14,23.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0006074/0.4755, allocations: 315.1 kB / 0.6833 GB, free: 8.094 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002195/0.4757, allocations: 131.2 kB / 0.6834 GB, free: 7.965 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01227/0.488, allocations: 3.9 MB / 0.6872 GB, free: 4.027 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.917e-05/0.488, allocations: 8 kB / 0.6872 GB, free: 4.02 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.117e-05/0.4881, allocations: 12 kB / 0.6872 GB, free: 4.008 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.268e-05/0.4881, allocations: 3.984 kB / 0.6872 GB, free: 4.004 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.01412/0.5022, allocations: 5.515 MB / 0.6926 GB, free: 14.38 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.159e-05/0.5023, allocations: 0 / 0.6926 GB, free: 14.38 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006624/0.5029, allocations: 107.8 kB / 0.6927 GB, free: 14.28 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005341/0.5083, allocations: 1.587 MB / 0.6943 GB, free: 12.68 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000147/0.5085, allocations: 16 kB / 0.6943 GB, free: 12.67 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01922/0.5277, allocations: 9.663 MB / 0.7037 GB, free: 2.715 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.525e-06/0.5277, allocations: 0 / 0.7037 GB, free: 2.715 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01417/0.5419, allocations: 4.783 MB / 0.7084 GB, free: 13.9 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005292/0.5425, allocations: 239.9 kB / 0.7086 GB, free: 13.64 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001895/0.5427, allocations: 19.94 kB / 0.7086 GB, free: 13.62 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00118/0.5439, allocations: 111.9 kB / 0.7087 GB, free: 13.52 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005615/0.5445, allocations: 196.7 kB / 0.7089 GB, free: 13.32 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.605e-05/0.5445, allocations: 35.98 kB / 0.709 GB, free: 13.29 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.001059/0.5456, allocations: 0.7553 MB / 0.7097 GB, free: 12.53 MB / 0.5137 GB Notification: Performance of sort global known variables: time 2.4e-07/0.5456, allocations: 0 / 0.7097 GB, free: 12.53 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.001395/0.547, allocations: 483.7 kB / 0.7102 GB, free: 12.05 MB / 0.5137 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 11 (order2.delta,order2.w,order5.delta,order5.w,order5.e1q,order5.e2q,order5.e2d,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 (65): * Single equations (assignments): 62 * 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 {(18,14,25.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01453/0.5616, allocations: 5.374 MB / 0.7154 GB, free: 6.633 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.006604/0.5682, allocations: 2.601 MB / 0.7179 GB, free: 3.988 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 5.079e-06/0.5682, allocations: 0 / 0.7179 GB, free: 3.988 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.00415/0.5724, allocations: 1.602 MB / 0.7195 GB, free: 2.344 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001234/0.5737, allocations: 116 kB / 0.7196 GB, free: 2.234 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04059/0.6143, allocations: 16.56 MB / 0.7358 GB, free: 1.453 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008611/0.6152, allocations: 1.132 MB / 0.7369 GB, free: 296 kB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.0005916/0.6158, allocations: 124.1 kB / 0.737 GB, free: 168 kB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007862/0.6166, allocations: 475.3 kB / 0.7375 GB, free: 15.7 MB / 0.545 GB Notification: Performance of SimCode: time 7.41e-07/0.6166, allocations: 0 / 0.7375 GB, free: 15.7 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3247/0.9413, allocations: 35.14 MB / 0.7718 GB, free: 139.6 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.93/13.87, allocations: 7.797 kB / 0.7718 GB, free: 139.6 MB / 0.5606 GB (rm -f OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_AVRII.pipe ; mkfifo OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_AVRII.pipe >> ../files/OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_AVRII.sim & python3 -m fmpy simulate --output-file OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.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_TwoAreaOld_FifthOrder_AVRII.fmu > OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_AVRII.pipe 2>&1)