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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.001146/0.001146, allocations: 110.6 kB / 16.62 MB, free: 6.961 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.001173/0.001173, allocations: 190 kB / 17.54 MB, free: 6.066 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.34/1.34, allocations: 222.9 MB / 241.2 MB, free: 15.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1762/0.1762, allocations: 38.03 MB / 329.4 MB, free: 8.973 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001438/0.001438, allocations: 61.25 kB / 398.3 MB, free: 34.38 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1185/0.1199, allocations: 58.05 MB / 456.3 MB, free: 8.41 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASMav): time 0.01559/0.1356, allocations: 8.343 MB / 464.7 MB, free: 24 kB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01535/0.151, allocations: 5.475 MB / 470.2 MB, free: 10.53 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001586/0.1526, allocations: 59.62 kB / 470.2 MB, free: 10.47 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01759/0.1702, allocations: 5.83 MB / 476 MB, free: 4.633 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002751/0.173, allocations: 489.8 kB / 476.5 MB, free: 4.152 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002251/0.1753, allocations: 447.1 kB / 477 MB, free: 3.719 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005145/0.1805, allocations: 2.32 MB / 479.3 MB, free: 1.395 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002018/0.1825, allocations: 0.947 MB / 480.2 MB, free: 440 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001664/0.1842, allocations: 0.611 MB / 480.8 MB, free: 15.82 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001587/0.1858, allocations: 0.7592 MB / 481.6 MB, free: 15.05 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002175/0.186, allocations: 100 kB / 481.7 MB, free: 14.96 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008136/0.1869, allocations: 259.7 kB / 481.9 MB, free: 14.7 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007257/0.1876, allocations: 0.4909 MB / 482.4 MB, free: 14.21 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008787/0.1885, allocations: 0.5793 MB / 483 MB, free: 13.63 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002424/0.191, allocations: 1.534 MB / 484.5 MB, free: 12.09 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.516e-06/0.191, allocations: 4 kB / 484.6 MB, free: 12.09 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.134e-06/0.191, allocations: 4 kB / 484.6 MB, free: 12.08 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.058e-05/0.1911, allocations: 4 kB / 484.6 MB, free: 12.08 MB / 366.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.004748/0.1958, allocations: 1.441 MB / 486 MB, free: 10.59 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.388e-05/0.1959, allocations: 19.89 kB / 486 MB, free: 10.57 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001064/0.197, allocations: 143.5 kB / 486.2 MB, free: 10.43 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002718/0.1997, allocations: 0.8782 MB / 487 MB, free: 9.504 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.526e-05/0.1998, allocations: 66 kB / 487.1 MB, free: 9.441 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002596/0.2001, allocations: 87.89 kB / 487.2 MB, free: 9.355 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003009/0.2031, allocations: 1.235 MB / 488.4 MB, free: 8.047 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.287e-05/0.2032, allocations: 4 kB / 488.4 MB, free: 8.043 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001468/0.2033, allocations: 32 kB / 488.5 MB, free: 8.012 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003803/0.2037, allocations: 89.94 kB / 488.5 MB, free: 7.926 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002826/0.2066, allocations: 1.011 MB / 489.6 MB, free: 6.914 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008922/0.2155, allocations: 4.916 MB / 494.5 MB, free: 1.789 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009328/0.2165, allocations: 0.6576 MB / 495.1 MB, free: 1.094 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005257/0.217, allocations: 355.2 kB / 495.5 MB, free: 0.7422 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.357e-05/0.2171, allocations: 8.562 kB / 495.5 MB, free: 0.7344 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006657/0.2178, allocations: 453.7 kB / 495.9 MB, free: 276 kB / 366.1 MB Notification: Performance of pre-optimization done (n=62): time 2.685e-06/0.2178, allocations: 0 / 495.9 MB, free: 276 kB / 366.1 MB Notification: Performance of matching and sorting (n=65): time 0.004648/0.2224, allocations: 2.712 MB / 498.6 MB, free: 13.42 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.675e-05/0.2225, allocations: 111.4 kB / 498.8 MB, free: 13.29 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001035/0.2236, allocations: 0.7545 MB / 499.5 MB, free: 12.52 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.865e-05/0.2236, allocations: 37.7 kB / 499.5 MB, free: 12.48 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003935/0.224, allocations: 0.4909 MB / 0.4883 GB, free: 11.98 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001991/0.2243, allocations: 244.6 kB / 0.4885 GB, free: 11.73 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002599/0.2245, allocations: 186.5 kB / 0.4887 GB, free: 11.55 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001849/0.2247, allocations: 398.7 kB / 0.4891 GB, free: 11.15 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005901/0.2253, allocations: 373.8 kB / 0.4895 GB, free: 10.78 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000763/0.2261, allocations: 0.6539 MB / 0.4901 GB, free: 10 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001347/0.2274, allocations: 1.053 MB / 0.4911 GB, free: 8.832 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.688e-06/0.2274, allocations: 0 / 0.4911 GB, free: 8.832 MB / 382.1 MB Notification: Performance of matching and sorting (n=120) (initialization): time 0.003033/0.2305, allocations: 1.631 MB / 0.4927 GB, free: 7.168 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.45e-05/0.2305, allocations: 8 kB / 0.4927 GB, free: 7.16 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.786e-05/0.2306, allocations: 8 kB / 0.4927 GB, free: 7.152 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001469/0.232, allocations: 485.6 kB / 0.4932 GB, free: 6.672 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006154/0.2327, allocations: 167.7 kB / 0.4934 GB, free: 6.508 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009506/0.2422, allocations: 7.1 MB / 0.5003 GB, free: 15.12 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008022/0.243, allocations: 52.03 kB / 0.5003 GB, free: 15.07 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.043e-05/0.2431, allocations: 43.98 kB / 0.5004 GB, free: 15.03 MB / 398.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.0005684/0.2437, allocations: 345.7 kB / 0.5007 GB, free: 14.68 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001636/0.2438, allocations: 86.97 kB / 0.5008 GB, free: 14.6 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001784/0.2456, allocations: 1.118 MB / 0.5019 GB, free: 13.42 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.644e-06/0.2456, allocations: 8 kB / 0.5019 GB, free: 13.41 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.372e-06/0.2457, allocations: 3.984 kB / 0.5019 GB, free: 13.41 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.004e-05/0.2457, allocations: 7.984 kB / 0.5019 GB, free: 13.4 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003308/0.249, allocations: 2.107 MB / 0.504 GB, free: 11.18 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.414e-06/0.249, allocations: 11.94 kB / 0.504 GB, free: 11.16 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007212/0.2497, allocations: 128 kB / 0.5041 GB, free: 11.04 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000506/0.2503, allocations: 154.4 kB / 0.5042 GB, free: 10.88 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.005e-05/0.2503, allocations: 27.98 kB / 0.5043 GB, free: 10.85 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003856/0.2542, allocations: 4.808 MB / 0.509 GB, free: 5.629 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.2542, allocations: 0 / 0.509 GB, free: 5.629 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002279/0.2565, allocations: 1.545 MB / 0.5105 GB, free: 4.008 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003724/0.2569, allocations: 208 kB / 0.5107 GB, free: 3.785 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001196/0.257, allocations: 23.98 kB / 0.5107 GB, free: 3.762 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004293/0.2574, allocations: 27.97 kB / 0.5107 GB, free: 3.734 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001424/0.2576, allocations: 56.38 kB / 0.5108 GB, free: 3.68 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.994e-05/0.2577, allocations: 23.98 kB / 0.5108 GB, free: 3.656 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0006643/0.2583, allocations: 0.5068 MB / 0.5113 GB, free: 3.152 MB / 398.1 MB Notification: Performance of sort global known variables: time 2e-07/0.2583, allocations: 4 kB / 0.5113 GB, free: 3.148 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001065/0.2594, allocations: 264 kB / 0.5116 GB, free: 2.891 MB / 398.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.0009326/0.2604, allocations: 421.9 kB / 0.512 GB, free: 2.621 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002652/0.263, allocations: 1.462 MB / 0.5134 GB, free: 1.129 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.847e-06/0.263, allocations: 0 / 0.5134 GB, free: 1.129 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001192/0.2642, allocations: 0.7897 MB / 0.5142 GB, free: 308 kB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000982/0.2652, allocations: 214.9 kB / 0.5144 GB, free: 96 kB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1961/0.4613, allocations: 3.047 MB / 0.5173 GB, free: 69.77 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009269/0.4623, allocations: 1.148 MB / 0.5185 GB, free: 69.06 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0009258/0.4633, allocations: 230 kB / 0.5187 GB, free: 69.04 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002139/0.4635, allocations: 76.58 kB / 0.5187 GB, free: 69.03 MB / 398.1 MB Notification: Performance of SimCode: time 7.61e-07/0.4635, allocations: 4 kB / 0.5188 GB, free: 69.02 MB / 398.1 MB Notification: Performance of Templates: time 0.02854/0.492, allocations: 14.51 MB / 0.5329 GB, free: 65.12 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 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMav.pipe 2>&1)