Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMav.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.Drives.ASMav,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2400,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMav") translateModel(PowerSystems.Examples.AC3ph.Drives.ASMav,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2400,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMav") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001328/0.001328, allocations: 113.6 kB / 17.69 MB, free: 5.309 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.001196/0.001196, 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.385/1.385, allocations: 205.1 MB / 224.5 MB, free: 12.26 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.98 MB / 309.8 MB, free: 5.98 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.001433/0.001433, allocations: 67.91 kB / 376.8 MB, free: 2.918 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2007/0.2022, allocations: 55.25 MB / 432 MB, free: 19.49 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASMav): time 0.006853/0.2091, allocations: 7.113 MB / 439.1 MB, free: 12.35 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00684/0.216, allocations: 5.038 MB / 444.2 MB, free: 7.293 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006458/0.2166, allocations: 31.81 kB / 444.2 MB, free: 7.262 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.00889/0.2256, allocations: 5.7 MB / 449.9 MB, free: 1.551 MB / 318.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:139:3-175:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.isEmpty' contains a call to impure function 'Modelica.Utilities.Strings.Advanced.skipWhiteSpace'. Notification: Performance of NFTyping.typeBindings: time 0.001242/0.2269, allocations: 0.5052 MB / 450.4 MB, free: 1.043 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001146/0.228, allocations: 493.5 kB / 450.9 MB, free: 0.5625 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.003155/0.2312, allocations: 2.242 MB / 453.1 MB, free: 14.32 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00166/0.2328, allocations: 0.9313 MB / 454.1 MB, free: 13.38 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001371/0.2342, allocations: 0.5993 MB / 454.7 MB, free: 12.77 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001189/0.2354, allocations: 0.7202 MB / 455.4 MB, free: 12.05 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003571/0.2358, allocations: 100 kB / 455.5 MB, free: 11.95 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006878/0.2365, allocations: 259.8 kB / 455.7 MB, free: 11.7 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005545/0.2371, allocations: 494.7 kB / 456.2 MB, free: 11.21 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007717/0.2379, allocations: 0.5871 MB / 456.8 MB, free: 10.62 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001616/0.2395, allocations: 1.542 MB / 458.4 MB, free: 9.078 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.567e-06/0.2395, allocations: 0 / 458.4 MB, free: 9.078 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.2395, allocations: 0 / 458.4 MB, free: 9.078 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.38e-05/0.2395, allocations: 0 / 458.4 MB, free: 9.078 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 220 * Number of variables: 220 Notification: Performance of Generate backend data structure: time 0.002782/0.2423, allocations: 1.46 MB / 459.8 MB, free: 7.566 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.578e-05/0.2424, allocations: 11.89 kB / 459.8 MB, free: 7.555 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005968/0.243, allocations: 151.5 kB / 460 MB, free: 7.406 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001719/0.2447, allocations: 0.9016 MB / 460.9 MB, free: 6.461 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.956e-05/0.2448, allocations: 61.98 kB / 460.9 MB, free: 6.402 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001602/0.2449, allocations: 91.89 kB / 461 MB, free: 6.312 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001711/0.2466, allocations: 1.235 MB / 462.3 MB, free: 5.004 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.111e-05/0.2467, allocations: 3.938 kB / 462.3 MB, free: 5 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.266e-05/0.2468, allocations: 31.98 kB / 462.3 MB, free: 4.969 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002222/0.247, allocations: 93.94 kB / 462.4 MB, free: 4.879 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00151/0.2485, allocations: 1.003 MB / 463.4 MB, free: 3.875 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006552/0.2551, allocations: 4.893 MB / 468.3 MB, free: 14.77 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001012/0.2561, allocations: 0.6567 MB / 468.9 MB, free: 14.07 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005346/0.2567, allocations: 355.3 kB / 469.3 MB, free: 13.72 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.063e-05/0.2568, allocations: 8.547 kB / 469.3 MB, free: 13.71 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007108/0.2575, allocations: 453.8 kB / 469.7 MB, free: 13.25 MB / 350.1 MB Notification: Performance of pre-optimization done (n=62): time 2.264e-06/0.2575, allocations: 4 kB / 469.7 MB, free: 13.25 MB / 350.1 MB Notification: Performance of matching and sorting (n=65): time 0.004591/0.2621, allocations: 2.719 MB / 472.5 MB, free: 10.39 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.297e-05/0.2622, allocations: 111.4 kB / 472.6 MB, free: 10.26 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009226/0.2631, allocations: 0.7428 MB / 473.3 MB, free: 9.504 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.477e-05/0.2632, allocations: 41.7 kB / 473.4 MB, free: 9.457 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003313/0.2635, allocations: 0.4986 MB / 473.9 MB, free: 8.949 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001885/0.2637, allocations: 232.6 kB / 474.1 MB, free: 8.719 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002648/0.264, allocations: 182.5 kB / 474.3 MB, free: 8.535 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001668/0.2642, allocations: 402.7 kB / 474.7 MB, free: 8.133 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005518/0.2647, allocations: 373.8 kB / 475 MB, free: 7.766 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007695/0.2655, allocations: 0.6615 MB / 475.7 MB, free: 6.98 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001309/0.2668, allocations: 1.057 MB / 476.7 MB, free: 5.797 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.183e-06/0.2668, allocations: 4 kB / 476.7 MB, free: 5.793 MB / 350.1 MB Notification: Performance of matching and sorting (n=120) (initialization): time 0.002881/0.2697, allocations: 1.623 MB / 478.4 MB, free: 4.137 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.164e-05/0.2697, allocations: 8 kB / 478.4 MB, free: 4.129 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.653e-05/0.2698, allocations: 8 kB / 478.4 MB, free: 4.121 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00144/0.2712, allocations: 0.4895 MB / 478.9 MB, free: 3.625 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006523/0.2719, allocations: 163.7 kB / 479 MB, free: 3.465 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009591/0.2815, allocations: 7.097 MB / 486.1 MB, free: 12.08 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007992/0.2823, allocations: 52.14 kB / 486.2 MB, free: 12.03 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.499e-05/0.2824, allocations: 44 kB / 486.2 MB, free: 11.99 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 40 * Number of states: 0 () * Number of discrete variables: 2 (system.initime,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (89): * Single equations (assignments): 87 * 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 {(6,23)} Notification: Performance of prepare postOptimizeDAE: time 0.000549/0.283, allocations: 353.5 kB / 486.6 MB, free: 11.63 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001144/0.2831, allocations: 82.97 kB / 486.6 MB, free: 11.55 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001792/0.2849, allocations: 1.114 MB / 487.8 MB, free: 10.38 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.23e-05/0.2849, allocations: 8 kB / 487.8 MB, free: 10.37 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.598e-06/0.2849, allocations: 0 / 487.8 MB, free: 10.37 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.297e-06/0.285, allocations: 7.984 kB / 487.8 MB, free: 10.36 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003419/0.2884, allocations: 2.103 MB / 489.9 MB, free: 8.148 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.268e-06/0.2884, allocations: 0 / 489.9 MB, free: 8.148 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007443/0.2891, allocations: 131.9 kB / 490 MB, free: 8.02 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005284/0.2897, allocations: 158.4 kB / 490.2 MB, free: 7.855 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.926e-05/0.2898, allocations: 19.98 kB / 490.2 MB, free: 7.836 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00397/0.2937, allocations: 4.812 MB / 495 MB, free: 2.609 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.334e-06/0.2938, allocations: 4 kB / 495 MB, free: 2.605 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002132/0.2959, allocations: 1.53 MB / 496.5 MB, free: 0.9961 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003732/0.2963, allocations: 204 kB / 496.7 MB, free: 0.7773 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001095/0.2964, allocations: 23.98 kB / 496.8 MB, free: 0.7539 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004332/0.2968, allocations: 35.91 kB / 496.8 MB, free: 0.7188 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001315/0.297, allocations: 64.36 kB / 496.9 MB, free: 0.6562 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.923e-05/0.297, allocations: 20 kB / 496.9 MB, free: 0.6367 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0006776/0.2977, allocations: 0.5107 MB / 497.4 MB, free: 132 kB / 366.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.2977, allocations: 0 / 497.4 MB, free: 132 kB / 366.1 MB Notification: Performance of remove unused functions: time 0.001108/0.2988, allocations: 264.2 kB / 497.6 MB, free: 15.87 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 13 (power.pav[1],power.pav[2],power.pav[3],asm.rotor.phi,asm.rotor.w,asm.motor.i[3],asm.motor.psi_s[1],asm.motor.psi_s[2],asm.motor.psi_rd[1],asm.motor.psi_rd[2],asm.motor.psi_rq[1],asm.motor.psi_rq[2],tabLoad.s) * Number of discrete variables: 2 ($whenCondition1,system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (59): * Single equations (assignments): 55 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,3,100.0%), (2,1,100.0%), (2,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.001005/0.2999, allocations: 417.2 kB / 498 MB, free: 15.51 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002492/0.3024, allocations: 1.33 MB / 499.4 MB, free: 14.14 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.696e-06/0.3024, allocations: 0 / 499.4 MB, free: 14.14 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001206/0.3036, allocations: 0.7845 MB / 0.4884 GB, free: 13.32 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001071/0.3047, allocations: 214.7 kB / 0.4886 GB, free: 13.12 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004299/0.309, allocations: 2.677 MB / 0.4913 GB, free: 10.4 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009011/0.3099, allocations: 1.143 MB / 0.4924 GB, free: 9.23 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0006355/0.3106, allocations: 231.3 kB / 0.4926 GB, free: 9 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001935/0.3108, allocations: 63.42 kB / 0.4927 GB, free: 8.938 MB / 382.1 MB Notification: Performance of SimCode: time 5.61e-07/0.3108, allocations: 8 kB / 0.4927 GB, free: 8.93 MB / 382.1 MB Notification: Performance of Templates: time 0.02482/0.3356, allocations: 14.55 MB / 0.5069 GB, free: 10.36 MB / 398.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMav.makefile (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMav.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMav.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMav.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMav.sim & ./PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMav -abortSlowSimulation -alarm=480 -s gbode -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMav.pipe 2>&1)