Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.Introductory.ReferenceInertial.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.ReferenceInertial,fileNamePrefix="PowerSystems_PowerSystems_Examples_Introductory_ReferenceInertial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Introductory.ReferenceInertial,fileNamePrefix="PowerSystems_PowerSystems_Examples_Introductory_ReferenceInertial",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.00153/0.00153, allocations: 108.9 kB / 16.92 MB, free: 5.727 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.002237/0.002238, allocations: 191.3 kB / 17.85 MB, free: 5.176 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.374/1.374, allocations: 222.9 MB / 241.6 MB, free: 15.31 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.174/0.174, allocations: 38.02 MB / 329.7 MB, free: 8.73 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001247/0.001247, allocations: 61.94 kB / 398.9 MB, free: 33.94 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09072/0.09199, allocations: 58.06 MB / 457 MB, free: 7.965 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.ReferenceInertial): time 0.006926/0.09895, allocations: 4.419 MB / 461.4 MB, free: 3.52 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00266/0.1017, allocations: 1.429 MB / 462.8 MB, free: 2.086 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003692/0.102, allocations: 15.94 kB / 462.8 MB, free: 2.07 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001297/0.1034, allocations: 362.5 kB / 463.2 MB, free: 1.715 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007467/0.1041, allocations: 234.9 kB / 463.4 MB, free: 1.484 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006716/0.1048, allocations: 243.4 kB / 463.6 MB, free: 1.246 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000627/0.1054, allocations: 0.5301 MB / 464.2 MB, free: 0.7148 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004407/0.1059, allocations: 289 kB / 464.5 MB, free: 444 kB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004093/0.1063, allocations: 243 kB / 464.7 MB, free: 200 kB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004998/0.1068, allocations: 291.1 kB / 465 MB, free: 15.91 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.41e-05/0.1069, allocations: 32 kB / 465 MB, free: 15.88 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003208/0.1072, allocations: 147.7 kB / 465.2 MB, free: 15.73 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002257/0.1075, allocations: 219.5 kB / 465.4 MB, free: 15.52 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002846/0.1078, allocations: 234.9 kB / 465.6 MB, free: 15.29 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00064/0.1084, allocations: 0.5529 MB / 466.1 MB, free: 14.73 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.1084, allocations: 0 / 466.1 MB, free: 14.73 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.276e-06/0.1085, allocations: 7.938 kB / 466.2 MB, free: 14.73 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.246e-05/0.1085, allocations: 3.938 kB / 466.2 MB, free: 14.72 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: 109 * Number of variables: 109 Notification: Performance of Generate backend data structure: time 0.00132/0.1098, allocations: 0.7272 MB / 466.9 MB, free: 13.95 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.999e-05/0.1099, allocations: 11.89 kB / 466.9 MB, free: 13.93 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001001/0.11, allocations: 86.7 kB / 467 MB, free: 13.84 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005744/0.1106, allocations: 80.33 kB / 467.1 MB, free: 13.76 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005908/0.1112, allocations: 391.2 kB / 467.4 MB, free: 13.34 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.337e-05/0.1112, allocations: 33.38 kB / 467.5 MB, free: 13.31 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001162/0.1113, allocations: 51.92 kB / 467.5 MB, free: 13.26 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008452/0.1122, allocations: 0.6209 MB / 468.1 MB, free: 12.57 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.057e-05/0.1122, allocations: 7.938 kB / 468.2 MB, free: 12.56 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.299e-05/0.1123, allocations: 20 kB / 468.2 MB, free: 12.54 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001139/0.1124, allocations: 28.98 kB / 468.2 MB, free: 12.52 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000753/0.1131, allocations: 479.5 kB / 468.7 MB, free: 12.04 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003115/0.1163, allocations: 2.891 MB / 471.6 MB, free: 9.004 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003888/0.1167, allocations: 228.8 kB / 471.8 MB, free: 8.762 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002196/0.1169, allocations: 150.6 kB / 471.9 MB, free: 8.609 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.027e-05/0.1169, allocations: 4 kB / 471.9 MB, free: 8.605 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.805e-05/0.117, allocations: 34.56 kB / 472 MB, free: 8.562 MB / 350.1 MB Notification: Performance of pre-optimization done (n=27): time 1.934e-06/0.117, allocations: 7.938 kB / 472 MB, free: 8.555 MB / 350.1 MB Notification: Performance of matching and sorting (n=28): time 0.001553/0.1185, allocations: 0.9583 MB / 472.9 MB, free: 7.543 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.572e-05/0.1186, allocations: 85.09 kB / 473 MB, free: 7.441 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003234/0.1189, allocations: 320.4 kB / 473.3 MB, free: 7.125 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.824e-05/0.119, allocations: 33.7 kB / 473.4 MB, free: 7.086 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00018/0.1192, allocations: 275.2 kB / 473.6 MB, free: 6.809 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.897e-05/0.1192, allocations: 102.8 kB / 473.7 MB, free: 6.707 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000126/0.1194, allocations: 90.16 kB / 473.8 MB, free: 6.609 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001495/0.1195, allocations: 350.8 kB / 474.2 MB, free: 6.258 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002313/0.1198, allocations: 141 kB / 474.3 MB, free: 6.121 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003675/0.1201, allocations: 347.7 kB / 474.6 MB, free: 5.691 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006639/0.1208, allocations: 0.5325 MB / 475.2 MB, free: 5.066 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.609e-06/0.1208, allocations: 4 kB / 475.2 MB, free: 5.062 MB / 350.1 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.0008116/0.1217, allocations: 0.5285 MB / 475.7 MB, free: 4.527 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.17e-05/0.1217, allocations: 10.03 kB / 475.7 MB, free: 4.52 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.054e-05/0.1217, allocations: 4 kB / 475.7 MB, free: 4.516 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.505e-05/0.1217, allocations: 15.98 kB / 475.7 MB, free: 4.5 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004204/0.1222, allocations: 115.8 kB / 475.8 MB, free: 4.387 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.876e-05/0.1222, allocations: 19.92 kB / 475.9 MB, free: 4.367 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002417/0.1224, allocations: 27.92 kB / 475.9 MB, free: 4.34 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.578e-05/0.1225, allocations: 24 kB / 475.9 MB, free: 4.316 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * 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 (58): * Single equations (assignments): 58 * 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.0002172/0.1227, allocations: 221.6 kB / 476.1 MB, free: 4.09 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.043e-05/0.1228, allocations: 31.62 kB / 476.2 MB, free: 4.059 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005957/0.1234, allocations: 365.6 kB / 476.5 MB, free: 3.688 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.899e-06/0.1234, allocations: 4 kB / 476.5 MB, free: 3.684 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.398e-06/0.1234, allocations: 0 / 476.5 MB, free: 3.684 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.729e-06/0.1234, allocations: 0 / 476.5 MB, free: 3.684 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001428/0.1249, allocations: 0.891 MB / 477.4 MB, free: 2.727 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.738e-06/0.1249, allocations: 7.938 kB / 477.4 MB, free: 2.719 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000346/0.1252, allocations: 63.91 kB / 477.5 MB, free: 2.656 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.3e-06/0.1252, allocations: 4 kB / 477.5 MB, free: 2.652 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.039e-05/0.1253, allocations: 15.92 kB / 477.5 MB, free: 2.637 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.39e-06/0.1253, allocations: 4 kB / 477.5 MB, free: 2.633 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.044e-06/0.1253, allocations: 0 / 477.5 MB, free: 2.633 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007803/0.1261, allocations: 0.5848 MB / 478.1 MB, free: 2.02 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.391e-05/0.1262, allocations: 104.7 kB / 478.2 MB, free: 1.898 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.437e-05/0.1262, allocations: 11.94 kB / 478.2 MB, free: 1.887 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001872/0.1264, allocations: 12.03 kB / 478.2 MB, free: 1.875 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.575e-05/0.1265, allocations: 23.97 kB / 478.2 MB, free: 1.852 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.129e-05/0.1265, allocations: 8 kB / 478.3 MB, free: 1.844 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002158/0.1267, allocations: 219.1 kB / 478.5 MB, free: 1.629 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.1267, allocations: 0 / 478.5 MB, free: 1.629 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004631/0.1272, allocations: 95.98 kB / 478.6 MB, free: 1.535 MB / 350.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 (31): * Single equations (assignments): 30 * 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.001023/0.1282, allocations: 1.134 MB / 479.7 MB, free: 372 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000648/0.1289, allocations: 404.2 kB / 480.1 MB, free: 15.97 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.876e-06/0.1289, allocations: 0 / 480.1 MB, free: 15.97 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002165/0.1291, allocations: 151.8 kB / 480.2 MB, free: 15.82 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005003/0.1296, allocations: 66.23 kB / 480.3 MB, free: 15.76 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004647/0.1343, allocations: 3.987 MB / 484.3 MB, free: 11.49 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004683/0.1348, allocations: 0.8582 MB / 485.1 MB, free: 10.61 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003618/0.1352, allocations: 131.1 kB / 485.3 MB, free: 10.48 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001988/0.1354, allocations: 135.4 kB / 485.4 MB, free: 10.35 MB / 366.1 MB Notification: Performance of SimCode: time 4.41e-07/0.1354, allocations: 0 / 485.4 MB, free: 10.35 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02554/0.1609, allocations: 6.945 MB / 492.4 MB, free: 3.484 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.348/7.509, allocations: 8 kB / 492.4 MB, free: 3.477 MB / 366.1 MB (rm -f PowerSystems_PowerSystems.Examples.Introductory.ReferenceInertial.pipe ; mkfifo PowerSystems_PowerSystems.Examples.Introductory.ReferenceInertial.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.Introductory.ReferenceInertial.pipe >> ../files/PowerSystems_PowerSystems.Examples.Introductory.ReferenceInertial.sim & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.Introductory.ReferenceInertial_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_ReferenceInertial.fmu > PowerSystems_PowerSystems.Examples.Introductory.ReferenceInertial.pipe 2>&1)