Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Machines.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.AC3ph.Elementary.Machines,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Machines") translateModel(PowerSystems.Examples.AC3ph.Elementary.Machines,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Machines") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001409/0.001409, allocations: 109.5 kB / 17.68 MB, free: 5.332 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.001627/0.001628, allocations: 190.9 kB / 18.62 MB, free: 4.41 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.401/1.401, allocations: 205.1 MB / 224.5 MB, free: 12.22 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1806/0.1806, allocations: 37.99 MB / 309.8 MB, free: 5.965 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.001683/0.001683, allocations: 76.28 kB / 376.8 MB, free: 2.902 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2555/0.2572, allocations: 55.25 MB / 432 MB, free: 19.48 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Machines): time 0.006895/0.2641, allocations: 5.38 MB / 437.4 MB, free: 14.08 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.006183/0.2703, allocations: 4.199 MB / 441.6 MB, free: 9.867 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005395/0.2709, allocations: 19.88 kB / 441.6 MB, free: 9.848 MB / 318.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Math/package.mo:1895:3-1973:18:writable] Warning: Pure function 'Modelica.Math.Matrices.eigenValues' contains a call to impure function 'Modelica.Math.Matrices.LAPACK.dgeev_eigenValues'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Math/package.mo:2829:3-2870:10:writable] Warning: Pure function 'Modelica.Math.Matrices.inv' contains a call to impure function 'Modelica.Math.Matrices.LAPACK.dgetrf'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Math/package.mo:1125:3-1182:12:writable] Warning: Pure function 'Modelica.Math.Matrices.solve' contains a call to impure function 'Modelica.Math.Matrices.LAPACK.dgesv_vec'. Notification: Performance of NFTyping.typeComponents: time 0.008146/0.2791, allocations: 4.845 MB / 446.5 MB, free: 4.996 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009702/0.2801, allocations: 338.4 kB / 446.8 MB, free: 4.664 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000576/0.2807, allocations: 247.5 kB / 447 MB, free: 4.422 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001452/0.2821, allocations: 1.567 MB / 448.6 MB, free: 2.852 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004708/0.2826, allocations: 380.2 kB / 449 MB, free: 2.48 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003019/0.2829, allocations: 370.6 kB / 449.3 MB, free: 2.117 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004401/0.2834, allocations: 446.3 kB / 449.8 MB, free: 1.68 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.79e-05/0.2834, allocations: 52 kB / 449.8 MB, free: 1.629 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002133/0.2837, allocations: 119.8 kB / 449.9 MB, free: 1.512 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000182/0.2839, allocations: 267.3 kB / 450.2 MB, free: 1.25 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000235/0.2841, allocations: 330.3 kB / 450.5 MB, free: 0.9258 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005523/0.2847, allocations: 0.7475 MB / 451.3 MB, free: 180 kB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.346e-06/0.2847, allocations: 0 / 451.3 MB, free: 180 kB / 318.1 MB Notification: Performance of FrontEnd: time 1.213e-06/0.2847, allocations: 0 / 451.3 MB, free: 180 kB / 318.1 MB Notification: Performance of Transformations before backend: time 8.967e-06/0.2847, allocations: 0 / 451.3 MB, free: 180 kB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 121 * Number of variables: 121 Notification: Performance of Generate backend data structure: time 0.001591/0.2863, allocations: 0.9017 MB / 452.2 MB, free: 15.22 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.045e-05/0.2863, allocations: 15.89 kB / 452.2 MB, free: 15.21 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004402/0.2868, allocations: 88.06 kB / 452.3 MB, free: 15.12 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001088/0.2879, allocations: 0.5643 MB / 452.8 MB, free: 14.52 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.15e-05/0.2879, allocations: 40.98 kB / 452.9 MB, free: 14.48 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.221e-05/0.288, allocations: 47.98 kB / 452.9 MB, free: 14.43 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009505/0.289, allocations: 0.653 MB / 453.6 MB, free: 13.74 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.478e-05/0.289, allocations: 0 / 453.6 MB, free: 13.74 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.841e-05/0.2891, allocations: 16 kB / 453.6 MB, free: 13.72 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001336/0.2892, allocations: 52.95 kB / 453.6 MB, free: 13.67 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007361/0.29, allocations: 491.6 kB / 454.1 MB, free: 13.19 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0033/0.2933, allocations: 2.527 MB / 456.7 MB, free: 10.53 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004555/0.2938, allocations: 319.6 kB / 457 MB, free: 10.19 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002532/0.294, allocations: 182.5 kB / 457.1 MB, free: 10 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.917e-05/0.2941, allocations: 4 kB / 457.1 MB, free: 9.996 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.139e-05/0.2941, allocations: 47 kB / 457.2 MB, free: 9.941 MB / 334.1 MB Notification: Performance of pre-optimization done (n=32): time 2.004e-06/0.2941, allocations: 0 / 457.2 MB, free: 9.941 MB / 334.1 MB Notification: Performance of matching and sorting (n=33): time 0.00249/0.2966, allocations: 1.624 MB / 458.8 MB, free: 8.18 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.481e-05/0.2967, allocations: 110.8 kB / 458.9 MB, free: 8.047 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004202/0.2971, allocations: 429.9 kB / 459.3 MB, free: 7.621 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.63e-05/0.2972, allocations: 29.7 kB / 459.4 MB, free: 7.586 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002306/0.2974, allocations: 311.5 kB / 459.7 MB, free: 7.273 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001028/0.2975, allocations: 122.4 kB / 459.8 MB, free: 7.152 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001518/0.2977, allocations: 90.16 kB / 459.9 MB, free: 7.059 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001692/0.2979, allocations: 362.7 kB / 460.2 MB, free: 6.695 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00026/0.2981, allocations: 165 kB / 460.4 MB, free: 6.535 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003494/0.2985, allocations: 297.8 kB / 460.7 MB, free: 6.184 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006254/0.2991, allocations: 495.4 kB / 461.2 MB, free: 5.641 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.767e-06/0.2991, allocations: 4 kB / 461.2 MB, free: 5.637 MB / 334.1 MB Notification: Performance of matching and sorting (n=55) (initialization): time 0.001347/0.3005, allocations: 0.792 MB / 462 MB, free: 4.812 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.066e-05/0.3005, allocations: 8 kB / 462 MB, free: 4.805 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.009e-05/0.3005, allocations: 4 kB / 462 MB, free: 4.801 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006065/0.3011, allocations: 209.5 kB / 462.2 MB, free: 4.59 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000312/0.3015, allocations: 80.05 kB / 462.3 MB, free: 4.512 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004289/0.3058, allocations: 4.224 MB / 466.5 MB, free: 8 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002968/0.3061, allocations: 23.92 kB / 466.5 MB, free: 15.98 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.452e-05/0.3061, allocations: 20 kB / 466.5 MB, free: 15.96 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * 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 (40): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,10)} Notification: Performance of prepare postOptimizeDAE: time 0.0003021/0.3064, allocations: 233.6 kB / 466.8 MB, free: 15.73 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.819e-05/0.3065, allocations: 43.44 kB / 466.8 MB, free: 15.68 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000872/0.3074, allocations: 0.6409 MB / 467.4 MB, free: 15 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.119e-05/0.3074, allocations: 11.92 kB / 467.5 MB, free: 14.98 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.347e-06/0.3074, allocations: 0 / 467.5 MB, free: 14.98 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.39e-06/0.3074, allocations: 0 / 467.5 MB, free: 14.98 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001608/0.3091, allocations: 1.187 MB / 468.6 MB, free: 13.69 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.436e-06/0.3091, allocations: 0 / 468.6 MB, free: 13.69 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004215/0.3095, allocations: 75.89 kB / 468.7 MB, free: 13.62 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001731/0.3097, allocations: 53.67 kB / 468.8 MB, free: 13.56 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.041e-05/0.3097, allocations: 8 kB / 468.8 MB, free: 13.55 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001817/0.3115, allocations: 2.843 MB / 471.6 MB, free: 10.43 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.823e-06/0.3116, allocations: 0 / 471.6 MB, free: 10.43 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001013/0.3126, allocations: 0.9647 MB / 472.6 MB, free: 9.391 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001836/0.3128, allocations: 144.5 kB / 472.7 MB, free: 9.23 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.657e-05/0.3128, allocations: 15.98 kB / 472.7 MB, free: 9.215 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002525/0.3131, allocations: 8 kB / 472.8 MB, free: 9.207 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.494e-05/0.3132, allocations: 27.91 kB / 472.8 MB, free: 9.18 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.844e-05/0.3132, allocations: 19.98 kB / 472.8 MB, free: 9.16 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002873/0.3135, allocations: 291.1 kB / 473.1 MB, free: 8.879 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.8e-07/0.3135, allocations: 0 / 473.1 MB, free: 8.879 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005652/0.3141, allocations: 136 kB / 473.2 MB, free: 8.746 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 7 (asynchron.i[3],asynchron.phi_el,asynchron.psi_s[1],asynchron.psi_s[2],asynchron.psi_rd[1],asynchron.psi_rq[1],rotor.w) * 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 (35): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001358/0.3142, allocations: 103.2 kB / 473.3 MB, free: 8.633 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001209/0.3154, allocations: 0.7397 MB / 474.1 MB, free: 7.867 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.869e-06/0.3154, allocations: 256 / 474.1 MB, free: 7.867 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005119/0.316, allocations: 437.5 kB / 474.5 MB, free: 7.414 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006935/0.3167, allocations: 128 kB / 474.6 MB, free: 7.301 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002054/0.3187, allocations: 1.465 MB / 476.1 MB, free: 5.793 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004987/0.3193, allocations: 0.9405 MB / 477 MB, free: 4.828 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000257/0.3195, allocations: 108.4 kB / 477.1 MB, free: 4.723 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001093/0.3196, allocations: 39.42 kB / 477.2 MB, free: 4.684 MB / 350.1 MB Notification: Performance of SimCode: time 3.31e-07/0.3196, allocations: 0 / 477.2 MB, free: 4.684 MB / 350.1 MB Notification: Performance of Templates: time 0.01189/0.3315, allocations: 6.796 MB / 484 MB, free: 13.91 MB / 366.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Machines.makefile (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Machines.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Machines.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Machines.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Machines.sim & ./PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Machines -abortSlowSimulation -alarm=480 -s gbode -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Machines.pipe 2>&1)