Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic.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.ASMcharacteristic,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic") translateModel(PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001174/0.00118, allocations: 113.5 kB / 17.7 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.001154/0.001154, allocations: 191 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.643/1.643, allocations: 205.1 MB / 224.5 MB, free: 12.3 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1895/0.1895, allocations: 38 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.001442/0.001442, allocations: 67.89 kB / 376.8 MB, free: 2.93 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2698/0.2713, allocations: 55.25 MB / 432 MB, free: 19.5 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic): time 0.005926/0.2773, allocations: 5.22 MB / 437.3 MB, free: 14.25 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.005563/0.2829, allocations: 4.012 MB / 441.3 MB, free: 10.23 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004117/0.2833, allocations: 19.88 kB / 441.3 MB, free: 10.21 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.007094/0.2905, allocations: 4.784 MB / 446.1 MB, free: 5.414 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000786/0.2913, allocations: 330.5 kB / 446.4 MB, free: 5.09 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006202/0.2919, allocations: 211.7 kB / 446.6 MB, free: 4.883 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001658/0.2936, allocations: 1.548 MB / 448.1 MB, free: 3.332 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005947/0.2942, allocations: 0.5847 MB / 448.7 MB, free: 2.742 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003271/0.2945, allocations: 370.7 kB / 449.1 MB, free: 2.379 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004088/0.2949, allocations: 410.5 kB / 449.5 MB, free: 1.977 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.216e-05/0.295, allocations: 56 kB / 449.5 MB, free: 1.922 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001384/0.2952, allocations: 71.98 kB / 449.6 MB, free: 1.852 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001706/0.2953, allocations: 255.3 kB / 449.9 MB, free: 1.602 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002185/0.2956, allocations: 326.5 kB / 450.2 MB, free: 1.281 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005806/0.2962, allocations: 0.8098 MB / 451 MB, free: 480 kB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.378e-06/0.2962, allocations: 4 kB / 451 MB, free: 476 kB / 318.1 MB Notification: Performance of FrontEnd: time 1.704e-06/0.2962, allocations: 0 / 451 MB, free: 476 kB / 318.1 MB Notification: Performance of Transformations before backend: time 8.596e-06/0.2962, allocations: 0 / 451 MB, free: 476 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.001454/0.2977, allocations: 0.863 MB / 451.9 MB, free: 15.55 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.328e-05/0.2977, allocations: 15.89 kB / 451.9 MB, free: 15.54 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002606/0.298, allocations: 68.17 kB / 451.9 MB, free: 15.47 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009885/0.299, allocations: 0.5607 MB / 452.5 MB, free: 14.87 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.208e-05/0.299, allocations: 37 kB / 452.5 MB, free: 14.83 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.262e-05/0.2991, allocations: 55.81 kB / 452.6 MB, free: 14.78 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008626/0.3, allocations: 0.6219 MB / 453.2 MB, free: 14.12 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.233e-05/0.3, allocations: 8 kB / 453.2 MB, free: 14.11 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.598e-05/0.3001, allocations: 23.98 kB / 453.2 MB, free: 14.09 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000113/0.3002, allocations: 44.97 kB / 453.3 MB, free: 14.04 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007113/0.3009, allocations: 463.6 kB / 453.7 MB, free: 13.59 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003079/0.304, allocations: 2.507 MB / 456.3 MB, free: 10.94 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004109/0.3044, allocations: 283.4 kB / 456.5 MB, free: 10.65 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002009/0.3046, allocations: 137.7 kB / 456.7 MB, free: 10.51 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.346e-05/0.3047, allocations: 7.984 kB / 456.7 MB, free: 10.5 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.703e-05/0.3047, allocations: 43 kB / 456.7 MB, free: 10.45 MB / 334.1 MB Notification: Performance of pre-optimization done (n=30): time 1.933e-06/0.3047, allocations: 0 / 456.7 MB, free: 10.45 MB / 334.1 MB Notification: Performance of matching and sorting (n=32): time 0.002917/0.3077, allocations: 1.536 MB / 458.2 MB, free: 8.797 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.81e-05/0.3078, allocations: 81.23 kB / 458.3 MB, free: 8.699 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004708/0.3082, allocations: 417.8 kB / 458.7 MB, free: 8.285 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.445e-05/0.3083, allocations: 37.64 kB / 458.8 MB, free: 8.242 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002213/0.3085, allocations: 303.5 kB / 459.1 MB, free: 7.938 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.395e-05/0.3086, allocations: 110.4 kB / 459.2 MB, free: 7.828 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001508/0.3088, allocations: 82.03 kB / 459.3 MB, free: 7.742 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001578/0.3089, allocations: 358.7 kB / 459.6 MB, free: 7.383 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002119/0.3092, allocations: 132.8 kB / 459.7 MB, free: 7.254 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002961/0.3095, allocations: 278.3 kB / 460 MB, free: 6.918 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005493/0.31, allocations: 453.7 kB / 460.5 MB, free: 6.41 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.677e-06/0.31, allocations: 4 kB / 460.5 MB, free: 6.406 MB / 334.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001019/0.3111, allocations: 0.6757 MB / 461.1 MB, free: 5.699 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.838e-05/0.3111, allocations: 11.98 kB / 461.1 MB, free: 5.688 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.408e-06/0.3111, allocations: 4 kB / 461.1 MB, free: 5.684 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004017/0.3115, allocations: 145.5 kB / 461.3 MB, free: 5.535 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002844/0.3118, allocations: 79.83 kB / 461.4 MB, free: 5.457 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003399/0.3152, allocations: 3.676 MB / 465 MB, free: 1.5 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002592/0.3155, allocations: 16 kB / 465.1 MB, free: 1.484 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.305e-05/0.3155, allocations: 19.94 kB / 465.1 MB, free: 1.465 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * 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 (42): * Single equations (assignments): 40 * 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): 2 systems {(2,6,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002918/0.3158, allocations: 237.6 kB / 465.3 MB, free: 1.223 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.051e-05/0.3159, allocations: 47.38 kB / 465.4 MB, free: 1.176 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009521/0.3169, allocations: 0.5673 MB / 465.9 MB, free: 0.5781 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.901e-06/0.3169, allocations: 4 kB / 465.9 MB, free: 0.5742 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0007039/0.3176, allocations: 491.5 kB / 466.4 MB, free: 60 kB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.877e-06/0.3176, allocations: 4 kB / 466.4 MB, free: 56 kB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001479/0.3191, allocations: 0.9976 MB / 467.4 MB, free: 14.99 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.869e-06/0.3191, allocations: 4 kB / 467.4 MB, free: 14.98 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000269/0.3194, allocations: 39.91 kB / 467.5 MB, free: 14.95 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002639/0.3197, allocations: 96.77 kB / 467.5 MB, free: 14.85 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.255e-05/0.3197, allocations: 7.984 kB / 467.6 MB, free: 14.84 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001918/0.3216, allocations: 2.012 MB / 469.6 MB, free: 12.69 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.286e-06/0.3216, allocations: 4.031 kB / 469.6 MB, free: 12.68 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008916/0.3225, allocations: 0.645 MB / 470.2 MB, free: 12.01 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001714/0.3227, allocations: 136.6 kB / 470.3 MB, free: 11.86 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.689e-05/0.3228, allocations: 8 kB / 470.4 MB, free: 11.85 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001864/0.323, allocations: 11.98 kB / 470.4 MB, free: 11.84 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.83e-05/0.323, allocations: 27.97 kB / 470.4 MB, free: 11.81 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.275e-05/0.3231, allocations: 12 kB / 470.4 MB, free: 11.8 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003301/0.3234, allocations: 303.1 kB / 470.7 MB, free: 11.5 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3234, allocations: 0 / 470.7 MB, free: 11.5 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005372/0.3239, allocations: 120 kB / 470.8 MB, free: 11.39 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (asm.rotor.phi,asm.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 (22): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001229/0.3241, allocations: 103.1 kB / 470.9 MB, free: 11.28 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001024/0.3251, allocations: 0.62 MB / 471.5 MB, free: 10.63 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/0.3251, allocations: 0 / 471.5 MB, free: 10.63 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004279/0.3256, allocations: 302.6 kB / 471.8 MB, free: 10.32 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006204/0.3262, allocations: 109.8 kB / 471.9 MB, free: 10.21 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001877/0.3281, allocations: 1.123 MB / 473.1 MB, free: 9.051 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005262/0.3286, allocations: 0.9244 MB / 474 MB, free: 8.102 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002341/0.3289, allocations: 80.25 kB / 474.1 MB, free: 8.023 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.206e-05/0.3289, allocations: 35.38 kB / 474.1 MB, free: 7.988 MB / 350.1 MB Notification: Performance of SimCode: time 5.21e-07/0.3289, allocations: 0 / 474.1 MB, free: 7.988 MB / 350.1 MB Notification: Performance of Templates: time 0.01041/0.3394, allocations: 5.592 MB / 479.7 MB, free: 2.414 MB / 350.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic.makefile (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic.sim & ./PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic.pipe 2>&1)