Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.Introductory.ReferenceSynchron.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.ReferenceSynchron,fileNamePrefix="PowerSystems_PowerSystems_Examples_Introductory_ReferenceSynchron",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Introductory.ReferenceSynchron,fileNamePrefix="PowerSystems_PowerSystems_Examples_Introductory_ReferenceSynchron",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.001564/0.001564, allocations: 110.3 kB / 16.92 MB, free: 5.785 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.001807/0.001807, allocations: 191.3 kB / 17.85 MB, free: 5.164 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.347/1.347, allocations: 222.9 MB / 241.5 MB, free: 15.23 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.181/0.181, allocations: 38.02 MB / 329.7 MB, free: 8.801 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00134/0.00134, allocations: 60.81 kB / 398.9 MB, free: 33.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08782/0.08917, allocations: 58.07 MB / 457 MB, free: 7.965 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.ReferenceSynchron): time 0.005518/0.09473, allocations: 4.416 MB / 461.4 MB, free: 3.52 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002194/0.09695, allocations: 1.422 MB / 462.8 MB, free: 2.094 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002217/0.09719, allocations: 15.88 kB / 462.8 MB, free: 2.078 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001046/0.09826, allocations: 374.5 kB / 463.2 MB, free: 1.711 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006023/0.09887, allocations: 250.8 kB / 463.4 MB, free: 1.465 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006854/0.09957, allocations: 243.4 kB / 463.7 MB, free: 1.227 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00068/0.1003, allocations: 0.5573 MB / 464.2 MB, free: 0.668 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004265/0.1007, allocations: 293 kB / 464.5 MB, free: 392 kB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004065/0.1011, allocations: 251 kB / 464.7 MB, free: 140 kB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005278/0.1017, allocations: 358.9 kB / 465.1 MB, free: 15.79 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.05e-05/0.1017, allocations: 40 kB / 465.1 MB, free: 15.75 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004616/0.1022, allocations: 227.6 kB / 465.4 MB, free: 15.52 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002668/0.1025, allocations: 251.3 kB / 465.6 MB, free: 15.28 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003006/0.1028, allocations: 254.8 kB / 465.9 MB, free: 15.03 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007289/0.1035, allocations: 0.6504 MB / 466.5 MB, free: 14.38 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.407e-06/0.1036, allocations: 0 / 466.5 MB, free: 14.38 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.1036, allocations: 4 kB / 466.5 MB, free: 14.37 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.707e-05/0.1036, allocations: 0 / 466.5 MB, free: 14.37 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: 118 * Number of variables: 118 Notification: Performance of Generate backend data structure: time 0.001386/0.105, allocations: 0.7738 MB / 467.3 MB, free: 13.55 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.93e-05/0.105, allocations: 19.89 kB / 467.3 MB, free: 13.53 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001018/0.1051, allocations: 86.69 kB / 467.4 MB, free: 13.43 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005661/0.1057, allocations: 88.22 kB / 467.5 MB, free: 13.35 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005966/0.1063, allocations: 407.2 kB / 467.9 MB, free: 12.91 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.624e-05/0.1064, allocations: 29.38 kB / 467.9 MB, free: 12.88 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001183/0.1065, allocations: 47.92 kB / 467.9 MB, free: 12.84 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009291/0.1074, allocations: 0.6804 MB / 468.6 MB, free: 12.12 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.865e-05/0.1075, allocations: 3.938 kB / 468.6 MB, free: 12.12 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.521e-05/0.1075, allocations: 16 kB / 468.6 MB, free: 12.1 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001832/0.1077, allocations: 52.95 kB / 468.7 MB, free: 12.05 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009845/0.1087, allocations: 0.6752 MB / 469.4 MB, free: 11.37 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003441/0.1121, allocations: 2.513 MB / 471.9 MB, free: 8.727 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005422/0.1127, allocations: 337.3 kB / 472.2 MB, free: 8.379 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003072/0.113, allocations: 229.9 kB / 472.4 MB, free: 8.148 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.44e-05/0.1131, allocations: 11.92 kB / 472.5 MB, free: 8.137 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.14e-05/0.1131, allocations: 42.56 kB / 472.5 MB, free: 8.086 MB / 350.1 MB Notification: Performance of pre-optimization done (n=42): time 1.863e-06/0.1131, allocations: 3.938 kB / 472.5 MB, free: 8.082 MB / 350.1 MB Notification: Performance of matching and sorting (n=43): time 0.002085/0.1152, allocations: 1.336 MB / 473.8 MB, free: 6.688 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.871e-05/0.1153, allocations: 81.11 kB / 473.9 MB, free: 6.59 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002974/0.1156, allocations: 304.5 kB / 474.2 MB, free: 6.285 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.964e-05/0.1156, allocations: 29.7 kB / 474.2 MB, free: 6.25 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001641/0.1158, allocations: 263.6 kB / 474.5 MB, free: 5.984 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001253/0.1159, allocations: 145.8 kB / 474.6 MB, free: 5.84 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001356/0.1161, allocations: 102.1 kB / 474.7 MB, free: 5.73 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000141/0.1162, allocations: 346.8 kB / 475.1 MB, free: 5.383 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002957/0.1165, allocations: 205 kB / 475.3 MB, free: 5.184 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004015/0.1169, allocations: 365 kB / 475.6 MB, free: 4.758 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008071/0.1177, allocations: 0.6099 MB / 476.2 MB, free: 4.078 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.867e-06/0.1177, allocations: 0 / 476.2 MB, free: 4.078 MB / 350.1 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.0009251/0.1187, allocations: 0.6266 MB / 476.9 MB, free: 3.445 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.545e-05/0.1187, allocations: 4 kB / 476.9 MB, free: 3.441 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.11e-05/0.1187, allocations: 8.688 kB / 476.9 MB, free: 3.434 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.723e-05/0.1187, allocations: 8 kB / 476.9 MB, free: 3.426 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004427/0.1192, allocations: 115.8 kB / 477 MB, free: 3.312 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.328e-05/0.1192, allocations: 8 kB / 477 MB, free: 3.305 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002477/0.1195, allocations: 27.97 kB / 477 MB, free: 3.277 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.424e-05/0.1195, allocations: 20 kB / 477.1 MB, free: 3.258 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * 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 (57): * Single equations (assignments): 55 * Array equations: 2 * 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.0002408/0.1198, allocations: 217.6 kB / 477.3 MB, free: 3.035 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.072e-05/0.1199, allocations: 39.47 kB / 477.3 MB, free: 2.996 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007808/0.1207, allocations: 0.4894 MB / 477.8 MB, free: 2.5 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.413e-05/0.1207, allocations: 16 kB / 477.8 MB, free: 2.484 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.955e-06/0.1207, allocations: 4 kB / 477.8 MB, free: 2.48 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.153e-06/0.1207, allocations: 7.922 kB / 477.8 MB, free: 2.473 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001696/0.1224, allocations: 1.097 MB / 478.9 MB, free: 1.312 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.619e-06/0.1224, allocations: 8.094 kB / 478.9 MB, free: 1.305 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003699/0.1228, allocations: 67.89 kB / 479 MB, free: 1.238 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.51e-06/0.1228, allocations: 4 kB / 479 MB, free: 1.234 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.692e-05/0.1229, allocations: 8 kB / 479 MB, free: 1.227 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.13e-06/0.1229, allocations: 3.984 kB / 479 MB, free: 1.223 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.738e-06/0.1229, allocations: 7.938 kB / 479 MB, free: 1.215 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001029/0.1239, allocations: 0.8318 MB / 479.9 MB, free: 360 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.899e-05/0.124, allocations: 112.7 kB / 480 MB, free: 228 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.487e-05/0.1241, allocations: 11.98 kB / 480 MB, free: 216 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002105/0.1243, allocations: 15.98 kB / 480 MB, free: 200 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.865e-05/0.1243, allocations: 27.84 kB / 480 MB, free: 172 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.368e-05/0.1244, allocations: 12 kB / 480 MB, free: 160 kB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002011/0.1246, allocations: 219 kB / 480.2 MB, free: 15.95 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1246, allocations: 0 / 480.2 MB, free: 15.95 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004833/0.1251, allocations: 108 kB / 480.3 MB, free: 15.84 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 3 (load_dq0.i[1],load_dq0.i[2],load_dq0.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 (33): * Single equations (assignments): 30 * Array equations: 2 * 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.001359/0.1265, allocations: 1.393 MB / 481.7 MB, free: 14.41 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0008049/0.1273, allocations: 0.5751 MB / 482.3 MB, free: 13.84 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.1273, allocations: 8.188 kB / 482.3 MB, free: 13.83 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002835/0.1276, allocations: 224 kB / 482.5 MB, free: 13.61 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004856/0.1281, allocations: 82.52 kB / 482.6 MB, free: 13.53 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005039/0.1331, allocations: 4.389 MB / 487 MB, free: 8.902 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004693/0.1336, allocations: 0.8704 MB / 487.9 MB, free: 8.008 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003357/0.1339, allocations: 127.1 kB / 488 MB, free: 7.879 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002102/0.1342, allocations: 139.4 kB / 488.1 MB, free: 7.742 MB / 366.1 MB Notification: Performance of SimCode: time 2.61e-07/0.1342, allocations: 0 / 488.1 MB, free: 7.742 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0259/0.1601, allocations: 7.7 MB / 495.8 MB, free: 128 kB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.516/7.676, allocations: 8.062 kB / 495.9 MB, free: 120 kB / 366.1 MB (rm -f PowerSystems_PowerSystems.Examples.Introductory.ReferenceSynchron.pipe ; mkfifo PowerSystems_PowerSystems.Examples.Introductory.ReferenceSynchron.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.Introductory.ReferenceSynchron.pipe >> ../files/PowerSystems_PowerSystems.Examples.Introductory.ReferenceSynchron.sim & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.Introductory.ReferenceSynchron_res.csv --start-time 0 --stop-time 0.1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 PowerSystems_PowerSystems_Examples_Introductory_ReferenceSynchron.fmu > PowerSystems_PowerSystems.Examples.Introductory.ReferenceSynchron.pipe 2>&1)