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.001146/0.001146, allocations: 112.2 kB / 16.51 MB, free: 6.707 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.001126/0.001126, allocations: 190.5 kB / 17.43 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.394/1.394, allocations: 222.9 MB / 241.1 MB, free: 13.73 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1889/0.1889, allocations: 38.03 MB / 329.3 MB, free: 8.801 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001582/0.001582, allocations: 65.16 kB / 398.1 MB, free: 34.47 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1184/0.1201, allocations: 58.07 MB / 456.2 MB, free: 8.492 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol): time 0.009622/0.1297, allocations: 8.338 MB / 464.5 MB, free: 116 kB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.009471/0.1392, allocations: 5.529 MB / 470 MB, free: 10.56 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002148/0.1414, allocations: 55.69 kB / 470.1 MB, free: 10.51 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0126/0.1541, allocations: 5.545 MB / 475.6 MB, free: 4.953 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002041/0.1562, allocations: 0.5056 MB / 476.1 MB, free: 4.445 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001721/0.1579, allocations: 0.5296 MB / 476.7 MB, free: 3.918 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004816/0.1627, allocations: 3.224 MB / 479.9 MB, free: 0.6836 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002116/0.1649, allocations: 1.034 MB / 480.9 MB, free: 15.62 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001471/0.1664, allocations: 0.6029 MB / 481.5 MB, free: 15.02 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001459/0.1678, allocations: 0.86 MB / 482.4 MB, free: 14.16 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003349/0.1682, allocations: 76 kB / 482.5 MB, free: 14.08 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006305/0.1688, allocations: 147.9 kB / 482.6 MB, free: 13.94 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006214/0.1695, allocations: 458.6 kB / 483 MB, free: 13.49 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001056/0.1705, allocations: 0.6216 MB / 483.7 MB, free: 12.86 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002086/0.1726, allocations: 1.811 MB / 485.5 MB, free: 11.05 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.919e-06/0.1726, allocations: 0 / 485.5 MB, free: 11.05 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.634e-06/0.1727, allocations: 0 / 485.5 MB, free: 11.05 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.506e-05/0.1727, allocations: 0 / 485.5 MB, free: 11.05 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.004121/0.1769, allocations: 1.689 MB / 487.2 MB, free: 9.305 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.162e-05/0.1769, allocations: 15.97 kB / 487.2 MB, free: 9.289 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004758/0.1774, allocations: 155.2 kB / 487.3 MB, free: 9.137 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002181/0.1796, allocations: 1.05 MB / 488.4 MB, free: 8.043 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.503e-05/0.1796, allocations: 69.98 kB / 488.5 MB, free: 7.973 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001718/0.1798, allocations: 91.91 kB / 488.5 MB, free: 7.883 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002193/0.182, allocations: 1.331 MB / 489.9 MB, free: 6.5 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.131e-05/0.1821, allocations: 3.984 kB / 489.9 MB, free: 6.496 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001221/0.1822, allocations: 40 kB / 489.9 MB, free: 6.457 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003629/0.1826, allocations: 89.94 kB / 490 MB, free: 6.367 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001969/0.1845, allocations: 1.14 MB / 491.1 MB, free: 5.23 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007371/0.1919, allocations: 4.943 MB / 496.1 MB, free: 116 kB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001471/0.1934, allocations: 0.9465 MB / 497 MB, free: 15.12 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008105/0.1942, allocations: 0.5199 MB / 497.6 MB, free: 14.59 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.231e-05/0.1943, allocations: 16.59 kB / 497.6 MB, free: 14.58 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009927/0.1953, allocations: 0.6216 MB / 498.2 MB, free: 13.93 MB / 382.1 MB Notification: Performance of pre-optimization done (n=79): time 2.805e-06/0.1953, allocations: 0 / 498.2 MB, free: 13.93 MB / 382.1 MB Notification: Performance of matching and sorting (n=81): time 0.00891/0.2043, allocations: 4.155 MB / 0.4906 GB, free: 9.617 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001108/0.2044, allocations: 170.9 kB / 0.4907 GB, free: 9.414 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001356/0.2058, allocations: 0.8449 MB / 0.4916 GB, free: 8.543 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001596/0.2059, allocations: 41.7 kB / 0.4916 GB, free: 8.496 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004965/0.2065, allocations: 0.5267 MB / 0.4921 GB, free: 7.961 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003406/0.2068, allocations: 287.8 kB / 0.4924 GB, free: 7.676 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003604/0.2072, allocations: 178.5 kB / 0.4926 GB, free: 7.492 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000179/0.2074, allocations: 345.9 kB / 0.4929 GB, free: 7.148 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009221/0.2083, allocations: 496.5 kB / 0.4934 GB, free: 6.66 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001033/0.2093, allocations: 0.7091 MB / 0.4941 GB, free: 5.855 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001733/0.2111, allocations: 1.226 MB / 0.4953 GB, free: 4.539 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.819e-06/0.2111, allocations: 0 / 0.4953 GB, free: 4.539 MB / 382.1 MB Notification: Performance of matching and sorting (n=122) (initialization): time 0.009173/0.2203, allocations: 2.903 MB / 0.4981 GB, free: 1.598 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.466e-05/0.2204, allocations: 8 kB / 0.4981 GB, free: 1.59 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.25e-05/0.2204, allocations: 11.94 kB / 0.4981 GB, free: 1.578 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.2443/0.4647, allocations: 1.866 MB / 0.4999 GB, free: 55.33 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00079/0.4656, allocations: 140.7 kB / 0.5001 GB, free: 55.33 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02144/0.487, allocations: 11.47 MB / 0.5113 GB, free: 50.08 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001009/0.4881, allocations: 58.58 kB / 0.5113 GB, free: 50.06 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001066/0.4882, allocations: 47.31 kB / 0.5114 GB, free: 50.05 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.00139/0.4896, allocations: 0.7555 MB / 0.5121 GB, free: 49.7 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0009815/0.4906, allocations: 0.6972 MB / 0.5128 GB, free: 49.25 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001566/0.4922, allocations: 1.203 MB / 0.514 GB, free: 48.57 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.3e-06/0.4922, allocations: 2.469 kB / 0.514 GB, free: 48.57 MB / 382.1 MB Notification: Performance of matching and sorting (n=122) (initialization_lambda0): time 0.008856/0.501, allocations: 2.817 MB / 0.5167 GB, free: 47.71 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.685e-05/0.5011, allocations: 8.094 kB / 0.5167 GB, free: 47.71 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.447e-05/0.5011, allocations: 7.219 kB / 0.5167 GB, free: 47.71 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008311/0.5094, allocations: 1.867 MB / 0.5186 GB, free: 47.44 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006505/0.5101, allocations: 142.3 kB / 0.5187 GB, free: 47.43 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01668/0.5268, allocations: 11.26 MB / 0.5297 GB, free: 40.34 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001079/0.5279, allocations: 51.02 kB / 0.5297 GB, free: 40.32 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.677e-05/0.528, allocations: 46.7 kB / 0.5298 GB, free: 40.3 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.0004358/0.5285, allocations: 239.6 kB / 0.53 GB, free: 40.08 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001483/0.5286, allocations: 104.1 kB / 0.5301 GB, free: 40.03 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002742/0.5314, allocations: 1.651 MB / 0.5317 GB, free: 38.72 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.604e-06/0.5314, allocations: 10.69 kB / 0.5317 GB, free: 38.71 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.58e-06/0.5314, allocations: 4 kB / 0.5317 GB, free: 38.71 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.007e-06/0.5314, allocations: 9.234 kB / 0.5317 GB, free: 38.7 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003678/0.5351, allocations: 2.882 MB / 0.5346 GB, free: 35.73 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.678e-06/0.5351, allocations: 4.031 kB / 0.5346 GB, free: 35.73 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000867/0.536, allocations: 163.8 kB / 0.5347 GB, free: 35.57 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001177/0.5372, allocations: 383.7 kB / 0.5351 GB, free: 35.18 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.326e-05/0.5373, allocations: 27.98 kB / 0.5351 GB, free: 35.16 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004146/0.5414, allocations: 6.298 MB / 0.5413 GB, free: 28.34 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.5414, allocations: 1.859 kB / 0.5413 GB, free: 28.34 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003075/0.5445, allocations: 2.299 MB / 0.5435 GB, free: 25.96 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003397/0.5449, allocations: 260.7 kB / 0.5438 GB, free: 25.69 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001355/0.545, allocations: 23.98 kB / 0.5438 GB, free: 25.67 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005634/0.5456, allocations: 43.95 kB / 0.5438 GB, free: 25.62 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001814/0.5458, allocations: 68.84 kB / 0.5439 GB, free: 25.56 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.712e-05/0.5459, allocations: 39.81 kB / 0.5439 GB, free: 25.52 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0007389/0.5466, allocations: 0.5776 MB / 0.5445 GB, free: 24.93 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5466, allocations: 0 / 0.5445 GB, free: 24.93 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002076/0.5487, allocations: 0.5493 MB / 0.545 GB, free: 24.39 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.0009047/0.5496, allocations: 438.8 kB / 0.5454 GB, free: 24.14 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.005627/0.5552, allocations: 3.18 MB / 0.5485 GB, free: 20.93 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.38e-06/0.5553, allocations: 4 kB / 0.5485 GB, free: 20.92 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001551/0.5568, allocations: 1.146 MB / 0.5497 GB, free: 19.73 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001365/0.5582, allocations: 261.8 kB / 0.5499 GB, free: 19.48 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004423/0.5626, allocations: 3.393 MB / 0.5532 GB, free: 16.1 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006469/0.5633, allocations: 1.249 MB / 0.5544 GB, free: 14.82 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001063/0.5644, allocations: 248.2 kB / 0.5547 GB, free: 14.58 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002754/0.5647, allocations: 87.41 kB / 0.5548 GB, free: 14.49 MB / 382.1 MB Notification: Performance of SimCode: time 2.094e-06/0.5647, allocations: 0 / 0.5548 GB, free: 14.49 MB / 382.1 MB Notification: Performance of Templates: time 0.04891/0.6136, allocations: 31.31 MB / 0.5853 GB, free: 15.34 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)