Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Transmission.VoltageStability.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/Complex 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/PowerSystems 2.0.0/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/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 Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 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(PowerSystems.Examples.AC3ph.Transmission.VoltageStability,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Transmission_VoltageStability",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Transmission.VoltageStability,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Transmission_VoltageStability",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.00209/0.00209, allocations: 109.8 kB / 17.06 MB, free: 6.016 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001958/0.001958, allocations: 191 kB / 18 MB, free: 5.102 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 / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1747/0.1747, allocations: 38.04 MB / 329.9 MB, free: 8.688 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001198/0.001198, allocations: 59.91 kB / 457.7 MB, free: 7.316 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3095/0.3108, allocations: 58.06 MB / 0.5036 GB, free: 7.41 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Transmission.VoltageStability): time 0.008061/0.3189, allocations: 8.913 MB / 0.5123 GB, free: 1.16 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.005119/0.324, allocations: 3.039 MB / 0.5153 GB, free: 15.02 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007379/0.3248, allocations: 34.41 kB / 0.5153 GB, free: 15.01 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002664/0.3275, allocations: 1.082 MB / 0.5164 GB, free: 14.35 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001653/0.3292, allocations: 0.6272 MB / 0.517 GB, free: 13.98 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002021/0.3312, allocations: 0.731 MB / 0.5177 GB, free: 13.67 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.002218/0.3334, allocations: 1.62 MB / 0.5193 GB, free: 12.98 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001358/0.3348, allocations: 0.906 MB / 0.5202 GB, free: 12.59 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001319/0.3361, allocations: 0.7484 MB / 0.5209 GB, free: 12.25 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001372/0.3375, allocations: 0.9348 MB / 0.5218 GB, free: 11.91 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001673/0.3377, allocations: 103 kB / 0.5219 GB, free: 11.91 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009701/0.3387, allocations: 450.5 kB / 0.5223 GB, free: 11.8 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007293/0.3394, allocations: 0.6679 MB / 0.523 GB, free: 11.57 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008506/0.3403, allocations: 0.709 MB / 0.5237 GB, free: 11.15 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002496/0.3428, allocations: 1.803 MB / 0.5255 GB, free: 10.48 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.409e-06/0.3428, allocations: 0 / 0.5255 GB, free: 10.48 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.3428, allocations: 1.281 kB / 0.5255 GB, free: 10.48 MB / 398.1 MB Notification: Performance of Transformations before backend: time 3.099e-05/0.3428, allocations: 0 / 0.5255 GB, free: 10.48 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 330 * Number of variables: 330 Notification: Performance of Generate backend data structure: time 0.003405/0.3462, allocations: 1.676 MB / 0.5271 GB, free: 9.41 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.209e-05/0.3463, allocations: 18.39 kB / 0.5271 GB, free: 9.402 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002518/0.3466, allocations: 192.4 kB / 0.5273 GB, free: 9.285 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001782/0.3483, allocations: 287.7 kB / 0.5276 GB, free: 9.191 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001882/0.3502, allocations: 0.8871 MB / 0.5284 GB, free: 8.688 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.707e-05/0.3503, allocations: 86.33 kB / 0.5285 GB, free: 8.648 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003546/0.3507, allocations: 153 kB / 0.5287 GB, free: 8.598 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002805/0.3535, allocations: 1.854 MB / 0.5305 GB, free: 7.445 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.005e-05/0.3536, allocations: 9.375 kB / 0.5305 GB, free: 7.441 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001243/0.3537, allocations: 50.25 kB / 0.5305 GB, free: 7.406 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002992/0.354, allocations: 100.9 kB / 0.5306 GB, free: 7.379 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002366/0.3564, allocations: 1.493 MB / 0.5321 GB, free: 6.664 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009289/0.3657, allocations: 8.272 MB / 0.5402 GB, free: 15.61 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001392/0.3671, allocations: 1.169 MB / 0.5413 GB, free: 14.66 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000683/0.3678, allocations: 487.7 kB / 0.5418 GB, free: 14.42 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.375e-05/0.3678, allocations: 18.38 kB / 0.5418 GB, free: 14.41 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.476e-05/0.3679, allocations: 50.41 kB / 0.5418 GB, free: 14.36 MB / 414.1 MB Notification: Performance of pre-optimization done (n=82): time 2.775e-06/0.3679, allocations: 1.219 kB / 0.5418 GB, free: 14.36 MB / 414.1 MB Notification: Performance of matching and sorting (n=83): time 0.004021/0.3719, allocations: 2.464 MB / 0.5442 GB, free: 12.89 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.285e-05/0.372, allocations: 89.95 kB / 0.5443 GB, free: 12.8 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009036/0.3729, allocations: 0.8257 MB / 0.5451 GB, free: 12.34 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 5.569e-05/0.373, allocations: 37.14 kB / 0.5452 GB, free: 12.3 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004494/0.3734, allocations: 0.7088 MB / 0.5459 GB, free: 11.66 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002729/0.3737, allocations: 318.1 kB / 0.5462 GB, free: 11.39 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003367/0.374, allocations: 257.6 kB / 0.5464 GB, free: 11.24 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001828/0.3742, allocations: 415.4 kB / 0.5468 GB, free: 10.86 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006315/0.3749, allocations: 448 kB / 0.5472 GB, free: 10.66 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009858/0.3759, allocations: 1.009 MB / 0.5482 GB, free: 9.688 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001754/0.3776, allocations: 1.585 MB / 0.5498 GB, free: 7.844 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.145e-05/0.3777, allocations: 8 kB / 0.5498 GB, free: 7.836 MB / 414.1 MB Notification: Performance of matching and sorting (n=177) (initialization): time 0.002854/0.3805, allocations: 1.776 MB / 0.5515 GB, free: 6.043 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.359e-05/0.3805, allocations: 16.06 kB / 0.5515 GB, free: 6.027 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001639/0.3822, allocations: 0.9773 MB / 0.5525 GB, free: 5.039 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008396/0.383, allocations: 250.3 kB / 0.5527 GB, free: 4.785 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009843/0.384, allocations: 307.5 kB / 0.553 GB, free: 4.484 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004386/0.3884, allocations: 5.188 MB / 0.5581 GB, free: 14.88 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008649/0.3893, allocations: 55.94 kB / 0.5581 GB, free: 14.82 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.988e-05/0.3894, allocations: 68 kB / 0.5582 GB, free: 14.76 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 84 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (168): * Single equations (assignments): 165 * Array equations: 0 * Algorithm blocks: 0 * 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): 3 systems {(1,3,100.0%), (1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0006497/0.3901, allocations: 429.2 kB / 0.5586 GB, free: 14.33 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001397/0.3902, allocations: 103.3 kB / 0.5587 GB, free: 14.23 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001435/0.3917, allocations: 0.9492 MB / 0.5596 GB, free: 13.27 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.025e-05/0.3917, allocations: 15.94 kB / 0.5596 GB, free: 13.25 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.605e-06/0.3917, allocations: 7.938 kB / 0.5597 GB, free: 13.25 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.076e-06/0.3917, allocations: 3.984 kB / 0.5597 GB, free: 13.24 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003461/0.3952, allocations: 2.126 MB / 0.5617 GB, free: 11.04 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.71e-06/0.3952, allocations: 4 kB / 0.5617 GB, free: 11.04 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008647/0.3961, allocations: 187.8 kB / 0.5619 GB, free: 10.85 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.762e-06/0.3961, allocations: 4 kB / 0.5619 GB, free: 10.85 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.339e-05/0.3961, allocations: 27.98 kB / 0.5619 GB, free: 10.82 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.641e-06/0.3962, allocations: 4.188 kB / 0.5619 GB, free: 10.82 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.697e-06/0.3962, allocations: 8 kB / 0.562 GB, free: 10.81 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001709/0.3979, allocations: 1.41 MB / 0.5633 GB, free: 9.363 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002196/0.3981, allocations: 168.4 kB / 0.5635 GB, free: 9.18 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001182/0.3982, allocations: 23.98 kB / 0.5635 GB, free: 9.156 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003983/0.3986, allocations: 19.98 kB / 0.5635 GB, free: 9.137 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.454e-05/0.3987, allocations: 56.56 kB / 0.5636 GB, free: 9.082 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.701e-05/0.3988, allocations: 27.98 kB / 0.5636 GB, free: 9.055 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0006069/0.3994, allocations: 0.538 MB / 0.5641 GB, free: 8.52 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3994, allocations: 4.188 kB / 0.5641 GB, free: 8.516 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001105/0.4005, allocations: 296 kB / 0.5644 GB, free: 8.227 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 9 (line0.i[1],line0.i[2],line0.i[3],line1.i[1],line1.i[2],line1.i[3],line2.i[1],line2.i[2],line2.i[3]) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (86): * Single equations (assignments): 85 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002094/0.4026, allocations: 1.981 MB / 0.5664 GB, free: 6.195 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.002117/0.4048, allocations: 1.461 MB / 0.5678 GB, free: 4.699 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/0.4048, allocations: 0 / 0.5678 GB, free: 4.699 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005339/0.4053, allocations: 413.2 kB / 0.5682 GB, free: 4.297 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009378/0.4063, allocations: 187.6 kB / 0.5684 GB, free: 4.117 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01402/0.4203, allocations: 10.34 MB / 0.5785 GB, free: 9.094 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009662/0.4213, allocations: 1.243 MB / 0.5797 GB, free: 7.816 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.000959/0.4223, allocations: 424.7 kB / 0.5801 GB, free: 7.398 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006422/0.4229, allocations: 467.3 kB / 0.5805 GB, free: 6.941 MB / 446.1 MB Notification: Performance of SimCode: time 1.323e-06/0.4229, allocations: 3.938 kB / 0.5805 GB, free: 6.938 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04937/0.4723, allocations: 20.85 MB / 0.6009 GB, free: 2.258 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.26/11.73, allocations: 3.953 kB / 0.6009 GB, free: 2.254 MB / 462.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Transmission.VoltageStability.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Transmission.VoltageStability.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Transmission.VoltageStability.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Transmission.VoltageStability.sim & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.AC3ph.Transmission.VoltageStability_res.csv --start-time 0 --stop-time 180 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.18 PowerSystems_PowerSystems_Examples_AC3ph_Transmission_VoltageStability.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Transmission.VoltageStability.pipe 2>&1)