Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol.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_icontrol,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2400,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol") translateModel(PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2400,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0013/0.0013, allocations: 115 kB / 16.62 MB, free: 6.793 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.001624/0.001624, allocations: 189.8 kB / 17.55 MB, free: 5.918 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.398/1.398, allocations: 222.9 MB / 241.2 MB, free: 15.48 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1704/0.1704, allocations: 38.02 MB / 329.4 MB, free: 8.91 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0014/0.0014, allocations: 64.05 kB / 398.3 MB, free: 34.39 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1337/0.1351, allocations: 58.06 MB / 456.3 MB, free: 8.402 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol): time 0.01099/0.1461, allocations: 8.342 MB / 464.7 MB, free: 20 kB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.009797/0.156, allocations: 5.372 MB / 470.1 MB, free: 10.62 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001438/0.1575, allocations: 51.69 kB / 470.1 MB, free: 10.57 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01291/0.1705, allocations: 5.725 MB / 475.8 MB, free: 4.84 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002939/0.1734, allocations: 0.4978 MB / 476.3 MB, free: 4.34 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002845/0.1763, allocations: 0.5244 MB / 476.9 MB, free: 3.824 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005005/0.1813, allocations: 2.647 MB / 479.5 MB, free: 1.168 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00287/0.1842, allocations: 1.304 MB / 480.8 MB, free: 15.84 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001941/0.1862, allocations: 0.72 MB / 481.5 MB, free: 15.12 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001995/0.1882, allocations: 0.8953 MB / 482.4 MB, free: 14.22 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000506/0.1887, allocations: 148 kB / 482.6 MB, free: 14.07 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008964/0.1896, allocations: 212 kB / 482.8 MB, free: 13.87 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008091/0.1904, allocations: 0.5298 MB / 483.3 MB, free: 13.34 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001344/0.1918, allocations: 0.6921 MB / 484 MB, free: 12.64 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002638/0.1944, allocations: 1.869 MB / 485.9 MB, free: 10.77 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.951e-06/0.1944, allocations: 0 / 485.9 MB, free: 10.77 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.404e-06/0.1945, allocations: 0 / 485.9 MB, free: 10.77 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.159e-05/0.1945, allocations: 0 / 485.9 MB, free: 10.77 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: 231 * Number of variables: 231 Notification: Performance of Generate backend data structure: time 0.00486/0.1994, allocations: 1.696 MB / 487.6 MB, free: 9.016 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.014e-05/0.1995, allocations: 19.83 kB / 487.6 MB, free: 8.996 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006036/0.2001, allocations: 147.2 kB / 487.7 MB, free: 8.852 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002248/0.2023, allocations: 1.046 MB / 488.8 MB, free: 7.762 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.71e-05/0.2024, allocations: 69.98 kB / 488.8 MB, free: 7.695 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001875/0.2026, allocations: 95.89 kB / 488.9 MB, free: 7.602 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002193/0.2048, allocations: 1.334 MB / 490.3 MB, free: 6.215 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.066e-05/0.2048, allocations: 0 / 490.3 MB, free: 6.215 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001072/0.205, allocations: 40 kB / 490.3 MB, free: 6.176 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003347/0.2053, allocations: 93.92 kB / 490.4 MB, free: 6.086 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001856/0.2072, allocations: 1.14 MB / 491.5 MB, free: 4.945 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007572/0.2147, allocations: 4.931 MB / 496.5 MB, free: 15.84 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001485/0.2163, allocations: 0.9525 MB / 497.4 MB, free: 14.84 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000798/0.2171, allocations: 0.5238 MB / 497.9 MB, free: 14.31 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.825e-05/0.2172, allocations: 16.59 kB / 498 MB, free: 14.3 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009915/0.2182, allocations: 0.6216 MB / 498.6 MB, free: 13.65 MB / 382.1 MB Notification: Performance of pre-optimization done (n=79): time 2.855e-06/0.2182, allocations: 0 / 498.6 MB, free: 13.65 MB / 382.1 MB Notification: Performance of matching and sorting (n=81): time 0.009052/0.2272, allocations: 4.159 MB / 0.491 GB, free: 9.336 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.065e-05/0.2274, allocations: 170.9 kB / 0.4911 GB, free: 9.133 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001109/0.2285, allocations: 0.8449 MB / 0.4919 GB, free: 8.262 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.855e-05/0.2286, allocations: 41.7 kB / 0.492 GB, free: 8.215 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003716/0.2289, allocations: 0.519 MB / 0.4925 GB, free: 7.688 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002494/0.2292, allocations: 291.8 kB / 0.4928 GB, free: 7.398 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003093/0.2295, allocations: 182.5 kB / 0.4929 GB, free: 7.211 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001361/0.2297, allocations: 345.9 kB / 0.4933 GB, free: 6.867 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007888/0.2305, allocations: 496.5 kB / 0.4937 GB, free: 6.379 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009301/0.2314, allocations: 0.7091 MB / 0.4944 GB, free: 5.574 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001799/0.2332, allocations: 1.23 MB / 0.4956 GB, free: 4.254 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.109e-06/0.2332, allocations: 0 / 0.4956 GB, free: 4.254 MB / 382.1 MB Notification: Performance of matching and sorting (n=122) (initialization): time 0.009435/0.2427, allocations: 2.899 MB / 0.4985 GB, free: 1.312 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.132e-05/0.2427, allocations: 8 kB / 0.4985 GB, free: 1.305 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.93e-05/0.2428, allocations: 11.94 kB / 0.4985 GB, free: 1.293 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.2633/0.5061, allocations: 1.877 MB / 0.5003 GB, free: 56.45 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007348/0.5069, allocations: 141 kB / 0.5005 GB, free: 56.45 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02119/0.5281, allocations: 12.56 MB / 0.5127 GB, free: 50.23 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001181/0.5293, allocations: 55.62 kB / 0.5128 GB, free: 50.21 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001168/0.5294, allocations: 51.39 kB / 0.5128 GB, free: 50.2 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001262/0.5307, allocations: 0.7504 MB / 0.5136 GB, free: 49.85 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0009249/0.5316, allocations: 0.7001 MB / 0.5142 GB, free: 49.4 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.00164/0.5333, allocations: 1.202 MB / 0.5154 GB, free: 48.71 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 7.283e-06/0.5333, allocations: 3.219 kB / 0.5154 GB, free: 48.71 MB / 382.1 MB Notification: Performance of matching and sorting (n=122) (initialization_lambda0): time 0.009015/0.5423, allocations: 2.816 MB / 0.5182 GB, free: 47.83 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.772e-05/0.5423, allocations: 9.781 kB / 0.5182 GB, free: 47.83 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.424e-05/0.5424, allocations: 6.969 kB / 0.5182 GB, free: 47.83 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008665/0.551, allocations: 1.879 MB / 0.52 GB, free: 47.54 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007415/0.5518, allocations: 139.5 kB / 0.5202 GB, free: 47.53 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01763/0.5694, allocations: 12.33 MB / 0.5322 GB, free: 38.39 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001023/0.5705, allocations: 55.89 kB / 0.5323 GB, free: 38.33 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.087e-05/0.5706, allocations: 47.98 kB / 0.5323 GB, free: 38.29 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * Number of states: 0 () * Number of discrete variables: 3 (system.initime,$whenCondition1,PI_i_q.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (71): * Single equations (assignments): 69 * 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 {(9,40)} Notification: Performance of prepare postOptimizeDAE: time 0.0003487/0.571, allocations: 231.8 kB / 0.5325 GB, free: 38.05 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001452/0.5711, allocations: 104.6 kB / 0.5326 GB, free: 37.95 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002662/0.5738, allocations: 1.639 MB / 0.5342 GB, free: 36.25 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.676e-06/0.5738, allocations: 11.94 kB / 0.5342 GB, free: 36.24 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.931e-06/0.5738, allocations: 4 kB / 0.5342 GB, free: 36.24 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.043e-05/0.5738, allocations: 3.984 kB / 0.5342 GB, free: 36.23 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003774/0.5776, allocations: 2.902 MB / 0.5371 GB, free: 33.26 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.869e-06/0.5776, allocations: 0 / 0.5371 GB, free: 33.26 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008868/0.5785, allocations: 167.8 kB / 0.5372 GB, free: 33.09 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001186/0.5797, allocations: 380.9 kB / 0.5376 GB, free: 32.71 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.551e-05/0.5798, allocations: 31.97 kB / 0.5376 GB, free: 32.68 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004384/0.5842, allocations: 6.791 MB / 0.5443 GB, free: 25.34 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.849e-06/0.5842, allocations: 7.969 kB / 0.5443 GB, free: 25.33 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003233/0.5875, allocations: 2.287 MB / 0.5465 GB, free: 22.97 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004483/0.5879, allocations: 266.4 kB / 0.5468 GB, free: 22.7 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001471/0.5881, allocations: 27.98 kB / 0.5468 GB, free: 22.67 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006213/0.5887, allocations: 47.95 kB / 0.5468 GB, free: 22.62 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002172/0.5889, allocations: 77.16 kB / 0.5469 GB, free: 22.55 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.621e-05/0.589, allocations: 31.98 kB / 0.5469 GB, free: 22.52 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006594/0.5897, allocations: 0.5776 MB / 0.5475 GB, free: 21.93 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.5897, allocations: 0 / 0.5475 GB, free: 21.93 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002177/0.5919, allocations: 0.555 MB / 0.548 GB, free: 21.38 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 12 (asm_ctrl.rotor.phi,asm_ctrl.rotor.w,asm_ctrl.motor.i[3],asm_ctrl.motor.psi_s[1],asm_ctrl.motor.psi_s[2],asm_ctrl.motor.psi_rd[1],asm_ctrl.motor.psi_rd[2],asm_ctrl.motor.psi_rq[1],asm_ctrl.motor.psi_rq[2],asm_ctrl.motor.phiRotorflux,tabLoad.s,PI_i_q.I.y) * 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 (82): * Single equations (assignments): 77 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(2,2,100.0%), (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.000998/0.5929, allocations: 434.9 kB / 0.5485 GB, free: 21.13 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.006549/0.5994, allocations: 3.465 MB / 0.5518 GB, free: 17.64 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.35e-06/0.5995, allocations: 0 / 0.5518 GB, free: 17.64 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001577/0.6011, allocations: 1.142 MB / 0.553 GB, free: 16.45 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001324/0.6024, allocations: 279.7 kB / 0.5532 GB, free: 16.18 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004694/0.6071, allocations: 3.393 MB / 0.5565 GB, free: 12.8 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007211/0.6079, allocations: 1.241 MB / 0.5577 GB, free: 11.53 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0008674/0.6087, allocations: 252.2 kB / 0.558 GB, free: 11.28 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002424/0.609, allocations: 87.39 kB / 0.5581 GB, free: 11.19 MB / 382.1 MB Notification: Performance of SimCode: time 7.02e-07/0.609, allocations: 0 / 0.5581 GB, free: 11.19 MB / 382.1 MB Notification: Performance of Templates: time 0.04809/0.6571, allocations: 32.69 MB / 0.59 GB, free: 10.68 MB / 414.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol.makefile (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol.sim & ./PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol.pipe 2>&1)