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.001585/0.001585, allocations: 117.7 kB / 17.7 MB, free: 5.293 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.001749/0.001749, allocations: 191 kB / 18.63 MB, free: 4.367 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.391/1.391, allocations: 205.1 MB / 224.5 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1756/0.1756, allocations: 37.99 MB / 309.8 MB, free: 5.969 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.00161/0.00161, allocations: 64.23 kB / 376.8 MB, free: 2.922 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2252/0.2268, allocations: 55.24 MB / 432 MB, free: 19.5 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic): time 0.00568/0.2325, allocations: 5.236 MB / 437.3 MB, free: 14.24 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004753/0.2373, allocations: 4.01 MB / 441.3 MB, free: 10.22 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000479/0.2378, allocations: 11.94 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.007993/0.2458, allocations: 4.788 MB / 446.1 MB, free: 5.414 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007239/0.2465, allocations: 318.5 kB / 446.4 MB, free: 5.102 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004768/0.247, allocations: 215.6 kB / 446.6 MB, free: 4.891 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001613/0.2487, allocations: 1.551 MB / 448.1 MB, free: 3.336 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006986/0.2494, allocations: 0.5923 MB / 448.7 MB, free: 2.738 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004682/0.2499, allocations: 362.7 kB / 449.1 MB, free: 2.383 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004904/0.2504, allocations: 410.4 kB / 449.5 MB, free: 1.98 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 9.162e-05/0.2505, allocations: 56 kB / 449.5 MB, free: 1.926 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001879/0.2507, allocations: 71.98 kB / 449.6 MB, free: 1.855 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001952/0.2509, allocations: 259.3 kB / 449.9 MB, free: 1.602 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002892/0.2512, allocations: 322.5 kB / 450.2 MB, free: 1.285 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000593/0.2518, allocations: 0.8098 MB / 451 MB, free: 484 kB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.328e-06/0.2518, allocations: 0 / 451 MB, free: 484 kB / 318.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.2518, allocations: 4 kB / 451 MB, free: 480 kB / 318.1 MB Notification: Performance of Transformations before backend: time 2.818e-05/0.2518, allocations: 0 / 451 MB, free: 480 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.00158/0.2534, allocations: 0.8707 MB / 451.9 MB, free: 15.55 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.758e-05/0.2534, allocations: 15.89 kB / 451.9 MB, free: 15.53 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000275/0.2537, allocations: 68.19 kB / 451.9 MB, free: 15.46 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001084/0.2548, allocations: 0.5646 MB / 452.5 MB, free: 14.86 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.885e-05/0.2549, allocations: 29 kB / 452.5 MB, free: 14.83 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.133e-05/0.255, allocations: 51.91 kB / 452.6 MB, free: 14.78 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009255/0.2559, allocations: 0.6297 MB / 453.2 MB, free: 14.12 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.354e-05/0.2559, allocations: 0 / 453.2 MB, free: 14.12 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.354e-05/0.256, allocations: 16 kB / 453.2 MB, free: 14.1 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001204/0.2561, allocations: 48.97 kB / 453.3 MB, free: 14.05 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000717/0.2568, allocations: 475.5 kB / 453.7 MB, free: 13.59 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002926/0.2598, allocations: 2.503 MB / 456.3 MB, free: 10.94 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004084/0.2602, allocations: 277.2 kB / 456.5 MB, free: 10.65 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002115/0.2604, allocations: 141.7 kB / 456.7 MB, free: 10.51 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.991e-05/0.2604, allocations: 4 kB / 456.7 MB, free: 10.5 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.598e-05/0.2605, allocations: 39.06 kB / 456.7 MB, free: 10.46 MB / 334.1 MB Notification: Performance of pre-optimization done (n=30): time 1.703e-06/0.2605, allocations: 0 / 456.7 MB, free: 10.46 MB / 334.1 MB Notification: Performance of matching and sorting (n=32): time 0.002702/0.2632, allocations: 1.54 MB / 458.2 MB, free: 8.801 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.145e-05/0.2633, allocations: 85.09 kB / 458.3 MB, free: 8.699 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004269/0.2637, allocations: 413.8 kB / 458.7 MB, free: 8.289 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.573e-05/0.2637, allocations: 29.7 kB / 458.8 MB, free: 8.254 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002138/0.2639, allocations: 303.5 kB / 459.1 MB, free: 7.949 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.854e-05/0.264, allocations: 110.4 kB / 459.2 MB, free: 7.84 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001266/0.2642, allocations: 89.97 kB / 459.3 MB, free: 7.746 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001533/0.2643, allocations: 362.8 kB / 459.6 MB, free: 7.383 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000221/0.2646, allocations: 128.8 kB / 459.7 MB, free: 7.258 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000287/0.2648, allocations: 278.3 kB / 460 MB, free: 6.922 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005454/0.2654, allocations: 453.6 kB / 460.4 MB, free: 6.414 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.2654, allocations: 4 kB / 460.5 MB, free: 6.41 MB / 334.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001017/0.2664, allocations: 0.6717 MB / 461.1 MB, free: 5.707 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.698e-05/0.2665, allocations: 11.94 kB / 461.1 MB, free: 5.695 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.285e-06/0.2665, allocations: 4 kB / 461.1 MB, free: 5.691 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004071/0.2669, allocations: 149.8 kB / 461.3 MB, free: 5.539 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002855/0.2672, allocations: 87.83 kB / 461.4 MB, free: 5.453 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003234/0.2704, allocations: 3.668 MB / 465 MB, free: 1.504 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002221/0.2707, allocations: 16 kB / 465.1 MB, free: 1.488 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.529e-05/0.2707, allocations: 19.98 kB / 465.1 MB, free: 1.469 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.0002543/0.271, allocations: 249.7 kB / 465.3 MB, free: 1.215 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.083e-05/0.2711, allocations: 43.44 kB / 465.4 MB, free: 1.172 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008846/0.2719, allocations: 0.575 MB / 465.9 MB, free: 0.5664 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.468e-06/0.272, allocations: 8 kB / 465.9 MB, free: 0.5586 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0007026/0.2727, allocations: 479.5 kB / 466.4 MB, free: 56 kB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.563e-06/0.2727, allocations: 4 kB / 466.4 MB, free: 52 kB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001403/0.2741, allocations: 0.9977 MB / 467.4 MB, free: 14.98 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.925e-06/0.2741, allocations: 0 / 467.4 MB, free: 14.98 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000194/0.2743, allocations: 47.91 kB / 467.5 MB, free: 14.94 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002513/0.2746, allocations: 88.88 kB / 467.5 MB, free: 14.85 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.219e-05/0.2746, allocations: 8 kB / 467.6 MB, free: 14.84 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001837/0.2765, allocations: 2.012 MB / 469.6 MB, free: 12.69 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.948e-06/0.2765, allocations: 8.016 kB / 469.6 MB, free: 12.68 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008532/0.2773, allocations: 0.645 MB / 470.2 MB, free: 12 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001554/0.2775, allocations: 136.6 kB / 470.4 MB, free: 11.85 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.016e-05/0.2776, allocations: 15.98 kB / 470.4 MB, free: 11.84 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001891/0.2778, allocations: 4 kB / 470.4 MB, free: 11.83 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.309e-05/0.2778, allocations: 19.97 kB / 470.4 MB, free: 11.81 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.222e-05/0.2778, allocations: 12 kB / 470.4 MB, free: 11.8 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002938/0.2781, allocations: 303.1 kB / 470.7 MB, free: 11.51 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.523e-06/0.2781, allocations: 0 / 470.7 MB, free: 11.51 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004766/0.2786, allocations: 119.9 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.0001068/0.2787, allocations: 107.2 kB / 470.9 MB, free: 11.28 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009088/0.2797, allocations: 0.6198 MB / 471.5 MB, free: 10.63 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.2797, allocations: 0 / 471.5 MB, free: 10.63 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004244/0.2801, allocations: 298.3 kB / 471.8 MB, free: 10.33 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006752/0.2808, allocations: 122.1 kB / 472 MB, free: 10.2 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001683/0.2825, allocations: 1.111 MB / 473.1 MB, free: 9.051 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004466/0.2829, allocations: 0.9283 MB / 474 MB, free: 8.098 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001964/0.2831, allocations: 72.33 kB / 474.1 MB, free: 8.027 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.338e-05/0.2832, allocations: 31.44 kB / 474.1 MB, free: 7.996 MB / 350.1 MB Notification: Performance of SimCode: time 2.71e-07/0.2832, allocations: 3.938 kB / 474.1 MB, free: 7.992 MB / 350.1 MB Notification: Performance of Templates: time 0.009938/0.2932, allocations: 5.607 MB / 479.7 MB, free: 2.406 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 gbode -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic.pipe 2>&1)