Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.ASMav.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.AC3ph.Drives.ASMav,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2400,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.ASMav") translateModel(PowerSystems.Examples.AC3ph.Drives.ASMav,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2400,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.ASMav") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001627/0.001632, allocations: 191.9 kB / 15.77 MB, free: 5.984 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.007/2.007, allocations: 205.4 MB / 221.9 MB, free: 13.81 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001092/0.001092, allocations: 94.86 kB / 270.2 MB, free: 13.34 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2669/0.2669, allocations: 38.05 MB / 356.6 MB, free: 0.7773 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004974/0.0004975, allocations: 12 kB / 422.7 MB, free: 26.42 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1078/0.1083, allocations: 56.34 MB / 479 MB, free: 2.02 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASMav): time 0.01202/0.1204, allocations: 7.106 MB / 486.2 MB, free: 10.88 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.01209/0.1325, allocations: 5.041 MB / 491.2 MB, free: 5.828 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00105/0.1336, allocations: 47.69 kB / 491.2 MB, free: 5.781 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.007665/0.1413, allocations: 1.93 MB / 493.2 MB, free: 3.844 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002098/0.1435, allocations: 446.6 kB / 493.6 MB, free: 3.406 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001926/0.1454, allocations: 430.7 kB / 494 MB, free: 2.988 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.001784/0.1472, allocations: 0.7454 MB / 494.8 MB, free: 2.242 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002079/0.1493, allocations: 0.9715 MB / 495.7 MB, free: 1.227 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001109/0.1505, allocations: 450.4 kB / 496.2 MB, free: 0.7852 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00103/0.1515, allocations: 0.4905 MB / 496.7 MB, free: 300 kB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.00019/0.1517, allocations: 44 kB / 496.7 MB, free: 256 kB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006437/0.1524, allocations: 151.8 kB / 496.9 MB, free: 104 kB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006488/0.153, allocations: 411 kB / 497.3 MB, free: 15.7 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003598/0.1534, allocations: 221.1 kB / 497.5 MB, free: 15.48 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001924/0.1554, allocations: 1.185 MB / 498.7 MB, free: 14.29 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.031e-06/0.1554, allocations: 0 / 498.7 MB, free: 14.29 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.415e-06/0.1554, allocations: 3.938 kB / 498.7 MB, free: 14.29 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.264e-05/0.1554, allocations: 4 kB / 498.7 MB, free: 14.28 MB / 346.7 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.004493/0.1599, allocations: 1.258 MB / 499.9 MB, free: 12.97 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.84e-05/0.16, allocations: 8.031 kB / 499.9 MB, free: 12.96 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001122/0.1611, allocations: 154.5 kB / 0.4884 GB, free: 12.81 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003019/0.1642, allocations: 0.8589 MB / 0.4892 GB, free: 11.91 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001135/0.1644, allocations: 61.98 kB / 0.4893 GB, free: 11.85 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002964/0.1647, allocations: 87.89 kB / 0.4894 GB, free: 11.76 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003128/0.1678, allocations: 1.22 MB / 0.4905 GB, free: 10.47 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.822e-05/0.1679, allocations: 3.938 kB / 0.4905 GB, free: 10.47 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001414/0.1681, allocations: 35.98 kB / 0.4906 GB, free: 10.43 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004474/0.1685, allocations: 97.83 kB / 0.4907 GB, free: 10.34 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002728/0.1713, allocations: 0.9914 MB / 0.4916 GB, free: 9.348 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01173/0.183, allocations: 4.924 MB / 0.4965 GB, free: 4.207 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001875/0.185, allocations: 0.6564 MB / 0.4971 GB, free: 3.512 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001045/0.1851, allocations: 16.56 kB / 0.4971 GB, free: 3.496 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001171/0.1863, allocations: 441.8 kB / 0.4975 GB, free: 3.051 MB / 346.7 MB Notification: Performance of pre-optimization done (n=62): time 4.349e-06/0.1863, allocations: 0 / 0.4975 GB, free: 3.051 MB / 346.7 MB Notification: Performance of matching and sorting (n=65): time 0.008364/0.1947, allocations: 2.896 MB / 0.5004 GB, free: 15.97 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.737e-05/0.1949, allocations: 123.3 kB / 0.5005 GB, free: 15.83 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001532/0.1964, allocations: 0.7389 MB / 0.5012 GB, free: 15.08 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001964/0.1966, allocations: 41.7 kB / 0.5012 GB, free: 15.03 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005052/0.1971, allocations: 0.5088 MB / 0.5017 GB, free: 14.52 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000355/0.1975, allocations: 240.6 kB / 0.502 GB, free: 14.28 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.558e-05/0.1976, allocations: 20 kB / 0.502 GB, free: 14.26 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001952/0.1978, allocations: 358.7 kB / 0.5023 GB, free: 13.9 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001077/0.1989, allocations: 365.8 kB / 0.5027 GB, free: 13.54 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001336/0.2003, allocations: 0.6536 MB / 0.5033 GB, free: 12.76 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00132/0.2016, allocations: 483 kB / 0.5038 GB, free: 12.29 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.042e-05/0.2017, allocations: 4 kB / 0.5038 GB, free: 12.28 MB / 362.7 MB Notification: Performance of matching and sorting (n=120) (initialization): time 0.005311/0.207, allocations: 1.668 MB / 0.5054 GB, free: 10.56 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.916e-05/0.2071, allocations: 8.5 kB / 0.5054 GB, free: 10.55 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.409e-05/0.2071, allocations: 12 kB / 0.5054 GB, free: 10.54 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002835/0.21, allocations: 0.4908 MB / 0.5059 GB, free: 10.04 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001205/0.2112, allocations: 167.7 kB / 0.5061 GB, free: 9.875 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01756/0.2288, allocations: 8.091 MB / 0.514 GB, free: 1.375 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00119/0.23, allocations: 48.22 kB / 0.514 GB, free: 1.328 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001425/0.2302, allocations: 47.95 kB / 0.5141 GB, free: 1.281 MB / 362.7 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 (88): * Single equations (assignments): 85 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 3} * Non-linear torn systems: 1 {6 23} Notification: Performance of prepare postOptimizeDAE: time 0.0008496/0.231, allocations: 349.5 kB / 0.5144 GB, free: 0.9297 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002306/0.2313, allocations: 86.97 kB / 0.5145 GB, free: 0.8438 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3067/0.538, allocations: 1.211 MB / 0.5157 GB, free: 51.45 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.691e-05/0.5381, allocations: 6.875 kB / 0.5157 GB, free: 51.45 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.536e-06/0.5381, allocations: 1.891 kB / 0.5157 GB, free: 51.45 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.499e-05/0.5381, allocations: 4.516 kB / 0.5157 GB, free: 51.45 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005888/0.544, allocations: 2.207 MB / 0.5178 GB, free: 50.8 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.866e-06/0.5441, allocations: 2 kB / 0.5178 GB, free: 50.8 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001392/0.5455, allocations: 116.6 kB / 0.5179 GB, free: 50.8 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009602/0.5465, allocations: 186.9 kB / 0.5181 GB, free: 50.77 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.748e-05/0.5466, allocations: 22.92 kB / 0.5181 GB, free: 50.77 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005806/0.5524, allocations: 5.873 MB / 0.5239 GB, free: 45.5 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.118e-06/0.5525, allocations: 1.469 kB / 0.5239 GB, free: 45.5 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003826/0.5563, allocations: 1.694 MB / 0.5255 GB, free: 44.52 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004885/0.5568, allocations: 213.1 kB / 0.5257 GB, free: 44.4 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001764/0.557, allocations: 26.77 kB / 0.5258 GB, free: 44.38 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007506/0.5578, allocations: 34.88 kB / 0.5258 GB, free: 44.37 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002306/0.558, allocations: 47.09 kB / 0.5258 GB, free: 44.37 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.827e-05/0.5581, allocations: 27.38 kB / 0.5259 GB, free: 44.36 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0009967/0.5591, allocations: 0.5037 MB / 0.5264 GB, free: 44.15 MB / 362.7 MB Notification: Performance of sort global known variables: time 3.6e-07/0.5591, allocations: 0 / 0.5264 GB, free: 44.15 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001555/0.5607, allocations: 271.2 kB / 0.5266 GB, free: 44.12 MB / 362.7 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 (58): * Single equations (assignments): 53 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 3,(1,100.0%) 1,(2,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001177/0.5619, allocations: 432.7 kB / 0.527 GB, free: 43.88 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.003976/0.5659, allocations: 1.438 MB / 0.5284 GB, free: 43.16 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.889e-06/0.5659, allocations: 0 / 0.5284 GB, free: 43.16 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002044/0.568, allocations: 0.9021 MB / 0.5293 GB, free: 42.57 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001553/0.5695, allocations: 180.7 kB / 0.5295 GB, free: 42.52 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0068/0.5764, allocations: 3.343 MB / 0.5327 GB, free: 40.56 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001014/0.5774, allocations: 1.163 MB / 0.5339 GB, free: 39.8 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004766/0.5779, allocations: 71.33 kB / 0.5339 GB, free: 39.79 MB / 362.7 MB Notification: Performance of SimCode: time 1.113e-06/0.5779, allocations: 1.469 kB / 0.534 GB, free: 39.79 MB / 362.7 MB Notification: Performance of Templates: time 0.03959/0.6175, allocations: 25.24 MB / 0.5586 GB, free: 20.34 MB / 362.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.ASMav.makefile (rm -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.ASMav.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.ASMav.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.ASMav.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.ASMav.sim & ./PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.ASMav --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.ASMav.pipe 2>&1)