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/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo", uses=false) Using package PowerSystems with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+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/Complex 3.2.2+maint.om/package.mo): time 0.001169/0.001169, allocations: 189.5 kB / 17.27 MB, free: 4.5 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.195/1.195, allocations: 194.2 MB / 212.2 MB, free: 2.367 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.00167/0.00167, allocations: 123.3 kB / 256.6 MB, free: 4.336 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1675/0.1675, allocations: 37.95 MB / 338.8 MB, free: 2.227 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001248/0.001248, allocations: 67.91 kB / 401.8 MB, free: 68.74 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09524/0.09651, allocations: 52.19 MB / 454 MB, free: 16.57 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol): time 0.007107/0.1037, allocations: 8.196 MB / 462.2 MB, free: 8.328 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.007124/0.1108, allocations: 5.381 MB / 467.6 MB, free: 2.934 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001299/0.1122, allocations: 47.75 kB / 467.6 MB, free: 2.887 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.008937/0.1211, allocations: 5.545 MB / 473.2 MB, free: 13.33 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001812/0.123, allocations: 497.8 kB / 473.7 MB, free: 12.84 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001484/0.1245, allocations: 474.5 kB / 474.1 MB, free: 12.38 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.004705/0.1292, allocations: 3.205 MB / 477.3 MB, free: 9.164 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001917/0.1311, allocations: 1.007 MB / 478.3 MB, free: 8.137 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001116/0.1323, allocations: 0.6029 MB / 478.9 MB, free: 7.531 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001009/0.1333, allocations: 0.8407 MB / 479.8 MB, free: 6.688 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001496/0.1335, allocations: 76 kB / 479.8 MB, free: 6.613 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003936/0.1339, allocations: 140 kB / 480 MB, free: 6.477 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004196/0.1343, allocations: 462.6 kB / 480.4 MB, free: 6.023 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006085/0.1349, allocations: 0.6062 MB / 481 MB, free: 5.414 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001626/0.1366, allocations: 1.776 MB / 482.8 MB, free: 3.633 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.48e-06/0.1366, allocations: 3.938 kB / 482.8 MB, free: 3.629 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.694e-06/0.1366, allocations: 0 / 482.8 MB, free: 3.629 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.361e-05/0.1366, allocations: 0 / 482.8 MB, free: 3.629 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 224 * Number of variables: 224 Notification: Performance of Generate backend data structure: time 0.003625/0.1403, allocations: 1.672 MB / 484.5 MB, free: 1.898 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.073e-05/0.1403, allocations: 12.03 kB / 484.5 MB, free: 1.887 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004191/0.1407, allocations: 139.3 kB / 484.6 MB, free: 1.75 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002106/0.1428, allocations: 1.042 MB / 485.7 MB, free: 0.6641 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.778e-05/0.1429, allocations: 58 kB / 485.7 MB, free: 0.6055 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001642/0.1431, allocations: 91.98 kB / 485.8 MB, free: 0.5156 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001791/0.1449, allocations: 1.295 MB / 487.1 MB, free: 15.18 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.745e-05/0.1449, allocations: 4 kB / 487.1 MB, free: 15.17 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.246e-05/0.145, allocations: 35.98 kB / 487.2 MB, free: 15.14 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003088/0.1453, allocations: 93.94 kB / 487.3 MB, free: 15.04 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001714/0.1471, allocations: 1.128 MB / 488.4 MB, free: 13.91 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007733/0.1548, allocations: 4.717 MB / 493.1 MB, free: 9.027 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00136/0.1562, allocations: 0.9303 MB / 494 MB, free: 8.055 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007848/0.157, allocations: 0.516 MB / 494.5 MB, free: 7.531 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.827e-05/0.1571, allocations: 20.64 kB / 494.6 MB, free: 7.508 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009721/0.1581, allocations: 0.6138 MB / 495.2 MB, free: 6.875 MB / 346.7 MB Notification: Performance of pre-optimization done (n=78): time 4.198e-06/0.1581, allocations: 4 kB / 495.2 MB, free: 6.871 MB / 346.7 MB Notification: Performance of matching and sorting (n=81): time 0.007824/0.1659, allocations: 4.552 MB / 499.7 MB, free: 2.113 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.392e-05/0.166, allocations: 162.9 kB / 499.9 MB, free: 1.918 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001026/0.1671, allocations: 0.8022 MB / 0.489 GB, free: 1.109 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 6.091e-05/0.1671, allocations: 41.7 kB / 0.489 GB, free: 1.062 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003358/0.1675, allocations: 0.5034 MB / 0.4895 GB, free: 0.5508 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002329/0.1677, allocations: 291.8 kB / 0.4898 GB, free: 268 kB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003011/0.168, allocations: 174.5 kB / 0.4899 GB, free: 84 kB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001468/0.1682, allocations: 350 kB / 0.4903 GB, free: 15.73 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007431/0.1689, allocations: 492.6 kB / 0.4907 GB, free: 15.25 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008464/0.1698, allocations: 0.6996 MB / 0.4914 GB, free: 14.46 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001606/0.1714, allocations: 1.222 MB / 0.4926 GB, free: 13.15 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.691e-06/0.1714, allocations: 0 / 0.4926 GB, free: 13.15 MB / 362.7 MB Notification: Performance of matching and sorting (n=121) (initialization): time 0.008581/0.18, allocations: 2.92 MB / 0.4955 GB, free: 10.18 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.937e-05/0.1801, allocations: 41.94 kB / 0.4955 GB, free: 10.14 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.134e-05/0.1802, allocations: 4 kB / 0.4955 GB, free: 10.13 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008272/0.1884, allocations: 1.873 MB / 0.4973 GB, free: 8.25 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006241/0.1891, allocations: 143.7 kB / 0.4975 GB, free: 8.109 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2355/0.4246, allocations: 11.43 MB / 0.5086 GB, free: 63.37 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001003/0.4257, allocations: 57.08 kB / 0.5087 GB, free: 63.36 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002407/0.4259, allocations: 46.7 kB / 0.5087 GB, free: 63.35 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001419/0.4274, allocations: 0.7488 MB / 0.5095 GB, free: 63 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0009704/0.4284, allocations: 0.6947 MB / 0.5102 GB, free: 62.57 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001795/0.4302, allocations: 1.206 MB / 0.5113 GB, free: 61.89 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.222e-05/0.4302, allocations: 1.656 kB / 0.5113 GB, free: 61.89 MB / 362.7 MB Notification: Performance of matching and sorting (n=121) (initialization_lambda0): time 0.009293/0.4395, allocations: 2.836 MB / 0.5141 GB, free: 61.01 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.881e-05/0.4396, allocations: 35.02 kB / 0.5141 GB, free: 60.98 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.317e-05/0.4396, allocations: 3.844 kB / 0.5141 GB, free: 60.98 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009678/0.4493, allocations: 1.864 MB / 0.516 GB, free: 60.75 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007019/0.45, allocations: 139.9 kB / 0.5161 GB, free: 60.74 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01737/0.4674, allocations: 11.26 MB / 0.5271 GB, free: 54.3 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008423/0.4683, allocations: 54.64 kB / 0.5271 GB, free: 54.28 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.673e-05/0.4684, allocations: 47.61 kB / 0.5272 GB, free: 54.26 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * 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 (70): * Single equations (assignments): 67 * Array equations: 0 * Algorithm blocks: 1 * 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.0002672/0.4686, allocations: 230.5 kB / 0.5274 GB, free: 54.05 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001311/0.4688, allocations: 101.1 kB / 0.5275 GB, free: 54.05 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002591/0.4714, allocations: 1.65 MB / 0.5291 GB, free: 52.98 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.606e-06/0.4714, allocations: 9.125 kB / 0.5291 GB, free: 52.98 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.623e-06/0.4714, allocations: 4.094 kB / 0.5291 GB, free: 52.98 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.004e-05/0.4714, allocations: 3.984 kB / 0.5291 GB, free: 52.97 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003717/0.4751, allocations: 2.841 MB / 0.5319 GB, free: 50.64 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.689e-06/0.4752, allocations: 0 / 0.5319 GB, free: 50.64 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008652/0.476, allocations: 167.8 kB / 0.5321 GB, free: 50.47 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001162/0.4772, allocations: 383 kB / 0.5324 GB, free: 50.09 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.019e-05/0.4773, allocations: 27.98 kB / 0.5325 GB, free: 50.06 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004028/0.4813, allocations: 6.294 MB / 0.5386 GB, free: 43.25 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.024e-06/0.4813, allocations: 3.938 kB / 0.5386 GB, free: 43.25 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02844/0.5098, allocations: 20.92 MB / 0.559 GB, free: 21.45 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005982/0.5104, allocations: 271.6 kB / 0.5593 GB, free: 21.17 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002266/0.5107, allocations: 19.98 kB / 0.5593 GB, free: 21.15 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006694/0.5114, allocations: 43.97 kB / 0.5594 GB, free: 21.11 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002167/0.5116, allocations: 68.83 kB / 0.5594 GB, free: 21.04 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.96e-05/0.5117, allocations: 35.98 kB / 0.5595 GB, free: 21.01 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0007/0.5124, allocations: 0.5498 MB / 0.56 GB, free: 20.46 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.5124, allocations: 4 kB / 0.56 GB, free: 20.45 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002891/0.5153, allocations: 0.8396 MB / 0.5608 GB, free: 19.62 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 12 (asm_ctrl.motor.i[3],asm_ctrl.motor.phi_el,asm_ctrl.motor.w_el,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.0008337/0.5161, allocations: 401.7 kB / 0.5612 GB, free: 19.26 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.005581/0.5217, allocations: 3.256 MB / 0.5644 GB, free: 15.94 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.348e-06/0.5218, allocations: 1.188 kB / 0.5644 GB, free: 15.94 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001528/0.5233, allocations: 1.141 MB / 0.5655 GB, free: 14.74 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001374/0.5247, allocations: 243.1 kB / 0.5657 GB, free: 14.5 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006296/0.531, allocations: 4.508 MB / 0.5701 GB, free: 9.938 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008401/0.5319, allocations: 1.279 MB / 0.5714 GB, free: 8.625 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.001122/0.533, allocations: 291.8 kB / 0.5717 GB, free: 8.336 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004243/0.5334, allocations: 95.39 kB / 0.5718 GB, free: 8.242 MB / 362.7 MB Notification: Performance of SimCode: time 4.81e-07/0.5334, allocations: 4 kB / 0.5718 GB, free: 8.238 MB / 362.7 MB Notification: Performance of Templates: time 0.05764/0.5911, allocations: 38.95 MB / 0.6098 GB, free: 1.254 MB / 394.7 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)