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.001296/0.001296, allocations: 109.9 kB / 17.74 MB, free: 5.359 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.00113/0.00113, allocations: 193.5 kB / 18.67 MB, free: 4.441 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.397/1.397, allocations: 205.1 MB / 224.5 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1721/0.1721, allocations: 37.98 MB / 309.9 MB, free: 5.961 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.001318/0.001318, allocations: 67.89 kB / 432.5 MB, free: 15.66 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08897/0.0903, allocations: 55.25 MB / 487.8 MB, free: 8.355 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.ReferenceInertial): time 0.005497/0.09582, allocations: 4.425 MB / 492.2 MB, free: 3.898 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002253/0.0981, allocations: 1.465 MB / 493.7 MB, free: 2.426 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002623/0.09838, allocations: 11.94 kB / 493.7 MB, free: 2.414 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00108/0.09948, allocations: 374.5 kB / 494 MB, free: 2.047 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006111/0.1001, allocations: 230.8 kB / 494.3 MB, free: 1.82 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000646/0.1008, allocations: 239.4 kB / 494.5 MB, free: 1.586 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006566/0.1014, allocations: 0.5339 MB / 495 MB, free: 1.051 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004338/0.1019, allocations: 281 kB / 495.3 MB, free: 0.7812 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003657/0.1022, allocations: 247.1 kB / 495.5 MB, free: 0.5391 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004008/0.1027, allocations: 299 kB / 495.8 MB, free: 252 kB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 5.425e-05/0.1027, allocations: 32 kB / 495.9 MB, free: 220 kB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002733/0.103, allocations: 135.8 kB / 496 MB, free: 84 kB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001978/0.1032, allocations: 231.4 kB / 496.2 MB, free: 15.86 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002056/0.1034, allocations: 230.9 kB / 496.4 MB, free: 15.63 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005354/0.104, allocations: 0.5685 MB / 497 MB, free: 15.06 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.889e-06/0.104, allocations: 3.938 kB / 497 MB, free: 15.05 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.104, allocations: 0 / 497 MB, free: 15.05 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.746e-06/0.104, allocations: 0 / 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.001143/0.1051, allocations: 0.731 MB / 497.8 MB, free: 14.27 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.471e-05/0.1052, allocations: 15.89 kB / 497.8 MB, free: 14.25 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004907/0.1057, allocations: 92.3 kB / 497.9 MB, free: 14.16 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005411/0.1062, allocations: 399.3 kB / 498.2 MB, free: 13.74 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.614e-05/0.1063, allocations: 33.38 kB / 498.3 MB, free: 13.71 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001044/0.1064, allocations: 52.11 kB / 498.3 MB, free: 13.66 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007584/0.1072, allocations: 0.6248 MB / 499 MB, free: 12.97 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.032e-05/0.1072, allocations: 8 kB / 499 MB, free: 12.96 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.822e-05/0.1072, allocations: 16 kB / 499 MB, free: 12.95 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.91e-05/0.1073, allocations: 28.98 kB / 499 MB, free: 12.92 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006689/0.108, allocations: 483.4 kB / 499.5 MB, free: 12.45 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002852/0.1109, allocations: 2.88 MB / 0.4906 GB, free: 9.414 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003427/0.1112, allocations: 232.9 kB / 0.4908 GB, free: 9.168 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002445/0.1115, allocations: 145.7 kB / 0.4909 GB, free: 9.02 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.857e-05/0.1115, allocations: 4 kB / 0.4909 GB, free: 9.016 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.819e-05/0.1115, allocations: 42.56 kB / 0.491 GB, free: 8.965 MB / 382.1 MB Notification: Performance of pre-optimization done (n=27): time 2.886e-06/0.1116, allocations: 3.984 kB / 0.491 GB, free: 8.961 MB / 382.1 MB Notification: Performance of matching and sorting (n=28): time 0.001454/0.113, allocations: 0.9619 MB / 0.4919 GB, free: 7.945 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.266e-05/0.1131, allocations: 81.11 kB / 0.492 GB, free: 7.848 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002748/0.1133, allocations: 336.4 kB / 0.4923 GB, free: 7.508 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.304e-05/0.1134, allocations: 29.7 kB / 0.4924 GB, free: 7.473 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001489/0.1135, allocations: 275.3 kB / 0.4926 GB, free: 7.195 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.71e-05/0.1136, allocations: 98.62 kB / 0.4927 GB, free: 7.098 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001233/0.1137, allocations: 94.16 kB / 0.4928 GB, free: 6.996 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001547/0.1139, allocations: 346.8 kB / 0.4931 GB, free: 6.648 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001975/0.1141, allocations: 145 kB / 0.4933 GB, free: 6.508 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003474/0.1145, allocations: 347.2 kB / 0.4936 GB, free: 6.078 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005947/0.1151, allocations: 0.5167 MB / 0.4941 GB, free: 5.469 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.058e-06/0.1151, allocations: 4 kB / 0.4941 GB, free: 5.465 MB / 382.1 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.0006836/0.1158, allocations: 0.5323 MB / 0.4946 GB, free: 4.926 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.047e-05/0.1158, allocations: 11.91 kB / 0.4946 GB, free: 4.914 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.058e-05/0.1158, allocations: 11.94 kB / 0.4947 GB, free: 4.902 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.731e-05/0.1158, allocations: 8 kB / 0.4947 GB, free: 4.895 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003744/0.1162, allocations: 119.8 kB / 0.4948 GB, free: 4.777 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.368e-05/0.1162, allocations: 11.98 kB / 0.4948 GB, free: 4.766 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002143/0.1164, allocations: 28.39 kB / 0.4948 GB, free: 4.738 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.364e-05/0.1165, allocations: 28 kB / 0.4948 GB, free: 4.711 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.0001879/0.1167, allocations: 229.3 kB / 0.4951 GB, free: 4.477 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.231e-05/0.1168, allocations: 31.62 kB / 0.4951 GB, free: 4.445 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005334/0.1173, allocations: 353.7 kB / 0.4954 GB, free: 4.09 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.058e-06/0.1173, allocations: 4 kB / 0.4954 GB, free: 4.086 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.62e-06/0.1173, allocations: 4 kB / 0.4954 GB, free: 4.082 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.99e-06/0.1173, allocations: 0 / 0.4954 GB, free: 4.082 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00119/0.1185, allocations: 0.8837 MB / 0.4963 GB, free: 3.133 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-06/0.1185, allocations: 0 / 0.4963 GB, free: 3.133 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003025/0.1188, allocations: 67.91 kB / 0.4964 GB, free: 3.066 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.825e-06/0.1189, allocations: 0 / 0.4964 GB, free: 3.066 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.219e-05/0.1189, allocations: 11.98 kB / 0.4964 GB, free: 3.055 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.99e-06/0.1189, allocations: 7.938 kB / 0.4964 GB, free: 3.047 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.213e-06/0.1189, allocations: 4.094 kB / 0.4964 GB, free: 3.043 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006935/0.1196, allocations: 0.5856 MB / 0.497 GB, free: 2.43 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.703e-05/0.1197, allocations: 104.8 kB / 0.4971 GB, free: 2.309 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.176e-05/0.1198, allocations: 8 kB / 0.4971 GB, free: 2.301 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001697/0.1199, allocations: 19.92 kB / 0.4971 GB, free: 2.281 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.236e-05/0.12, allocations: 19.98 kB / 0.4971 GB, free: 2.262 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.074e-05/0.12, allocations: 11.98 kB / 0.4971 GB, free: 2.25 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001799/0.1202, allocations: 215.1 kB / 0.4973 GB, free: 2.043 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1202, allocations: 0 / 0.4973 GB, free: 2.043 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003908/0.1206, allocations: 96 kB / 0.4974 GB, free: 1.949 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.0001012/0.1207, allocations: 107.2 kB / 0.4975 GB, free: 1.836 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0004935/0.1212, allocations: 369.1 kB / 0.4979 GB, free: 1.477 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.1212, allocations: 3.938 kB / 0.4979 GB, free: 1.473 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001837/0.1214, allocations: 140.2 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.000461/0.1219, allocations: 81.05 kB / 0.4981 GB, free: 1.258 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001457/0.1233, allocations: 1.034 MB / 0.4991 GB, free: 184 kB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004121/0.1238, allocations: 0.8658 MB / 0.4999 GB, free: 15.29 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000104/0.1239, allocations: 35.44 kB / 0.5 GB, free: 15.25 MB / 398.1 MB Notification: Performance of SimCode: time 1.91e-07/0.1239, allocations: 0 / 0.5 GB, free: 15.25 MB / 398.1 MB Notification: Performance of Templates: time 0.007051/0.1309, allocations: 5.019 MB / 0.5049 GB, free: 10.22 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)