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.001062/0.001062, allocations: 101.1 kB / 16.62 MB, free: 6.812 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.000983/0.000983, allocations: 193.9 kB / 17.55 MB, free: 5.953 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.246/1.246, allocations: 222.9 MB / 241.2 MB, free: 15.46 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1689/0.1689, allocations: 38.03 MB / 329.4 MB, free: 9.031 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001205/0.001205, allocations: 67.39 kB / 398.4 MB, free: 34.35 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08106/0.08228, allocations: 58.06 MB / 456.4 MB, free: 8.371 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.ReferenceInertial): time 0.005851/0.08816, allocations: 5.066 MB / 461.5 MB, free: 3.277 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002504/0.09069, allocations: 1.613 MB / 463.1 MB, free: 1.66 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003439/0.09106, allocations: 27.81 kB / 463.1 MB, free: 1.633 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000963/0.09206, allocations: 350 kB / 463.5 MB, free: 1.293 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005185/0.09258, allocations: 207.1 kB / 463.7 MB, free: 1.09 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006661/0.09326, allocations: 227.6 kB / 463.9 MB, free: 0.8672 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006422/0.09392, allocations: 0.5339 MB / 464.4 MB, free: 336 kB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005037/0.09443, allocations: 305 kB / 464.7 MB, free: 36 kB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004099/0.09485, allocations: 243.1 kB / 465 MB, free: 15.8 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004903/0.09535, allocations: 311 kB / 465.3 MB, free: 15.49 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.146e-05/0.09544, allocations: 32 kB / 465.3 MB, free: 15.46 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003028/0.09575, allocations: 143.8 kB / 465.5 MB, free: 15.32 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000211/0.09597, allocations: 223.4 kB / 465.7 MB, free: 15.1 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002318/0.09621, allocations: 238.9 kB / 465.9 MB, free: 14.87 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005562/0.09677, allocations: 0.5529 MB / 466.5 MB, free: 14.31 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.976e-06/0.09679, allocations: 7.938 kB / 466.5 MB, free: 14.3 MB / 350.1 MB Notification: Performance of FrontEnd: time 7.82e-07/0.09679, allocations: 0 / 466.5 MB, free: 14.3 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.113e-05/0.09682, allocations: 0 / 466.5 MB, free: 14.3 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.001268/0.09809, allocations: 0.7348 MB / 467.2 MB, free: 13.52 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.641e-05/0.09816, allocations: 15.89 kB / 467.2 MB, free: 13.5 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000145/0.09831, allocations: 82.72 kB / 467.3 MB, free: 13.41 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000637/0.09896, allocations: 84.31 kB / 467.4 MB, free: 13.33 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006829/0.09965, allocations: 395.2 kB / 467.8 MB, free: 12.91 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.206e-05/0.0997, allocations: 33.38 kB / 467.8 MB, free: 12.88 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001162/0.09982, allocations: 47.92 kB / 467.8 MB, free: 12.83 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008153/0.1006, allocations: 0.6248 MB / 468.5 MB, free: 12.13 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.907e-05/0.1007, allocations: 3.906 kB / 468.5 MB, free: 12.13 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.291e-05/0.1007, allocations: 23.98 kB / 468.5 MB, free: 12.11 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001077/0.1008, allocations: 28.98 kB / 468.5 MB, free: 12.08 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000754/0.1016, allocations: 483.5 kB / 469 MB, free: 11.61 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00286/0.1045, allocations: 2.887 MB / 471.9 MB, free: 8.57 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003393/0.1048, allocations: 233 kB / 472.1 MB, free: 8.324 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001941/0.105, allocations: 142.6 kB / 472.3 MB, free: 8.18 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.329e-05/0.1051, allocations: 8 kB / 472.3 MB, free: 8.172 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.618e-05/0.1051, allocations: 42.56 kB / 472.3 MB, free: 8.121 MB / 350.1 MB Notification: Performance of pre-optimization done (n=27): time 1.713e-06/0.1051, allocations: 0 / 472.3 MB, free: 8.121 MB / 350.1 MB Notification: Performance of matching and sorting (n=28): time 0.001494/0.1066, allocations: 0.9622 MB / 473.3 MB, free: 7.105 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.134e-05/0.1067, allocations: 81.11 kB / 473.3 MB, free: 7.008 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002929/0.107, allocations: 324.4 kB / 473.7 MB, free: 6.684 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.702e-05/0.107, allocations: 25.7 kB / 473.7 MB, free: 6.652 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001567/0.1072, allocations: 291.3 kB / 474 MB, free: 6.359 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.487e-05/0.1073, allocations: 98.55 kB / 474.1 MB, free: 6.262 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001206/0.1074, allocations: 94.17 kB / 474.2 MB, free: 6.16 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001082/0.1075, allocations: 346.7 kB / 474.5 MB, free: 5.812 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002143/0.1077, allocations: 145 kB / 474.6 MB, free: 5.672 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003115/0.1081, allocations: 347.2 kB / 475 MB, free: 5.242 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000555/0.1086, allocations: 0.5248 MB / 475.5 MB, free: 4.625 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.866e-06/0.1086, allocations: 0 / 475.5 MB, free: 4.625 MB / 350.1 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.0007525/0.1094, allocations: 0.5285 MB / 476 MB, free: 4.09 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.704e-05/0.1094, allocations: 4 kB / 476 MB, free: 4.086 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.002e-05/0.1094, allocations: 11.98 kB / 476 MB, free: 4.074 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.882e-05/0.1095, allocations: 12 kB / 476.1 MB, free: 4.062 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003929/0.1099, allocations: 115.8 kB / 476.2 MB, free: 3.949 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.525e-05/0.1099, allocations: 15.88 kB / 476.2 MB, free: 3.934 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002428/0.1101, allocations: 31.97 kB / 476.2 MB, free: 3.902 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.323e-05/0.1102, allocations: 20 kB / 476.2 MB, free: 3.883 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.0002045/0.1104, allocations: 225.7 kB / 476.5 MB, free: 3.652 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.779e-05/0.1104, allocations: 27.62 kB / 476.5 MB, free: 3.625 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005539/0.111, allocations: 369.4 kB / 476.8 MB, free: 3.25 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.769e-06/0.111, allocations: 4 kB / 476.9 MB, free: 3.246 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.749e-06/0.111, allocations: 0 / 476.9 MB, free: 3.246 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.699e-06/0.111, allocations: 4 kB / 476.9 MB, free: 3.242 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001303/0.1123, allocations: 0.8835 MB / 477.7 MB, free: 2.293 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.398e-06/0.1124, allocations: 4 kB / 477.7 MB, free: 2.289 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003149/0.1127, allocations: 59.97 kB / 477.8 MB, free: 2.23 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.56e-06/0.1127, allocations: 7.938 kB / 477.8 MB, free: 2.223 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.802e-05/0.1127, allocations: 15.92 kB / 477.8 MB, free: 2.207 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.795e-06/0.1127, allocations: 0 / 477.8 MB, free: 2.207 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.815e-06/0.1127, allocations: 4 kB / 477.8 MB, free: 2.203 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006924/0.1134, allocations: 0.5771 MB / 478.4 MB, free: 1.598 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.393e-05/0.1135, allocations: 108.8 kB / 478.5 MB, free: 1.473 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.227e-05/0.1136, allocations: 15.88 kB / 478.5 MB, free: 1.457 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001885/0.1138, allocations: 15.98 kB / 478.5 MB, free: 1.441 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.077e-05/0.1138, allocations: 19.92 kB / 478.6 MB, free: 1.422 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.221e-05/0.1139, allocations: 12.08 kB / 478.6 MB, free: 1.41 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001889/0.1141, allocations: 215.1 kB / 478.8 MB, free: 1.199 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1141, allocations: 4 kB / 478.8 MB, free: 1.195 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004507/0.1145, allocations: 92 kB / 478.9 MB, free: 1.105 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.0009112/0.1154, allocations: 1.142 MB / 480 MB, free: 15.92 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005873/0.116, allocations: 411.9 kB / 480.4 MB, free: 15.52 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.116, allocations: 0 / 480.4 MB, free: 15.52 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001962/0.1162, allocations: 147.8 kB / 480.6 MB, free: 15.38 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005056/0.1168, allocations: 66.55 kB / 480.6 MB, free: 15.32 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004382/0.1212, allocations: 4.126 MB / 484.8 MB, free: 10.91 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003824/0.1216, allocations: 0.8582 MB / 485.6 MB, free: 10.02 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000332/0.1219, allocations: 135.1 kB / 485.7 MB, free: 9.895 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001901/0.1221, allocations: 139.4 kB / 485.9 MB, free: 9.758 MB / 366.1 MB Notification: Performance of SimCode: time 1.663e-06/0.1221, allocations: 0 / 485.9 MB, free: 9.758 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05749/0.1796, allocations: 6.871 MB / 492.8 MB, free: 3.012 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002164/0.1798, allocations: 207.3 kB / 493 MB, free: 2.75 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.821/2.001, allocations: 0 / 493 MB, free: 2.75 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_Introductory_ReferenceInertial_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_Introductory_ReferenceInertial.fmu > PowerSystems_PowerSystems.Examples.Introductory.ReferenceInertial.pipe 2>&1)