Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.Introductory.ReferenceSynchron.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.ReferenceSynchron,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.Introductory.ReferenceSynchron") translateModel(PowerSystems.Examples.Introductory.ReferenceSynchron,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.Introductory.ReferenceSynchron") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000728/0.000728, allocations: 87.41 kB / 16.31 MB, free: 6.449 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.0007932/0.0007932, allocations: 180.4 kB / 17.21 MB, free: 6.32 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.29/1.29, allocations: 205.4 MB / 223.4 MB, free: 5.516 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.2864/0.2864, allocations: 38.06 MB / 309.7 MB, free: 8.977 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.0004897/0.0004898, allocations: 12 kB / 376.5 MB, free: 15.27 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09456/0.09506, allocations: 56.33 MB / 432.8 MB, free: 6.832 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.ReferenceSynchron): time 0.004664/0.09976, allocations: 4.451 MB / 437.3 MB, free: 2.359 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.00243/0.1022, allocations: 1.579 MB / 438.9 MB, free: 0.7734 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000334/0.1026, allocations: 23.81 kB / 438.9 MB, free: 0.75 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000282/0.1029, allocations: 71.45 kB / 439 MB, free: 0.6797 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008176/0.1037, allocations: 278.7 kB / 439.2 MB, free: 416 kB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006856/0.1044, allocations: 231.6 kB / 439.5 MB, free: 184 kB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007158/0.1052, allocations: 0.6742 MB / 440.1 MB, free: 15.5 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008005/0.106, allocations: 0.5153 MB / 440.7 MB, free: 14.95 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000364/0.1063, allocations: 207 kB / 440.9 MB, free: 14.75 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005138/0.1069, allocations: 355 kB / 441.2 MB, free: 14.4 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.507e-05/0.1069, allocations: 20 kB / 441.2 MB, free: 14.38 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003883/0.1073, allocations: 179.7 kB / 441.4 MB, free: 14.21 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002187/0.1076, allocations: 219.5 kB / 441.6 MB, free: 13.99 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000119/0.1077, allocations: 109.5 kB / 441.7 MB, free: 13.88 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004722/0.1082, allocations: 498.8 kB / 442.2 MB, free: 13.39 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.33e-06/0.1082, allocations: 4 kB / 442.2 MB, free: 13.39 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.1082, allocations: 3.938 kB / 442.2 MB, free: 13.38 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.262e-05/0.1082, allocations: 0 / 442.2 MB, free: 13.38 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: 118 * Number of variables: 118 Notification: Performance of Generate backend data structure: time 0.001135/0.1094, allocations: 0.6919 MB / 442.9 MB, free: 12.64 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.206e-05/0.1094, allocations: 8.031 kB / 442.9 MB, free: 12.63 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005313/0.11, allocations: 91.27 kB / 443 MB, free: 12.54 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005619/0.1105, allocations: 394.1 kB / 443.4 MB, free: 12.12 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.982e-05/0.1106, allocations: 29 kB / 443.4 MB, free: 12.09 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001078/0.1107, allocations: 43.94 kB / 443.5 MB, free: 12.05 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009024/0.1116, allocations: 0.6843 MB / 444.1 MB, free: 11.32 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.688e-05/0.1116, allocations: 3.938 kB / 444.1 MB, free: 11.32 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.381e-05/0.1117, allocations: 19.98 kB / 444.2 MB, free: 11.3 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001491/0.1118, allocations: 52.95 kB / 444.2 MB, free: 11.25 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009391/0.1128, allocations: 0.6713 MB / 444.9 MB, free: 10.58 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003104/0.1159, allocations: 2.528 MB / 447.4 MB, free: 7.922 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005053/0.1164, allocations: 325.3 kB / 447.7 MB, free: 7.586 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002841/0.1167, allocations: 225.7 kB / 448 MB, free: 7.359 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.452e-05/0.1168, allocations: 8 kB / 448 MB, free: 7.352 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.965e-05/0.1168, allocations: 46.5 kB / 448 MB, free: 7.297 MB / 382.1 MB Notification: Performance of pre-optimization done (n=42): time 1.863e-06/0.1168, allocations: 0 / 448 MB, free: 7.297 MB / 382.1 MB Notification: Performance of matching and sorting (n=43): time 0.001875/0.1187, allocations: 1.352 MB / 449.4 MB, free: 5.887 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.29e-05/0.1187, allocations: 81.11 kB / 449.4 MB, free: 5.789 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002711/0.119, allocations: 312.5 kB / 449.7 MB, free: 5.477 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.804e-05/0.1191, allocations: 29.7 kB / 449.8 MB, free: 5.441 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001369/0.1192, allocations: 255.5 kB / 450 MB, free: 5.184 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.632e-05/0.1193, allocations: 145.8 kB / 450.2 MB, free: 5.039 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.215e-05/0.1193, allocations: 12 kB / 450.2 MB, free: 5.027 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000114/0.1194, allocations: 346.8 kB / 450.5 MB, free: 4.68 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002657/0.1197, allocations: 201 kB / 450.7 MB, free: 4.484 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003439/0.1201, allocations: 361.2 kB / 451.1 MB, free: 4.062 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00036/0.1204, allocations: 265.3 kB / 451.3 MB, free: 3.805 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.288e-06/0.1205, allocations: 4 kB / 451.3 MB, free: 3.801 MB / 382.1 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.0008415/0.1213, allocations: 0.6223 MB / 451.9 MB, free: 3.172 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.716e-05/0.1213, allocations: 11.91 kB / 452 MB, free: 3.16 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.948e-06/0.1213, allocations: 8 kB / 452 MB, free: 3.152 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.663e-05/0.1214, allocations: 8.688 kB / 452 MB, free: 3.145 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003962/0.1218, allocations: 119.8 kB / 452.1 MB, free: 3.027 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.404e-05/0.1218, allocations: 11.95 kB / 452.1 MB, free: 3.016 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002145/0.122, allocations: 31.91 kB / 452.1 MB, free: 2.984 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.006e-05/0.1221, allocations: 23.94 kB / 452.2 MB, free: 2.961 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * 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 (57): * Single equations (assignments): 55 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002028/0.1223, allocations: 209.7 kB / 452.4 MB, free: 2.746 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.099e-05/0.1224, allocations: 35.61 kB / 452.4 MB, free: 2.711 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007036/0.1231, allocations: 0.4934 MB / 452.9 MB, free: 2.211 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.895e-05/0.1231, allocations: 8 kB / 452.9 MB, free: 2.203 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.552e-06/0.1231, allocations: 4 kB / 452.9 MB, free: 2.199 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.941e-06/0.1231, allocations: 3.953 kB / 452.9 MB, free: 2.195 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00152/0.1247, allocations: 1.097 MB / 454 MB, free: 1.035 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.489e-06/0.1247, allocations: 4.094 kB / 454 MB, free: 1.031 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003283/0.125, allocations: 67.95 kB / 454.1 MB, free: 0.9648 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.254e-06/0.125, allocations: 4 kB / 454.1 MB, free: 0.9609 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.704e-05/0.1251, allocations: 15.89 kB / 454.1 MB, free: 0.9453 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.775e-06/0.1251, allocations: 0 / 454.1 MB, free: 0.9453 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.374e-06/0.1251, allocations: 4 kB / 454.1 MB, free: 0.9414 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009421/0.126, allocations: 0.8204 MB / 454.9 MB, free: 96 kB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.17/0.296, allocations: 106.4 kB / 455 MB, free: 51.45 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001151/0.2962, allocations: 11.86 kB / 455 MB, free: 51.45 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000222/0.2964, allocations: 16.44 kB / 455.1 MB, free: 51.45 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.133e-05/0.2965, allocations: 20.53 kB / 455.1 MB, free: 51.45 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.483e-05/0.2965, allocations: 14.98 kB / 455.1 MB, free: 51.45 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002151/0.2967, allocations: 215.4 kB / 455.3 MB, free: 51.36 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2967, allocations: 0 / 455.3 MB, free: 51.36 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005277/0.2973, allocations: 113.1 kB / 455.4 MB, free: 51.36 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 (33): * Single equations (assignments): 30 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001679/0.2974, allocations: 122.6 kB / 455.5 MB, free: 51.28 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0006369/0.2981, allocations: 488.1 kB / 456 MB, free: 51.27 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.345e-06/0.2981, allocations: 0 / 456 MB, free: 51.27 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002439/0.2984, allocations: 224.1 kB / 456.2 MB, free: 51.27 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004615/0.2988, allocations: 66.86 kB / 456.3 MB, free: 51.27 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001451/0.3003, allocations: 1.353 MB / 457.6 MB, free: 50.69 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002484/0.3006, allocations: 0.8699 MB / 458.5 MB, free: 49.99 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003008/0.3009, allocations: 128.5 kB / 458.6 MB, free: 49.98 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.246e-05/0.3009, allocations: 32.44 kB / 458.7 MB, free: 49.98 MB / 382.1 MB Notification: Performance of SimCode: time 5.51e-07/0.301, allocations: 0 / 458.7 MB, free: 49.98 MB / 382.1 MB Notification: Performance of Templates: time 0.006197/0.3072, allocations: 3.488 MB / 462.2 MB, free: 49.74 MB / 382.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.Introductory.ReferenceSynchron.makefile Environment - environmentSimulation: (rm -f PowerSystems_PowerSystems.Examples.Introductory.ReferenceSynchron.pipe ; mkfifo PowerSystems_PowerSystems.Examples.Introductory.ReferenceSynchron.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.Introductory.ReferenceSynchron.pipe >> ../files/PowerSystems_PowerSystems.Examples.Introductory.ReferenceSynchron.sim & ./PowerSystems_PowerSystems.Examples.Introductory.ReferenceSynchron -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.Introductory.ReferenceSynchron.pipe 2>&1) Environment - environmentSimulation: