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.00141/0.001411, allocations: 99.94 kB / 16.5 MB, free: 6.641 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.001559/0.001559, allocations: 194.6 kB / 17.42 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.477/1.477, allocations: 222.9 MB / 241.1 MB, free: 13.62 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.2197/0.2197, allocations: 38.03 MB / 329.3 MB, free: 8.766 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001246/0.001246, allocations: 64.83 kB / 398.1 MB, free: 34.45 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0984/0.09967, allocations: 58.06 MB / 456.2 MB, free: 8.473 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASMav): time 0.00952/0.1092, allocations: 8.343 MB / 464.5 MB, free: 88 kB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.009506/0.1188, allocations: 5.637 MB / 470.1 MB, free: 10.43 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00118/0.12, allocations: 55.69 kB / 470.2 MB, free: 10.38 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01059/0.1306, allocations: 5.643 MB / 475.8 MB, free: 4.723 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001565/0.1322, allocations: 497.9 kB / 476.3 MB, free: 4.234 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001553/0.1338, allocations: 466.3 kB / 476.8 MB, free: 3.781 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004112/0.1379, allocations: 2.955 MB / 479.7 MB, free: 0.8164 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001628/0.1395, allocations: 0.7869 MB / 480.5 MB, free: 16 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00135/0.1409, allocations: 0.5058 MB / 481 MB, free: 15.5 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001412/0.1423, allocations: 0.7474 MB / 481.8 MB, free: 14.75 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002181/0.1426, allocations: 56 kB / 481.8 MB, free: 14.7 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007503/0.1433, allocations: 227.6 kB / 482 MB, free: 14.48 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004891/0.1438, allocations: 462.7 kB / 482.5 MB, free: 14.03 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007461/0.1446, allocations: 0.5285 MB / 483 MB, free: 13.5 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001742/0.1463, allocations: 1.499 MB / 484.5 MB, free: 11.99 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.74e-06/0.1464, allocations: 0 / 484.5 MB, free: 11.99 MB / 366.1 MB Notification: Performance of FrontEnd: time 9.72e-07/0.1464, allocations: 0 / 484.5 MB, free: 11.99 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.461e-05/0.1464, allocations: 0 / 484.5 MB, free: 11.99 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.003397/0.1498, allocations: 1.46 MB / 486 MB, free: 10.48 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.265e-05/0.1499, allocations: 8.031 kB / 486 MB, free: 10.47 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006912/0.1505, allocations: 147.5 kB / 486.1 MB, free: 10.32 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001581/0.1521, allocations: 0.8743 MB / 487 MB, free: 9.41 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.826e-05/0.1522, allocations: 61.98 kB / 487.1 MB, free: 9.348 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001635/0.1524, allocations: 91.89 kB / 487.2 MB, free: 9.258 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001936/0.1543, allocations: 1.235 MB / 488.4 MB, free: 7.953 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.009e-05/0.1544, allocations: 0 / 488.4 MB, free: 7.953 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.434e-05/0.1545, allocations: 35.98 kB / 488.4 MB, free: 7.918 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000245/0.1547, allocations: 89.94 kB / 488.5 MB, free: 7.828 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001596/0.1563, allocations: 1.007 MB / 489.5 MB, free: 6.824 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006695/0.163, allocations: 4.92 MB / 494.4 MB, free: 1.691 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009286/0.164, allocations: 0.6536 MB / 495.1 MB, free: 1 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005403/0.1645, allocations: 367.2 kB / 495.5 MB, free: 0.6367 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.132e-05/0.1646, allocations: 12.56 kB / 495.5 MB, free: 0.625 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006261/0.1652, allocations: 445.7 kB / 495.9 MB, free: 172 kB / 366.1 MB Notification: Performance of pre-optimization done (n=62): time 2.204e-06/0.1653, allocations: 0 / 495.9 MB, free: 172 kB / 366.1 MB Notification: Performance of matching and sorting (n=65): time 0.004665/0.1699, allocations: 2.719 MB / 498.6 MB, free: 13.31 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.466e-05/0.17, allocations: 107.4 kB / 498.7 MB, free: 13.18 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009524/0.171, allocations: 0.7546 MB / 499.5 MB, free: 12.41 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.562e-05/0.171, allocations: 37.7 kB / 499.5 MB, free: 12.37 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003925/0.1714, allocations: 0.4986 MB / 0.4883 GB, free: 11.86 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002351/0.1717, allocations: 236.7 kB / 0.4885 GB, free: 11.63 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003079/0.172, allocations: 178.5 kB / 0.4887 GB, free: 11.45 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002258/0.1722, allocations: 406.7 kB / 0.4891 GB, free: 11.04 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006012/0.1728, allocations: 369.8 kB / 0.4894 GB, free: 10.68 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008216/0.1737, allocations: 0.6539 MB / 0.4901 GB, free: 9.898 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00147/0.1751, allocations: 1.053 MB / 0.4911 GB, free: 8.727 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.44e-06/0.1752, allocations: 4 kB / 0.4911 GB, free: 8.723 MB / 382.1 MB Notification: Performance of matching and sorting (n=120) (initialization): time 0.002897/0.1781, allocations: 1.63 MB / 0.4927 GB, free: 7.059 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.577e-05/0.1781, allocations: 8 kB / 0.4927 GB, free: 7.051 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.842e-05/0.1782, allocations: 8 kB / 0.4927 GB, free: 7.043 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001576/0.1798, allocations: 481.8 kB / 0.4932 GB, free: 6.566 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006165/0.1804, allocations: 175.7 kB / 0.4933 GB, free: 6.395 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.231/0.4114, allocations: 6.498 MB / 0.4997 GB, free: 54.68 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009347/0.4124, allocations: 46.77 kB / 0.4997 GB, free: 54.68 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000106/0.4125, allocations: 44.61 kB / 0.4998 GB, free: 54.68 MB / 382.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.0005798/0.4131, allocations: 359.6 kB / 0.5001 GB, free: 54.57 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001415/0.4132, allocations: 86.7 kB / 0.5002 GB, free: 54.57 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001942/0.4152, allocations: 1.111 MB / 0.5013 GB, free: 54.3 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.306e-06/0.4152, allocations: 7.5 kB / 0.5013 GB, free: 54.3 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.556e-06/0.4152, allocations: 3.125 kB / 0.5013 GB, free: 54.3 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.161e-05/0.4152, allocations: 3.094 kB / 0.5013 GB, free: 54.3 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003735/0.419, allocations: 2.127 MB / 0.5034 GB, free: 53.7 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.953e-06/0.419, allocations: 1.828 kB / 0.5034 GB, free: 53.7 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007315/0.4197, allocations: 124.9 kB / 0.5035 GB, free: 53.69 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005337/0.4203, allocations: 163.5 kB / 0.5037 GB, free: 53.64 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.289e-05/0.4203, allocations: 24.25 kB / 0.5037 GB, free: 53.63 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003325/0.4237, allocations: 4.457 MB / 0.508 GB, free: 49.54 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.968e-06/0.4237, allocations: 5.281 kB / 0.508 GB, free: 49.53 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002896/0.4266, allocations: 1.522 MB / 0.5095 GB, free: 48.75 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005167/0.4271, allocations: 210.9 kB / 0.5097 GB, free: 48.63 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001317/0.4273, allocations: 28.53 kB / 0.5097 GB, free: 48.61 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000465/0.4277, allocations: 30.25 kB / 0.5098 GB, free: 48.61 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002243/0.428, allocations: 50.5 kB / 0.5098 GB, free: 48.6 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.546e-05/0.428, allocations: 29.44 kB / 0.5099 GB, free: 48.59 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0009309/0.429, allocations: 0.5101 MB / 0.5104 GB, free: 48.38 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.429, allocations: 0 / 0.5104 GB, free: 48.38 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00155/0.4305, allocations: 264 kB / 0.5106 GB, free: 48.35 MB / 382.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.001152/0.4317, allocations: 437.5 kB / 0.511 GB, free: 48.2 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002755/0.4345, allocations: 1.309 MB / 0.5123 GB, free: 47.62 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.891e-06/0.4345, allocations: 5 kB / 0.5123 GB, free: 47.62 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001487/0.436, allocations: 0.786 MB / 0.5131 GB, free: 47.14 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00118/0.4372, allocations: 197.9 kB / 0.5133 GB, free: 47.07 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00471/0.4419, allocations: 3.063 MB / 0.5163 GB, free: 45.26 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009087/0.4428, allocations: 1.147 MB / 0.5174 GB, free: 44.49 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0009011/0.4437, allocations: 235.6 kB / 0.5176 GB, free: 44.44 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002284/0.444, allocations: 70.7 kB / 0.5177 GB, free: 44.43 MB / 382.1 MB Notification: Performance of SimCode: time 1.403e-06/0.444, allocations: 0 / 0.5177 GB, free: 44.43 MB / 382.1 MB Notification: Performance of Templates: time 0.02408/0.4681, allocations: 13.92 MB / 0.5313 GB, free: 38.47 MB / 382.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)