Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2400,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol") translateModel(PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2400,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009232/0.0009233, allocations: 169.2 kB / 16.07 MB, free: 5.605 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.213/1.213, allocations: 205.4 MB / 222.2 MB, free: 13.71 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007349/0.0007349, allocations: 90.3 kB / 270.6 MB, free: 13.23 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1546/0.1546, allocations: 38.07 MB / 356.9 MB, free: 0.6484 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003163/0.0003163, allocations: 12 kB / 423.3 MB, free: 26.07 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08549/0.08583, allocations: 56.33 MB / 479.6 MB, free: 1.68 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol): time 0.007778/0.09364, allocations: 7.501 MB / 487.1 MB, free: 10.15 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.007644/0.1013, allocations: 5.002 MB / 492.1 MB, free: 5.133 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009638/0.1023, allocations: 47.75 kB / 492.2 MB, free: 5.086 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.009528/0.1119, allocations: 5.506 MB / 497.7 MB, free: 15.57 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001789/0.1137, allocations: 0.5402 MB / 498.2 MB, free: 15.03 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00143/0.1151, allocations: 466.9 kB / 498.7 MB, free: 14.57 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.003834/0.119, allocations: 2.815 MB / 0.4897 GB, free: 11.75 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001791/0.1208, allocations: 1.172 MB / 0.4909 GB, free: 10.52 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009089/0.1217, allocations: 0.5796 MB / 0.4915 GB, free: 9.941 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001005/0.1228, allocations: 0.7901 MB / 0.4922 GB, free: 9.148 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001384/0.1229, allocations: 56 kB / 0.4923 GB, free: 9.094 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003641/0.1233, allocations: 112 kB / 0.4924 GB, free: 8.984 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004224/0.1237, allocations: 446.7 kB / 0.4928 GB, free: 8.547 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005834/0.1243, allocations: 0.5847 MB / 0.4934 GB, free: 7.953 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001238/0.1255, allocations: 1.473 MB / 0.4948 GB, free: 6.477 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.1256, allocations: 0 / 0.4948 GB, free: 6.477 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.443e-06/0.1256, allocations: 0 / 0.4948 GB, free: 6.477 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.896e-05/0.1256, allocations: 0 / 0.4948 GB, free: 6.477 MB / 346.7 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.002963/0.1286, allocations: 1.467 MB / 0.4963 GB, free: 4.957 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.501e-05/0.1286, allocations: 8.031 kB / 0.4963 GB, free: 4.949 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004155/0.129, allocations: 147.2 kB / 0.4964 GB, free: 4.805 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002013/0.1311, allocations: 1.062 MB / 0.4974 GB, free: 3.699 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.287e-05/0.1311, allocations: 69.98 kB / 0.4975 GB, free: 3.629 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001606/0.1313, allocations: 91.89 kB / 0.4976 GB, free: 3.539 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001994/0.1333, allocations: 1.328 MB / 0.4989 GB, free: 2.16 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.763e-05/0.1333, allocations: 4 kB / 0.4989 GB, free: 2.156 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001037/0.1335, allocations: 35.98 kB / 0.4989 GB, free: 2.121 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003088/0.1338, allocations: 97.86 kB / 0.499 GB, free: 2.023 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001861/0.1356, allocations: 1.14 MB / 0.5001 GB, free: 0.8867 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00713/0.1428, allocations: 4.962 MB / 0.505 GB, free: 11.75 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001427/0.1442, allocations: 0.9512 MB / 0.5059 GB, free: 10.75 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007826/0.145, allocations: 0.5238 MB / 0.5064 GB, free: 10.22 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.36e-05/0.1451, allocations: 16.64 kB / 0.5064 GB, free: 10.2 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008821/0.146, allocations: 0.6255 MB / 0.5071 GB, free: 9.555 MB / 362.7 MB Notification: Performance of pre-optimization done (n=79): time 3.947e-06/0.146, allocations: 112 / 0.5071 GB, free: 9.555 MB / 362.7 MB Notification: Performance of matching and sorting (n=81): time 0.008213/0.1543, allocations: 4.194 MB / 0.5111 GB, free: 5.203 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.672e-05/0.1544, allocations: 162.9 kB / 0.5113 GB, free: 5.008 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001146/0.1555, allocations: 0.8455 MB / 0.5121 GB, free: 4.137 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001084/0.1556, allocations: 37.7 kB / 0.5122 GB, free: 4.094 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004168/0.1561, allocations: 0.5151 MB / 0.5127 GB, free: 3.57 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002639/0.1563, allocations: 295.8 kB / 0.5129 GB, free: 3.277 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.222e-05/0.1564, allocations: 20 kB / 0.513 GB, free: 3.258 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001678/0.1566, allocations: 345.9 kB / 0.5133 GB, free: 2.914 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000788/0.1574, allocations: 473.8 kB / 0.5137 GB, free: 2.453 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008897/0.1583, allocations: 0.7169 MB / 0.5144 GB, free: 1.637 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001742/0.16, allocations: 1.218 MB / 0.5156 GB, free: 332 kB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.927e-06/0.1601, allocations: 3.938 kB / 0.5156 GB, free: 328 kB / 362.7 MB Notification: Performance of matching and sorting (n=122) (initialization): time 0.1641/0.3241, allocations: 2.931 MB / 0.5185 GB, free: 52.48 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001314/0.3243, allocations: 290.5 kB / 0.5188 GB, free: 52.16 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.406e-05/0.3243, allocations: 7.031 kB / 0.5188 GB, free: 52.16 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008312/0.3326, allocations: 1.929 MB / 0.5207 GB, free: 52.01 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006203/0.3333, allocations: 140.1 kB / 0.5208 GB, free: 52 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01765/0.3509, allocations: 11.53 MB / 0.5321 GB, free: 45.74 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008002/0.3518, allocations: 60.23 kB / 0.5321 GB, free: 45.71 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.963e-05/0.3519, allocations: 42.95 kB / 0.5322 GB, free: 45.7 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.011e-05/0.3519, allocations: 7.5 kB / 0.5322 GB, free: 45.7 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007378/0.3593, allocations: 2.713 MB / 0.5348 GB, free: 44.22 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.18e-05/0.3593, allocations: 3.938 kB / 0.5348 GB, free: 44.22 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007023/0.3664, allocations: 1.852 MB / 0.5366 GB, free: 43.36 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005532/0.3669, allocations: 144 kB / 0.5368 GB, free: 43.32 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01434/0.3813, allocations: 11.27 MB / 0.5478 GB, free: 32.71 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007792/0.3821, allocations: 51.91 kB / 0.5478 GB, free: 32.66 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.776e-05/0.3822, allocations: 48.17 kB / 0.5479 GB, free: 32.62 MB / 362.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 1 {9 40} Notification: Performance of prepare postOptimizeDAE: time 0.0005717/0.3828, allocations: 444 kB / 0.5483 GB, free: 32.18 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001292/0.3829, allocations: 118.6 kB / 0.5484 GB, free: 32.06 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002438/0.3853, allocations: 1.65 MB / 0.55 GB, free: 30.35 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.586e-06/0.3854, allocations: 8 kB / 0.55 GB, free: 30.34 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.63e-06/0.3854, allocations: 6.516 kB / 0.55 GB, free: 30.34 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.997e-06/0.3854, allocations: 3.984 kB / 0.55 GB, free: 30.34 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003681/0.3891, allocations: 2.91 MB / 0.5529 GB, free: 27.35 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.048e-06/0.3891, allocations: 0 / 0.5529 GB, free: 27.35 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008427/0.39, allocations: 167.8 kB / 0.553 GB, free: 27.19 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001113/0.3911, allocations: 403 kB / 0.5534 GB, free: 26.78 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.293e-05/0.3912, allocations: 27.98 kB / 0.5534 GB, free: 26.75 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003896/0.3951, allocations: 6.301 MB / 0.5596 GB, free: 19.93 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/0.3951, allocations: 4.031 kB / 0.5596 GB, free: 19.92 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002961/0.3981, allocations: 2.298 MB / 0.5618 GB, free: 17.55 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003637/0.3984, allocations: 271.7 kB / 0.5621 GB, free: 17.27 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001225/0.3986, allocations: 23.98 kB / 0.5621 GB, free: 17.24 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005246/0.3991, allocations: 47.95 kB / 0.5622 GB, free: 17.2 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001466/0.3993, allocations: 68.84 kB / 0.5622 GB, free: 17.13 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.501e-05/0.3993, allocations: 35.98 kB / 0.5623 GB, free: 17.09 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0006368/0.4, allocations: 0.57 MB / 0.5628 GB, free: 16.51 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.3e-07/0.4, allocations: 0 / 0.5628 GB, free: 16.51 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001818/0.4018, allocations: 0.554 MB / 0.5634 GB, free: 15.96 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.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 (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(2,100.0%) 2,(1,100.0%) 3,(2,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008176/0.4026, allocations: 439.6 kB / 0.5638 GB, free: 15.59 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.005283/0.4079, allocations: 3.212 MB / 0.5669 GB, free: 12.33 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.619e-06/0.408, allocations: 0 / 0.5669 GB, free: 12.33 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001425/0.4094, allocations: 1.15 MB / 0.5681 GB, free: 11.13 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001196/0.4106, allocations: 259.1 kB / 0.5683 GB, free: 10.88 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003775/0.4144, allocations: 3.602 MB / 0.5718 GB, free: 7.262 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006116/0.415, allocations: 1.241 MB / 0.573 GB, free: 5.988 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000309/0.4153, allocations: 83.41 kB / 0.5731 GB, free: 5.906 MB / 362.7 MB Notification: Performance of SimCode: time 6.32e-07/0.4153, allocations: 0 / 0.5731 GB, free: 5.906 MB / 362.7 MB Notification: Performance of Templates: time 0.03644/0.4518, allocations: 32.4 MB / 0.6048 GB, free: 5.441 MB / 394.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol.makefile (rm -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol.sim & ./PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol.pipe 2>&1)