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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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: translateModel(PowerSystems.Examples.Introductory.ReferenceInertial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.Introductory.ReferenceInertial") translateModel(PowerSystems.Examples.Introductory.ReferenceInertial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.Introductory.ReferenceInertial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00175/0.00175, allocations: 112.2 kB / 17.74 MB, free: 5.355 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.002006/0.002006, allocations: 187.1 kB / 18.67 MB, free: 4.434 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.47/1.47, allocations: 205.1 MB / 224.5 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1736/0.1736, allocations: 37.98 MB / 309.9 MB, free: 5.969 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001484/0.001484, allocations: 67.91 kB / 432.5 MB, free: 15.66 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.11/0.1115, allocations: 55.24 MB / 487.8 MB, free: 8.363 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.ReferenceInertial): time 0.006533/0.1181, allocations: 4.429 MB / 492.2 MB, free: 3.902 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002791/0.121, allocations: 1.465 MB / 493.7 MB, free: 2.43 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003863/0.1214, allocations: 11.94 kB / 493.7 MB, free: 2.418 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001242/0.1226, allocations: 378.4 kB / 494 MB, free: 2.047 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006795/0.1233, allocations: 222.9 kB / 494.3 MB, free: 1.828 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007889/0.1241, allocations: 243.4 kB / 494.5 MB, free: 1.59 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007436/0.1249, allocations: 0.5378 MB / 495 MB, free: 1.051 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004821/0.1254, allocations: 285 kB / 495.3 MB, free: 0.7773 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004625/0.1258, allocations: 251 kB / 495.5 MB, free: 0.5312 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005414/0.1264, allocations: 287.1 kB / 495.8 MB, free: 256 kB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 9.907e-05/0.1265, allocations: 35.94 kB / 495.9 MB, free: 220 kB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003527/0.1269, allocations: 143.8 kB / 496 MB, free: 76 kB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002831/0.1272, allocations: 223.4 kB / 496.2 MB, free: 15.86 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003439/0.1275, allocations: 242.8 kB / 496.5 MB, free: 15.62 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007269/0.1283, allocations: 0.5568 MB / 497 MB, free: 15.06 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.831e-06/0.1283, allocations: 4 kB / 497 MB, free: 15.05 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.156e-06/0.1283, allocations: 0 / 497 MB, free: 15.05 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.062e-05/0.1283, allocations: 3.938 kB / 497 MB, free: 15.05 MB / 382.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.001544/0.1299, allocations: 0.731 MB / 497.8 MB, free: 14.27 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.528e-05/0.1299, allocations: 11.89 kB / 497.8 MB, free: 14.25 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006354/0.1306, allocations: 84.33 kB / 497.9 MB, free: 14.17 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007026/0.1313, allocations: 411.3 kB / 498.3 MB, free: 13.73 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.361e-05/0.1313, allocations: 29.38 kB / 498.3 MB, free: 13.71 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001398/0.1315, allocations: 48.11 kB / 498.3 MB, free: 13.66 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009317/0.1324, allocations: 0.6248 MB / 499 MB, free: 12.97 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.167e-05/0.1324, allocations: 3.938 kB / 499 MB, free: 12.97 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.516e-05/0.1325, allocations: 24 kB / 499 MB, free: 12.95 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001118/0.1326, allocations: 24.98 kB / 499 MB, free: 12.92 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007443/0.1334, allocations: 487.4 kB / 499.5 MB, free: 12.45 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003341/0.1367, allocations: 2.88 MB / 0.4906 GB, free: 9.414 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000387/0.1371, allocations: 240.9 kB / 0.4908 GB, free: 9.16 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002092/0.1373, allocations: 137.7 kB / 0.4909 GB, free: 9.02 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.561e-05/0.1374, allocations: 11.98 kB / 0.491 GB, free: 9.008 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.289e-05/0.1374, allocations: 42.56 kB / 0.491 GB, free: 8.957 MB / 382.1 MB Notification: Performance of pre-optimization done (n=27): time 2.204e-06/0.1374, allocations: 0 / 0.491 GB, free: 8.957 MB / 382.1 MB Notification: Performance of matching and sorting (n=28): time 0.001671/0.1391, allocations: 0.9619 MB / 0.4919 GB, free: 7.941 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.482e-05/0.1392, allocations: 81.11 kB / 0.492 GB, free: 7.844 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003341/0.1395, allocations: 328.3 kB / 0.4923 GB, free: 7.512 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.613e-05/0.1396, allocations: 33.83 kB / 0.4924 GB, free: 7.473 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001888/0.1398, allocations: 271.3 kB / 0.4926 GB, free: 7.199 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.088e-05/0.1398, allocations: 98.64 kB / 0.4927 GB, free: 7.102 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001316/0.14, allocations: 94.16 kB / 0.4928 GB, free: 7 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001506/0.1401, allocations: 346.7 kB / 0.4931 GB, free: 6.652 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002197/0.1404, allocations: 145 kB / 0.4933 GB, free: 6.512 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003467/0.1407, allocations: 347.2 kB / 0.4936 GB, free: 6.082 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006315/0.1414, allocations: 0.5206 MB / 0.4941 GB, free: 5.469 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.982e-06/0.1414, allocations: 4 kB / 0.4941 GB, free: 5.465 MB / 382.1 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.0007858/0.1422, allocations: 0.5285 MB / 0.4946 GB, free: 4.93 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.836e-05/0.1422, allocations: 11.94 kB / 0.4946 GB, free: 4.918 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.765e-05/0.1422, allocations: 8 kB / 0.4947 GB, free: 4.91 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.462e-05/0.1423, allocations: 12 kB / 0.4947 GB, free: 4.898 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004058/0.1427, allocations: 123.8 kB / 0.4948 GB, free: 4.777 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.975e-05/0.1427, allocations: 11.94 kB / 0.4948 GB, free: 4.766 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002447/0.143, allocations: 27.98 kB / 0.4948 GB, free: 4.738 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.934e-05/0.143, allocations: 24.33 kB / 0.4948 GB, free: 4.715 MB / 382.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.000238/0.1432, allocations: 221.5 kB / 0.4951 GB, free: 4.488 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.227e-05/0.1433, allocations: 35.56 kB / 0.4951 GB, free: 4.453 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005831/0.1439, allocations: 353.7 kB / 0.4954 GB, free: 4.098 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.991e-06/0.1439, allocations: 4 kB / 0.4954 GB, free: 4.094 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.811e-06/0.1439, allocations: 0 / 0.4954 GB, free: 4.094 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.413e-06/0.1439, allocations: 7.984 kB / 0.4954 GB, free: 4.086 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001323/0.1453, allocations: 0.8759 MB / 0.4963 GB, free: 3.145 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.809e-06/0.1453, allocations: 4 kB / 0.4963 GB, free: 3.141 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003209/0.1456, allocations: 67.89 kB / 0.4964 GB, free: 3.074 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.37e-05/0.1456, allocations: 4 kB / 0.4964 GB, free: 3.07 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.782e-05/0.1457, allocations: 8 kB / 0.4964 GB, free: 3.062 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.548e-06/0.1457, allocations: 3.938 kB / 0.4964 GB, free: 3.059 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.116e-06/0.1457, allocations: 4 kB / 0.4964 GB, free: 3.055 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007501/0.1465, allocations: 0.5935 MB / 0.497 GB, free: 2.434 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.253e-05/0.1465, allocations: 104.7 kB / 0.4971 GB, free: 2.312 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.325e-05/0.1466, allocations: 12.03 kB / 0.4971 GB, free: 2.301 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000183/0.1468, allocations: 15.94 kB / 0.4971 GB, free: 2.285 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.568e-05/0.1468, allocations: 19.97 kB / 0.4971 GB, free: 2.266 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.137e-05/0.1469, allocations: 8 kB / 0.4971 GB, free: 2.258 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002348/0.1471, allocations: 219 kB / 0.4973 GB, free: 2.047 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1471, allocations: 0 / 0.4973 GB, free: 2.047 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004699/0.1476, allocations: 96 kB / 0.4974 GB, free: 1.953 MB / 382.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.0001246/0.1477, allocations: 103.2 kB / 0.4975 GB, free: 1.844 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0005774/0.1483, allocations: 371.4 kB / 0.4979 GB, free: 1.48 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.707e-06/0.1483, allocations: 1.812 kB / 0.4979 GB, free: 1.48 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002085/0.1485, allocations: 147.8 kB / 0.498 GB, free: 1.336 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005237/0.1491, allocations: 85.11 kB / 0.4981 GB, free: 1.254 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001675/0.1508, allocations: 1.034 MB / 0.4991 GB, free: 180 kB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004608/0.1512, allocations: 0.8541 MB / 0.4999 GB, free: 15.3 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001168/0.1514, allocations: 47.36 kB / 0.5 GB, free: 15.25 MB / 398.1 MB Notification: Performance of SimCode: time 1.102e-06/0.1514, allocations: 0 / 0.5 GB, free: 15.25 MB / 398.1 MB Notification: Performance of Templates: time 0.008987/0.1604, allocations: 4.953 MB / 0.5048 GB, free: 10.29 MB / 398.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.Introductory.ReferenceInertial.makefile (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 & ./PowerSystems_PowerSystems.Examples.Introductory.ReferenceInertial -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.Introductory.ReferenceInertial.pipe 2>&1)