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.001639/0.001639, allocations: 117.8 kB / 17.7 MB, free: 5.305 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.001834/0.001834, allocations: 192 kB / 18.63 MB, free: 4.375 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.429/1.429, allocations: 205.1 MB / 224.5 MB, free: 12.31 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1772/0.1772, allocations: 37.99 MB / 309.8 MB, free: 5.988 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.001535/0.001535, allocations: 67.91 kB / 376.8 MB, free: 2.945 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2548/0.2563, allocations: 55.25 MB / 432 MB, free: 19.51 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.ReferenceSynchron): time 0.004533/0.2609, allocations: 4.411 MB / 436.4 MB, free: 15.08 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001909/0.2628, allocations: 1.481 MB / 437.9 MB, free: 13.6 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001643/0.263, allocations: 15.88 kB / 437.9 MB, free: 13.58 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008526/0.2639, allocations: 381.1 kB / 438.3 MB, free: 13.21 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004895/0.2644, allocations: 250.8 kB / 438.6 MB, free: 12.96 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005213/0.2649, allocations: 243.4 kB / 438.8 MB, free: 12.73 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004279/0.2654, allocations: 0.5573 MB / 439.3 MB, free: 12.17 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003386/0.2657, allocations: 277.1 kB / 439.6 MB, free: 11.9 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002458/0.266, allocations: 259 kB / 439.9 MB, free: 11.65 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004/0.2664, allocations: 358.9 kB / 440.2 MB, free: 11.3 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.935e-05/0.2664, allocations: 40 kB / 440.3 MB, free: 11.26 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003393/0.2668, allocations: 223.7 kB / 440.5 MB, free: 11.04 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001663/0.267, allocations: 247.3 kB / 440.7 MB, free: 10.8 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002006/0.2672, allocations: 254.8 kB / 441 MB, free: 10.55 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004938/0.2677, allocations: 0.6698 MB / 441.6 MB, free: 9.875 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.098e-06/0.2677, allocations: 0 / 441.6 MB, free: 9.875 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.684e-06/0.2677, allocations: 0 / 441.6 MB, free: 9.875 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.326e-06/0.2677, allocations: 0 / 441.6 MB, free: 9.875 MB / 318.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.00116/0.2689, allocations: 0.7778 MB / 442.4 MB, free: 9.047 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.011e-05/0.2689, allocations: 11.89 kB / 442.4 MB, free: 9.035 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005362/0.2695, allocations: 88.31 kB / 442.5 MB, free: 8.949 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006502/0.2701, allocations: 423.2 kB / 442.9 MB, free: 8.496 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.966e-05/0.2701, allocations: 29.31 kB / 443 MB, free: 8.469 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001212/0.2703, allocations: 60 kB / 443 MB, free: 8.41 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009299/0.2712, allocations: 0.6726 MB / 443.7 MB, free: 7.703 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.334e-05/0.2713, allocations: 4 kB / 443.7 MB, free: 7.699 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.254e-05/0.2713, allocations: 19.98 kB / 443.7 MB, free: 7.68 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001586/0.2715, allocations: 48.97 kB / 443.8 MB, free: 7.629 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007782/0.2723, allocations: 0.6752 MB / 444.4 MB, free: 6.957 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002983/0.2752, allocations: 2.497 MB / 446.9 MB, free: 4.328 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004637/0.2757, allocations: 341.3 kB / 447.3 MB, free: 3.977 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002349/0.276, allocations: 225.7 kB / 447.5 MB, free: 3.75 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.947e-05/0.276, allocations: 8 kB / 447.5 MB, free: 3.742 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.476e-05/0.2761, allocations: 46.47 kB / 447.5 MB, free: 3.688 MB / 318.1 MB Notification: Performance of pre-optimization done (n=42): time 2.424e-06/0.2761, allocations: 3.938 kB / 447.5 MB, free: 3.684 MB / 318.1 MB Notification: Performance of matching and sorting (n=43): time 0.001861/0.2779, allocations: 1.353 MB / 448.9 MB, free: 2.273 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.208e-05/0.278, allocations: 81.11 kB / 449 MB, free: 2.176 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002673/0.2783, allocations: 308.5 kB / 449.3 MB, free: 1.859 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.468e-05/0.2783, allocations: 29.7 kB / 449.3 MB, free: 1.824 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001103/0.2784, allocations: 255.6 kB / 449.6 MB, free: 1.57 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.351e-05/0.2785, allocations: 149.9 kB / 449.7 MB, free: 1.422 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001172/0.2786, allocations: 94.16 kB / 449.8 MB, free: 1.324 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.884e-05/0.2787, allocations: 350.8 kB / 450.1 MB, free: 0.9727 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002223/0.2789, allocations: 197 kB / 450.3 MB, free: 0.7812 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002642/0.2792, allocations: 369.2 kB / 450.7 MB, free: 356 kB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006555/0.2799, allocations: 0.606 MB / 451.3 MB, free: 15.67 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.414e-06/0.2799, allocations: 0 / 451.3 MB, free: 15.67 MB / 334.1 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.0009108/0.2808, allocations: 0.6269 MB / 451.9 MB, free: 15.04 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.451e-05/0.2808, allocations: 8 kB / 451.9 MB, free: 15.03 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.289e-05/0.2809, allocations: 8.062 kB / 451.9 MB, free: 15.02 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.937e-05/0.2809, allocations: 8 kB / 451.9 MB, free: 15.02 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004299/0.2813, allocations: 111.8 kB / 452.1 MB, free: 14.91 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.849e-05/0.2814, allocations: 15.92 kB / 452.1 MB, free: 14.89 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002315/0.2816, allocations: 27.92 kB / 452.1 MB, free: 14.86 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.514e-05/0.2817, allocations: 24 kB / 452.1 MB, free: 14.84 MB / 334.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002835/0.282, allocations: 213.6 kB / 452.3 MB, free: 14.62 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000118/0.2821, allocations: 39.47 kB / 452.4 MB, free: 14.58 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007992/0.2829, allocations: 0.4929 MB / 452.9 MB, free: 14.08 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.359e-05/0.2829, allocations: 11.98 kB / 452.9 MB, free: 14.07 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.34e-06/0.2829, allocations: 0 / 452.9 MB, free: 14.07 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.32e-06/0.283, allocations: 7.938 kB / 452.9 MB, free: 14.06 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001785/0.2847, allocations: 1.109 MB / 454 MB, free: 12.89 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.53e-06/0.2848, allocations: 0 / 454 MB, free: 12.89 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003658/0.2851, allocations: 75.81 kB / 454.1 MB, free: 12.82 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.203e-06/0.2852, allocations: 4 kB / 454.1 MB, free: 12.81 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.984e-05/0.2852, allocations: 8 kB / 454.1 MB, free: 12.8 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.159e-06/0.2852, allocations: 4 kB / 454.1 MB, free: 12.8 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.396e-06/0.2852, allocations: 4 kB / 454.1 MB, free: 12.8 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001087/0.2863, allocations: 0.836 MB / 454.9 MB, free: 11.93 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.086e-05/0.2864, allocations: 108.7 kB / 455 MB, free: 11.81 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.391e-05/0.2865, allocations: 8 kB / 455 MB, free: 11.8 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002/0.2867, allocations: 16.02 kB / 455 MB, free: 11.79 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.119e-05/0.2867, allocations: 23.91 kB / 455.1 MB, free: 11.76 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.017e-05/0.2868, allocations: 16 kB / 455.1 MB, free: 11.75 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002046/0.287, allocations: 211.1 kB / 455.3 MB, free: 11.54 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.71e-07/0.287, allocations: 0 / 455.3 MB, free: 11.54 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005034/0.2875, allocations: 104 kB / 455.4 MB, free: 11.44 MB / 334.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 (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.0002566/0.2878, allocations: 135.9 kB / 455.5 MB, free: 11.3 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0007422/0.2885, allocations: 0.4888 MB / 456 MB, free: 10.81 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.895e-06/0.2885, allocations: 0 / 456 MB, free: 10.81 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002816/0.2888, allocations: 223.8 kB / 456.2 MB, free: 10.59 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005074/0.2893, allocations: 74.42 kB / 456.3 MB, free: 10.52 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001699/0.291, allocations: 1.119 MB / 457.4 MB, free: 9.359 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004815/0.2915, allocations: 0.8781 MB / 458.3 MB, free: 8.457 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002862/0.2918, allocations: 123.1 kB / 458.4 MB, free: 8.336 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.129e-05/0.2919, allocations: 35.44 kB / 458.5 MB, free: 8.301 MB / 334.1 MB Notification: Performance of SimCode: time 3.4e-07/0.2919, allocations: 0 / 458.5 MB, free: 8.301 MB / 334.1 MB Notification: Performance of Templates: time 0.008286/0.3002, allocations: 3.858 MB / 462.3 MB, free: 4.457 MB / 334.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.Introductory.ReferenceSynchron.makefile (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 -s cvode -lv LOG_STATS > PowerSystems_PowerSystems.Examples.Introductory.ReferenceSynchron.pipe 2>&1)