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.001121/0.001121, allocations: 110.5 kB / 17.03 MB, free: 5.746 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.001102/0.001102, allocations: 196.1 kB / 17.97 MB, free: 4.98 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.109/1.109, allocations: 205.1 MB / 223.8 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1584/0.1584, allocations: 37.98 MB / 309.2 MB, free: 5.957 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.001289/0.001289, allocations: 63.91 kB / 431.8 MB, free: 15.69 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0787/0.08, allocations: 55.24 MB / 487 MB, free: 8.383 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.ReferenceInertial): time 0.005208/0.08524, allocations: 4.425 MB / 491.5 MB, free: 3.926 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002103/0.08737, allocations: 1.465 MB / 492.9 MB, free: 2.453 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002143/0.0876, allocations: 19.88 kB / 493 MB, free: 2.434 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000967/0.08859, allocations: 366.5 kB / 493.3 MB, free: 2.074 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004619/0.08906, allocations: 222.9 kB / 493.5 MB, free: 1.855 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005711/0.08964, allocations: 243.4 kB / 493.8 MB, free: 1.617 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.000522/0.09018, allocations: 0.5417 MB / 494.3 MB, free: 1.074 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003825/0.09057, allocations: 277 kB / 494.6 MB, free: 0.8086 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003035/0.09088, allocations: 247 kB / 494.8 MB, free: 0.5664 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004015/0.09129, allocations: 295.1 kB / 495.1 MB, free: 284 kB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 5.025e-05/0.09135, allocations: 28 kB / 495.1 MB, free: 256 kB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002446/0.0916, allocations: 135.8 kB / 495.3 MB, free: 120 kB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002083/0.09182, allocations: 223.4 kB / 495.5 MB, free: 15.9 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002406/0.09207, allocations: 238.9 kB / 495.7 MB, free: 15.66 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004936/0.09257, allocations: 0.5646 MB / 496.3 MB, free: 15.1 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.176e-06/0.09259, allocations: 0 / 496.3 MB, free: 15.1 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.0926, allocations: 0 / 496.3 MB, free: 15.1 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.24e-05/0.09261, allocations: 0 / 496.3 MB, free: 15.1 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.001085/0.0937, allocations: 0.7388 MB / 497 MB, free: 14.3 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.24e-05/0.09374, allocations: 11.89 kB / 497 MB, free: 14.29 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005058/0.09425, allocations: 84.33 kB / 497.1 MB, free: 14.21 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005495/0.09481, allocations: 411.2 kB / 497.5 MB, free: 13.77 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.722e-05/0.09485, allocations: 33.31 kB / 497.6 MB, free: 13.74 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001162/0.09497, allocations: 56.11 kB / 497.6 MB, free: 13.69 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007641/0.09575, allocations: 0.6248 MB / 498.2 MB, free: 13 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.342e-05/0.09578, allocations: 7.938 kB / 498.2 MB, free: 12.99 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.13e-05/0.09583, allocations: 16 kB / 498.3 MB, free: 12.98 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001068/0.09594, allocations: 28.98 kB / 498.3 MB, free: 12.95 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006588/0.0966, allocations: 479.5 kB / 498.7 MB, free: 12.48 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002695/0.09931, allocations: 2.884 MB / 0.4899 GB, free: 9.445 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003294/0.09965, allocations: 228.9 kB / 0.4901 GB, free: 9.203 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001914/0.09985, allocations: 149.7 kB / 0.4902 GB, free: 9.051 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.755e-05/0.09989, allocations: 4 kB / 0.4902 GB, free: 9.047 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.421e-05/0.09992, allocations: 38.56 kB / 0.4903 GB, free: 9 MB / 382.1 MB Notification: Performance of pre-optimization done (n=27): time 1.413e-06/0.09992, allocations: 3.938 kB / 0.4903 GB, free: 8.996 MB / 382.1 MB Notification: Performance of matching and sorting (n=28): time 0.001339/0.1013, allocations: 0.9659 MB / 0.4912 GB, free: 7.977 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.083e-05/0.1013, allocations: 81.11 kB / 0.4913 GB, free: 7.879 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002712/0.1016, allocations: 324.3 kB / 0.4916 GB, free: 7.551 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.274e-05/0.1016, allocations: 33.7 kB / 0.4916 GB, free: 7.512 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000137/0.1018, allocations: 271.3 kB / 0.4919 GB, free: 7.238 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.529e-05/0.1018, allocations: 98.64 kB / 0.492 GB, free: 7.141 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001072/0.102, allocations: 90.16 kB / 0.4921 GB, free: 7.043 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001027/0.1021, allocations: 354.8 kB / 0.4924 GB, free: 6.688 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002023/0.1023, allocations: 149 kB / 0.4926 GB, free: 6.543 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002936/0.1026, allocations: 343.2 kB / 0.4929 GB, free: 6.117 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005413/0.1031, allocations: 0.5206 MB / 0.4934 GB, free: 5.504 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.797e-06/0.1031, allocations: 4 kB / 0.4934 GB, free: 5.5 MB / 382.1 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.0006828/0.1038, allocations: 0.5357 MB / 0.4939 GB, free: 4.957 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.427e-05/0.1038, allocations: 8.906 kB / 0.4939 GB, free: 4.949 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.656e-06/0.1039, allocations: 8 kB / 0.4939 GB, free: 4.941 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.658e-05/0.1039, allocations: 12 kB / 0.494 GB, free: 4.93 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003751/0.1043, allocations: 115.8 kB / 0.4941 GB, free: 4.816 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.042e-05/0.1043, allocations: 23.91 kB / 0.4941 GB, free: 4.793 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002152/0.1045, allocations: 23.98 kB / 0.4941 GB, free: 4.77 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.063e-05/0.1045, allocations: 24 kB / 0.4941 GB, free: 4.746 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.0001868/0.1047, allocations: 217.5 kB / 0.4943 GB, free: 4.523 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.502e-05/0.1048, allocations: 31.62 kB / 0.4944 GB, free: 4.492 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005297/0.1053, allocations: 361.7 kB / 0.4947 GB, free: 4.129 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.818e-06/0.1053, allocations: 4 kB / 0.4947 GB, free: 4.125 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.968e-06/0.1054, allocations: 0 / 0.4947 GB, free: 4.125 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.182e-06/0.1054, allocations: 7.938 kB / 0.4947 GB, free: 4.117 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001151/0.1065, allocations: 0.8797 MB / 0.4956 GB, free: 3.172 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.974e-06/0.1065, allocations: 0 / 0.4956 GB, free: 3.172 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002972/0.1068, allocations: 64 kB / 0.4956 GB, free: 3.109 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.866e-06/0.1068, allocations: 4 kB / 0.4956 GB, free: 3.105 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.278e-05/0.1069, allocations: 11.98 kB / 0.4957 GB, free: 3.094 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.18e-06/0.1069, allocations: 7.938 kB / 0.4957 GB, free: 3.086 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.253e-06/0.1069, allocations: 0 / 0.4957 GB, free: 3.086 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006587/0.1076, allocations: 0.5895 MB / 0.4962 GB, free: 2.469 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.028e-05/0.1076, allocations: 108.7 kB / 0.4963 GB, free: 2.344 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.439e-05/0.1077, allocations: 8 kB / 0.4964 GB, free: 2.336 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000174/0.1079, allocations: 15.97 kB / 0.4964 GB, free: 2.32 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.142e-05/0.1079, allocations: 15.97 kB / 0.4964 GB, free: 2.305 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.753e-05/0.1079, allocations: 12 kB / 0.4964 GB, free: 2.293 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000181/0.1081, allocations: 223 kB / 0.4966 GB, free: 2.078 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.273e-06/0.1081, allocations: 4 kB / 0.4966 GB, free: 2.074 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003907/0.1085, allocations: 95.94 kB / 0.4967 GB, free: 1.98 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 8.549e-05/0.1086, allocations: 103.2 kB / 0.4968 GB, free: 1.871 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0004803/0.1091, allocations: 373.2 kB / 0.4972 GB, free: 1.508 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.833e-06/0.1091, allocations: 0 / 0.4972 GB, free: 1.508 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001884/0.1093, allocations: 143.8 kB / 0.4973 GB, free: 1.367 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004489/0.1098, allocations: 72.91 kB / 0.4974 GB, free: 1.297 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001234/0.111, allocations: 0.99 MB / 0.4983 GB, free: 276 kB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003719/0.1114, allocations: 0.8619 MB / 0.4992 GB, free: 15.38 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002754/0.1117, allocations: 127.1 kB / 0.4993 GB, free: 15.26 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.866e-05/0.1118, allocations: 39.42 kB / 0.4993 GB, free: 15.22 MB / 398.1 MB Notification: Performance of SimCode: time 3.11e-07/0.1118, allocations: 0 / 0.4993 GB, free: 15.22 MB / 398.1 MB Notification: Performance of Templates: time 0.006014/0.1178, allocations: 3.311 MB / 0.5026 GB, free: 11.9 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)