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.001835/0.001835, allocations: 110.6 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.00254/0.00254, 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.686/1.686, allocations: 205.1 MB / 224.5 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1836/0.1836, 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.001523/0.001523, allocations: 71.89 kB / 376.8 MB, free: 2.902 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2872/0.2887, allocations: 55.24 MB / 432 MB, free: 19.49 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASMav): time 0.009452/0.2982, allocations: 7.113 MB / 439.1 MB, free: 12.35 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.008964/0.3073, allocations: 5.048 MB / 444.2 MB, free: 7.285 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001258/0.3086, allocations: 31.81 kB / 444.2 MB, free: 7.254 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.0099/0.3185, allocations: 5.696 MB / 449.9 MB, free: 1.547 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.001792/0.3203, allocations: 0.5053 MB / 450.4 MB, free: 1.039 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001259/0.3216, allocations: 489.8 kB / 450.9 MB, free: 0.5625 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.002724/0.3243, allocations: 2.234 MB / 453.1 MB, free: 14.32 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001074/0.3254, allocations: 0.9429 MB / 454.1 MB, free: 13.37 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008991/0.3263, allocations: 0.5955 MB / 454.7 MB, free: 12.77 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001053/0.3274, allocations: 0.724 MB / 455.4 MB, free: 12.05 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001561/0.3276, allocations: 100 kB / 455.5 MB, free: 11.95 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005955/0.3282, allocations: 259.8 kB / 455.7 MB, free: 11.7 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004768/0.3287, allocations: 494.8 kB / 456.2 MB, free: 11.21 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006335/0.3293, allocations: 0.5831 MB / 456.8 MB, free: 10.62 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001714/0.331, allocations: 1.542 MB / 458.3 MB, free: 9.078 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.011e-06/0.3311, allocations: 0 / 458.3 MB, free: 9.078 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.3311, allocations: 0 / 458.3 MB, free: 9.078 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.469e-05/0.3311, allocations: 0 / 458.3 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.002983/0.3341, allocations: 1.46 MB / 459.8 MB, free: 7.566 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.385e-05/0.3341, allocations: 11.89 kB / 459.8 MB, free: 7.555 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006016/0.3347, allocations: 151.4 kB / 460 MB, free: 7.406 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001801/0.3365, allocations: 0.9055 MB / 460.9 MB, free: 6.457 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.5e-05/0.3366, allocations: 61.98 kB / 460.9 MB, free: 6.398 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001566/0.3368, allocations: 91.89 kB / 461 MB, free: 6.309 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00182/0.3386, allocations: 1.231 MB / 462.3 MB, free: 5.004 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.177e-05/0.3387, allocations: 3.938 kB / 462.3 MB, free: 5 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.745e-05/0.3388, allocations: 35.98 kB / 462.3 MB, free: 4.965 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002166/0.339, allocations: 89.94 kB / 462.4 MB, free: 4.879 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00153/0.3405, allocations: 1.007 MB / 463.4 MB, free: 3.871 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00657/0.3471, allocations: 4.889 MB / 468.3 MB, free: 14.77 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009772/0.3481, allocations: 0.6528 MB / 468.9 MB, free: 14.08 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006237/0.3487, allocations: 367.3 kB / 469.3 MB, free: 13.71 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.023e-05/0.3488, allocations: 8.5 kB / 469.3 MB, free: 13.71 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006786/0.3495, allocations: 449.8 kB / 469.7 MB, free: 13.25 MB / 350.1 MB Notification: Performance of pre-optimization done (n=62): time 2.013e-06/0.3495, allocations: 0 / 469.7 MB, free: 13.25 MB / 350.1 MB Notification: Performance of matching and sorting (n=65): time 0.004495/0.354, allocations: 2.719 MB / 472.5 MB, free: 10.39 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.651e-05/0.3541, allocations: 111.4 kB / 472.6 MB, free: 10.26 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008779/0.355, allocations: 0.7506 MB / 473.3 MB, free: 9.496 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.787e-05/0.355, allocations: 37.7 kB / 473.4 MB, free: 9.453 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003469/0.3554, allocations: 0.4986 MB / 473.9 MB, free: 8.945 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001981/0.3556, allocations: 236.6 kB / 474.1 MB, free: 8.711 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002655/0.3559, allocations: 186.5 kB / 474.3 MB, free: 8.523 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001894/0.3561, allocations: 402.7 kB / 474.7 MB, free: 8.121 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005758/0.3567, allocations: 369.8 kB / 475 MB, free: 7.758 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007676/0.3574, allocations: 0.6576 MB / 475.7 MB, free: 6.977 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001323/0.3588, allocations: 1.057 MB / 476.7 MB, free: 5.793 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.692e-06/0.3588, allocations: 4 kB / 476.7 MB, free: 5.789 MB / 350.1 MB Notification: Performance of matching and sorting (n=120) (initialization): time 0.003126/0.3619, allocations: 1.619 MB / 478.4 MB, free: 4.137 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.641e-05/0.362, allocations: 11.94 kB / 478.4 MB, free: 4.125 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.82e-05/0.362, allocations: 11.94 kB / 478.4 MB, free: 4.113 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00148/0.3635, allocations: 493.5 kB / 478.9 MB, free: 3.625 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006616/0.3641, allocations: 167.7 kB / 479 MB, free: 3.461 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01024/0.3744, allocations: 7.092 MB / 486.1 MB, free: 12.08 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009263/0.3754, allocations: 48.03 kB / 486.2 MB, free: 12.04 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.667e-05/0.3755, allocations: 43.98 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.0007161/0.3762, allocations: 345.5 kB / 486.5 MB, free: 11.64 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001428/0.3763, allocations: 82.97 kB / 486.6 MB, free: 11.56 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002077/0.3784, allocations: 1.114 MB / 487.7 MB, free: 10.39 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.054e-05/0.3785, allocations: 8 kB / 487.7 MB, free: 10.38 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.761e-06/0.3785, allocations: 4 kB / 487.8 MB, free: 10.38 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.042e-05/0.3785, allocations: 3.984 kB / 487.8 MB, free: 10.38 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003809/0.3823, allocations: 2.115 MB / 489.9 MB, free: 8.148 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.929e-06/0.3823, allocations: 4.125 kB / 489.9 MB, free: 8.145 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007528/0.3831, allocations: 127.8 kB / 490 MB, free: 8.02 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005351/0.3836, allocations: 158.4 kB / 490.2 MB, free: 7.855 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.299e-05/0.3837, allocations: 23.98 kB / 490.2 MB, free: 7.832 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004553/0.3883, allocations: 4.808 MB / 495 MB, free: 2.609 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.256e-06/0.3883, allocations: 4.031 kB / 495 MB, free: 2.605 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002367/0.3907, allocations: 1.526 MB / 496.5 MB, free: 1 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004688/0.3912, allocations: 212 kB / 496.7 MB, free: 0.7734 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001066/0.3913, allocations: 19.94 kB / 496.7 MB, free: 0.7539 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004548/0.3918, allocations: 35.97 kB / 496.8 MB, free: 0.7188 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001484/0.3919, allocations: 56.42 kB / 496.8 MB, free: 0.6641 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.086e-05/0.392, allocations: 23.98 kB / 496.9 MB, free: 0.6406 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0006675/0.3926, allocations: 0.5068 MB / 497.4 MB, free: 140 kB / 366.1 MB Notification: Performance of sort global known variables: time 2.554e-06/0.3927, allocations: 0 / 497.4 MB, free: 140 kB / 366.1 MB Notification: Performance of remove unused functions: time 0.001095/0.3938, allocations: 272 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.0009698/0.3947, allocations: 426.2 kB / 498 MB, free: 15.49 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002575/0.3973, allocations: 1.322 MB / 499.4 MB, free: 14.14 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.21e-06/0.3973, allocations: 384 / 499.4 MB, free: 14.14 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001278/0.3986, allocations: 0.7883 MB / 0.4884 GB, free: 13.31 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001164/0.3998, allocations: 222.9 kB / 0.4886 GB, free: 13.1 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004449/0.4043, allocations: 2.654 MB / 0.4912 GB, free: 10.4 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008432/0.4051, allocations: 1.147 MB / 0.4924 GB, free: 9.227 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0006608/0.4058, allocations: 235.2 kB / 0.4926 GB, free: 8.992 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001913/0.406, allocations: 71.42 kB / 0.4927 GB, free: 8.922 MB / 382.1 MB Notification: Performance of SimCode: time 1.092e-06/0.406, allocations: 4 kB / 0.4927 GB, free: 8.918 MB / 382.1 MB Notification: Performance of Templates: time 0.02564/0.4317, allocations: 14.54 MB / 0.5069 GB, free: 10.35 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 cvode -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMav.pipe 2>&1)