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.001469/0.001469, allocations: 113.3 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.001774/0.001774, 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.635/1.635, allocations: 205.1 MB / 224.5 MB, free: 12.31 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1931/0.1931, 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.001719/0.001719, allocations: 67.91 kB / 376.8 MB, free: 2.922 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3065/0.3082, allocations: 55.24 MB / 432 MB, free: 19.49 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Machines): time 0.006448/0.3147, allocations: 5.38 MB / 437.4 MB, free: 14.09 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.005455/0.3202, allocations: 4.207 MB / 441.6 MB, free: 9.867 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004607/0.3207, 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.008779/0.3296, allocations: 4.837 MB / 446.5 MB, free: 5.004 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001221/0.3309, allocations: 338.4 kB / 446.8 MB, free: 4.672 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007698/0.3316, allocations: 251.5 kB / 447 MB, free: 4.426 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.002036/0.3337, allocations: 1.571 MB / 448.6 MB, free: 2.852 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006977/0.3344, allocations: 376.2 kB / 449 MB, free: 2.484 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005537/0.335, allocations: 378.6 kB / 449.4 MB, free: 2.113 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005617/0.3356, allocations: 434.4 kB / 449.8 MB, free: 1.688 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.282e-05/0.3356, allocations: 47.94 kB / 449.8 MB, free: 1.641 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003186/0.336, allocations: 127.8 kB / 450 MB, free: 1.516 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000256/0.3362, allocations: 271.3 kB / 450.2 MB, free: 1.25 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003427/0.3366, allocations: 330.3 kB / 450.5 MB, free: 0.9258 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007968/0.3374, allocations: 0.7436 MB / 451.3 MB, free: 184 kB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.151e-06/0.3374, allocations: 3.938 kB / 451.3 MB, free: 180 kB / 318.1 MB Notification: Performance of FrontEnd: time 2.134e-06/0.3374, allocations: 0 / 451.3 MB, free: 180 kB / 318.1 MB Notification: Performance of Transformations before backend: time 1.979e-05/0.3374, 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.001918/0.3394, allocations: 0.9056 MB / 452.2 MB, free: 15.22 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.824e-05/0.3394, allocations: 15.89 kB / 452.2 MB, free: 15.2 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005321/0.34, allocations: 84.16 kB / 452.3 MB, free: 15.12 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001158/0.3411, allocations: 0.5566 MB / 452.8 MB, free: 14.52 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.198e-05/0.3412, allocations: 40.98 kB / 452.9 MB, free: 14.48 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.091e-05/0.3413, allocations: 51.98 kB / 452.9 MB, free: 14.43 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009317/0.3422, allocations: 0.6414 MB / 453.6 MB, free: 13.75 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.168e-05/0.3423, allocations: 4 kB / 453.6 MB, free: 13.75 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.944e-05/0.3423, allocations: 19.98 kB / 453.6 MB, free: 13.73 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001426/0.3425, allocations: 56.95 kB / 453.7 MB, free: 13.68 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007658/0.3432, allocations: 487.6 kB / 454.1 MB, free: 13.2 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003932/0.3472, allocations: 2.523 MB / 456.7 MB, free: 10.54 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005314/0.3477, allocations: 331.5 kB / 457 MB, free: 10.19 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002624/0.348, allocations: 178.6 kB / 457.2 MB, free: 10 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.118e-05/0.3481, allocations: 4 kB / 457.2 MB, free: 10 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.76e-05/0.3481, allocations: 43.06 kB / 457.2 MB, free: 9.949 MB / 334.1 MB Notification: Performance of pre-optimization done (n=32): time 2.795e-06/0.3481, allocations: 0 / 457.2 MB, free: 9.949 MB / 334.1 MB Notification: Performance of matching and sorting (n=33): time 0.002904/0.351, allocations: 1.632 MB / 458.8 MB, free: 8.18 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.688e-05/0.3511, allocations: 110.8 kB / 458.9 MB, free: 8.047 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005062/0.3516, allocations: 429.8 kB / 459.4 MB, free: 7.621 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.364e-05/0.3517, allocations: 33.7 kB / 459.4 MB, free: 7.582 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002413/0.3519, allocations: 307.5 kB / 459.7 MB, free: 7.273 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001055/0.352, allocations: 122.3 kB / 459.8 MB, free: 7.152 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001443/0.3522, allocations: 90.19 kB / 459.9 MB, free: 7.059 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001706/0.3524, allocations: 362.7 kB / 460.3 MB, free: 6.695 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002773/0.3527, allocations: 165 kB / 460.4 MB, free: 6.535 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000357/0.353, allocations: 305.8 kB / 460.7 MB, free: 6.176 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007321/0.3538, allocations: 491.4 kB / 461.2 MB, free: 5.637 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.865e-06/0.3538, allocations: 0 / 461.2 MB, free: 5.637 MB / 334.1 MB Notification: Performance of matching and sorting (n=55) (initialization): time 0.001413/0.3552, allocations: 0.7959 MB / 462 MB, free: 4.809 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.363e-05/0.3552, allocations: 4 kB / 462 MB, free: 4.805 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.208e-05/0.3553, allocations: 8 kB / 462 MB, free: 4.797 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006698/0.3559, allocations: 205.5 kB / 462.2 MB, free: 4.59 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003612/0.3563, allocations: 75.89 kB / 462.3 MB, free: 4.516 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005356/0.3617, allocations: 4.223 MB / 466.5 MB, free: 16 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004327/0.3622, allocations: 19.97 kB / 466.5 MB, free: 15.99 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.343e-05/0.3622, allocations: 23.94 kB / 466.5 MB, free: 15.97 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.0003727/0.3626, allocations: 229.6 kB / 466.8 MB, free: 15.74 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001103/0.3627, allocations: 47.44 kB / 466.8 MB, free: 15.69 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009242/0.3636, allocations: 0.6331 MB / 467.4 MB, free: 15.01 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.123e-05/0.3637, allocations: 8 kB / 467.5 MB, free: 15 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.292e-06/0.3637, allocations: 8.016 kB / 467.5 MB, free: 15 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.43e-06/0.3637, allocations: 0 / 467.5 MB, free: 15 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001817/0.3655, allocations: 1.187 MB / 468.6 MB, free: 13.7 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.839e-06/0.3655, allocations: 3.938 kB / 468.7 MB, free: 13.7 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004668/0.366, allocations: 71.89 kB / 468.7 MB, free: 13.63 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001709/0.3662, allocations: 49.67 kB / 468.8 MB, free: 13.57 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.794e-05/0.3662, allocations: 16 kB / 468.8 MB, free: 13.56 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002201/0.3684, allocations: 2.839 MB / 471.6 MB, free: 10.44 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.598e-06/0.3685, allocations: 0 / 471.6 MB, free: 10.44 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001326/0.3698, allocations: 0.9684 MB / 472.6 MB, free: 9.398 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002622/0.3701, allocations: 148.5 kB / 472.7 MB, free: 9.234 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.854e-05/0.3701, allocations: 15.98 kB / 472.8 MB, free: 9.219 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002534/0.3704, allocations: 8 kB / 472.8 MB, free: 9.211 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.901e-05/0.3705, allocations: 27.91 kB / 472.8 MB, free: 9.184 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.562e-05/0.3705, allocations: 15.98 kB / 472.8 MB, free: 9.168 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003881/0.3709, allocations: 295.1 kB / 473.1 MB, free: 8.883 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3709, allocations: 0 / 473.1 MB, free: 8.883 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007273/0.3716, allocations: 128 kB / 473.2 MB, free: 8.758 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.0001659/0.3718, allocations: 115.1 kB / 473.3 MB, free: 8.633 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001326/0.3732, allocations: 0.743 MB / 474.1 MB, free: 7.863 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.848e-06/0.3732, allocations: 0.8125 kB / 474.1 MB, free: 7.863 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005636/0.3737, allocations: 425.7 kB / 474.5 MB, free: 7.422 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007705/0.3745, allocations: 118 kB / 474.6 MB, free: 7.309 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002482/0.377, allocations: 1.476 MB / 476.1 MB, free: 5.797 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006015/0.3776, allocations: 0.9444 MB / 477 MB, free: 4.828 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003144/0.378, 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.0001107/0.3781, allocations: 39.42 kB / 477.2 MB, free: 4.684 MB / 350.1 MB Notification: Performance of SimCode: time 7.31e-07/0.3781, allocations: 0 / 477.2 MB, free: 4.684 MB / 350.1 MB Notification: Performance of Templates: time 0.01301/0.3911, allocations: 6.789 MB / 484 MB, free: 13.92 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 cvode -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Machines.pipe 2>&1)