Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.Introductory.Frequency.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.Introductory.Frequency,fileNamePrefix="PowerSystems_PowerSystems_Examples_Introductory_Frequency",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Introductory.Frequency,fileNamePrefix="PowerSystems_PowerSystems_Examples_Introductory_Frequency",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.001154/0.001154, allocations: 107.2 kB / 16.92 MB, free: 5.77 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.001288/0.001288, allocations: 191.5 kB / 17.85 MB, free: 5.168 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.34/1.34, allocations: 222.9 MB / 241.6 MB, free: 15.28 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1841/0.1841, allocations: 38.01 MB / 329.7 MB, free: 8.832 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001528/0.001528, allocations: 57.06 kB / 398.9 MB, free: 33.97 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08917/0.09072, allocations: 58.07 MB / 457 MB, free: 7.988 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.Frequency): time 0.006632/0.09739, allocations: 5.429 MB / 462.4 MB, free: 2.527 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001843/0.09926, allocations: 1.111 MB / 463.5 MB, free: 1.414 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002979/0.09958, allocations: 19.88 kB / 463.5 MB, free: 1.395 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002644/0.09987, allocations: 79.27 kB / 463.6 MB, free: 1.316 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009139/0.1008, allocations: 294.3 kB / 463.9 MB, free: 1.027 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003283/0.1011, allocations: 147.7 kB / 464 MB, free: 0.8828 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000731/0.1019, allocations: 0.6929 MB / 464.7 MB, free: 192 kB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002717/0.1022, allocations: 176.7 kB / 464.9 MB, free: 8 kB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004771/0.1026, allocations: 306.6 kB / 465.2 MB, free: 15.71 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005494/0.1032, allocations: 330.8 kB / 465.5 MB, free: 15.38 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.238e-05/0.1033, allocations: 32 kB / 465.5 MB, free: 15.35 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.768e-05/0.1034, allocations: 36 kB / 465.6 MB, free: 15.32 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001604/0.1036, allocations: 155.5 kB / 465.7 MB, free: 15.16 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002596/0.1038, allocations: 242.7 kB / 466 MB, free: 14.93 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004607/0.1043, allocations: 486.2 kB / 466.4 MB, free: 14.45 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.392e-06/0.1043, allocations: 4 kB / 466.5 MB, free: 14.45 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.303e-06/0.1043, allocations: 3.938 kB / 466.5 MB, free: 14.44 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.552e-05/0.1043, allocations: 0 / 466.5 MB, free: 14.44 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 90 * Number of variables: 90 Notification: Performance of Generate backend data structure: time 0.001381/0.1057, allocations: 0.793 MB / 467.2 MB, free: 13.6 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.991e-05/0.1058, allocations: 11.89 kB / 467.3 MB, free: 13.59 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.941e-05/0.1059, allocations: 82.66 kB / 467.3 MB, free: 13.5 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.552e-05/0.106, allocations: 56.28 kB / 467.4 MB, free: 13.45 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006422/0.1066, allocations: 428 kB / 467.8 MB, free: 12.99 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.827e-05/0.1067, allocations: 29 kB / 467.8 MB, free: 12.96 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.031e-05/0.1067, allocations: 36 kB / 467.9 MB, free: 12.93 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006564/0.1074, allocations: 459.6 kB / 468.3 MB, free: 12.45 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.646e-05/0.1074, allocations: 3.938 kB / 468.3 MB, free: 12.44 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.446e-05/0.1075, allocations: 16 kB / 468.3 MB, free: 12.43 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.347e-05/0.1075, allocations: 8 kB / 468.4 MB, free: 12.42 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004774/0.108, allocations: 304.7 kB / 468.6 MB, free: 12.12 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002011/0.11, allocations: 1.771 MB / 470.4 MB, free: 10.24 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002298/0.1102, allocations: 143.6 kB / 470.6 MB, free: 10.07 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.159e-05/0.1103, allocations: 58.66 kB / 470.6 MB, free: 10 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.789e-05/0.1104, allocations: 4 kB / 470.6 MB, free: 10 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.564e-05/0.1104, allocations: 42.5 kB / 470.7 MB, free: 9.949 MB / 350.1 MB Notification: Performance of pre-optimization done (n=14): time 1.613e-06/0.1104, allocations: 0 / 470.7 MB, free: 9.949 MB / 350.1 MB Notification: Performance of matching and sorting (n=15): time 0.0009947/0.1114, allocations: 0.6037 MB / 471.3 MB, free: 9.289 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.704e-05/0.1115, allocations: 110.9 kB / 471.4 MB, free: 9.156 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003435/0.1118, allocations: 365.6 kB / 471.7 MB, free: 8.785 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.942e-05/0.1119, allocations: 33.7 kB / 471.8 MB, free: 8.746 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001638/0.112, allocations: 275.4 kB / 472 MB, free: 8.469 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.19e-05/0.1121, allocations: 63.19 kB / 472.1 MB, free: 8.406 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.591e-05/0.1122, allocations: 57.61 kB / 472.2 MB, free: 8.344 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001149/0.1123, allocations: 350.8 kB / 472.5 MB, free: 7.992 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.494e-05/0.1124, allocations: 47.98 kB / 472.5 MB, free: 7.945 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001647/0.1126, allocations: 198.5 kB / 472.7 MB, free: 7.684 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002827/0.1129, allocations: 263 kB / 473 MB, free: 7.359 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.896e-06/0.1129, allocations: 0 / 473 MB, free: 7.359 MB / 350.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0004126/0.1133, allocations: 292.6 kB / 473.3 MB, free: 7.066 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.216e-05/0.1133, allocations: 10.03 kB / 473.3 MB, free: 7.059 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.134e-05/0.1133, allocations: 4.625 kB / 473.3 MB, free: 7.055 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.473e-05/0.1134, allocations: 15.98 kB / 473.3 MB, free: 7.039 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002545/0.1136, allocations: 64.36 kB / 473.4 MB, free: 6.977 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.481e-05/0.1137, allocations: 19.86 kB / 473.4 MB, free: 6.957 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001669/0.1138, allocations: 12 kB / 473.4 MB, free: 6.945 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.022e-05/0.1139, allocations: 16 kB / 473.4 MB, free: 6.93 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * 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 (37): * Single equations (assignments): 37 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001635/0.114, allocations: 177.6 kB / 473.6 MB, free: 6.746 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.853e-05/0.1141, allocations: 47.47 kB / 473.6 MB, free: 6.699 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002783/0.1144, allocations: 172.7 kB / 473.8 MB, free: 6.523 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.357e-06/0.1144, allocations: 0 / 473.8 MB, free: 6.523 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.328e-06/0.1144, allocations: 0 / 473.8 MB, free: 6.523 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.245e-06/0.1144, allocations: 7.984 kB / 473.8 MB, free: 6.516 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006063/0.115, allocations: 0.5264 MB / 474.3 MB, free: 5.93 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.314e-06/0.1151, allocations: 4 kB / 474.3 MB, free: 5.926 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002006/0.1153, allocations: 35.98 kB / 474.4 MB, free: 5.891 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.517e-06/0.1153, allocations: 0 / 474.4 MB, free: 5.891 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.518e-05/0.1153, allocations: 4 kB / 474.4 MB, free: 5.887 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.294e-06/0.1153, allocations: 4.031 kB / 474.4 MB, free: 5.883 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.131e-06/0.1153, allocations: 11.88 kB / 474.4 MB, free: 5.871 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003879/0.1157, allocations: 391.9 kB / 474.8 MB, free: 5.465 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.997e-05/0.1158, allocations: 112.6 kB / 474.9 MB, free: 5.336 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.336e-05/0.1158, allocations: 4 kB / 474.9 MB, free: 5.332 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001681/0.116, allocations: 11.94 kB / 474.9 MB, free: 5.32 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.737e-05/0.1161, allocations: 12.03 kB / 474.9 MB, free: 5.309 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.155e-05/0.1161, allocations: 4 kB / 474.9 MB, free: 5.305 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002359/0.1163, allocations: 259.1 kB / 475.2 MB, free: 5.059 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1163, allocations: 0 / 475.2 MB, free: 5.059 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004237/0.1168, allocations: 75.98 kB / 475.3 MB, free: 4.984 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (ind1.i,voltage2.theta,ind2.i) * 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 (18): * Single equations (assignments): 17 * 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.0006219/0.1174, allocations: 0.9363 MB / 476.2 MB, free: 4.02 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002895/0.1177, allocations: 157.1 kB / 476.3 MB, free: 3.867 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.1177, allocations: 0 / 476.3 MB, free: 3.867 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.724e-05/0.1178, allocations: 60.02 kB / 476.4 MB, free: 3.809 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007246/0.1185, allocations: 97.22 kB / 476.5 MB, free: 3.715 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004033/0.1226, allocations: 3.435 MB / 479.9 MB, free: 52 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003733/0.123, allocations: 0.8387 MB / 480.8 MB, free: 15.19 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002066/0.1232, allocations: 51.19 kB / 480.8 MB, free: 15.14 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001741/0.1234, allocations: 155.4 kB / 481 MB, free: 14.99 MB / 366.1 MB Notification: Performance of SimCode: time 4.51e-07/0.1234, allocations: 3.938 kB / 481 MB, free: 14.98 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02468/0.1481, allocations: 6.898 MB / 487.9 MB, free: 8.176 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.451/7.599, allocations: 11.98 kB / 487.9 MB, free: 8.164 MB / 366.1 MB (rm -f PowerSystems_PowerSystems.Examples.Introductory.Frequency.pipe ; mkfifo PowerSystems_PowerSystems.Examples.Introductory.Frequency.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.Introductory.Frequency.pipe >> ../files/PowerSystems_PowerSystems.Examples.Introductory.Frequency.sim & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.Introductory.Frequency_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 PowerSystems_PowerSystems_Examples_Introductory_Frequency.fmu > PowerSystems_PowerSystems.Examples.Introductory.Frequency.pipe 2>&1)