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.00142/0.00142, allocations: 174.6 kB / 15.77 MB, free: 5.969 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.433/1.433, allocations: 205.4 MB / 221.9 MB, free: 13.8 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.0007548/0.0007545, allocations: 90.3 kB / 270.3 MB, free: 13.33 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2319/0.2319, allocations: 38.05 MB / 356.6 MB, free: 0.7656 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003679/0.000368, allocations: 12 kB / 422.7 MB, free: 26.39 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09688/0.09726, allocations: 56.33 MB / 479.1 MB, free: 2.004 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol): time 0.008851/0.1062, allocations: 7.454 MB / 486.5 MB, free: 10.52 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.008667/0.1149, allocations: 5.014 MB / 491.5 MB, free: 5.492 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001311/0.1162, allocations: 47.69 kB / 491.6 MB, free: 5.445 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.009814/0.1261, allocations: 5.374 MB / 497 MB, free: 64 kB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001734/0.1278, allocations: 0.5246 MB / 497.5 MB, free: 15.54 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001518/0.1294, allocations: 446.9 kB / 497.9 MB, free: 15.1 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.003899/0.1333, allocations: 2.815 MB / 0.489 GB, free: 12.28 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001909/0.1352, allocations: 1.038 MB / 0.49 GB, free: 11.19 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001252/0.1365, allocations: 0.5834 MB / 0.4906 GB, free: 10.6 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001303/0.1378, allocations: 0.7862 MB / 0.4913 GB, free: 9.812 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002837/0.1381, allocations: 60 kB / 0.4914 GB, free: 9.754 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005938/0.1387, allocations: 120 kB / 0.4915 GB, free: 9.637 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005579/0.1392, allocations: 442.7 kB / 0.4919 GB, free: 9.203 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004208/0.1397, allocations: 257 kB / 0.4922 GB, free: 8.945 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001589/0.1413, allocations: 1.465 MB / 0.4936 GB, free: 7.477 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/0.1413, allocations: 0 / 0.4936 GB, free: 7.477 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.723e-06/0.1413, allocations: 0 / 0.4936 GB, free: 7.477 MB / 346.7 MB Notification: Performance of Transformations before backend: time 6.967e-05/0.1414, allocations: 4 kB / 0.4936 GB, free: 7.473 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.00377/0.1451, allocations: 1.471 MB / 0.4951 GB, free: 5.945 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.477e-05/0.1452, allocations: 12.03 kB / 0.4951 GB, free: 5.934 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006117/0.1458, allocations: 150.2 kB / 0.4952 GB, free: 5.785 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002438/0.1483, allocations: 1.027 MB / 0.4962 GB, free: 4.715 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.004e-05/0.1483, allocations: 73.94 kB / 0.4963 GB, free: 4.645 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002571/0.1486, allocations: 95.89 kB / 0.4964 GB, free: 4.551 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002391/0.151, allocations: 1.324 MB / 0.4977 GB, free: 3.172 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.423e-05/0.1511, allocations: 11.92 kB / 0.4977 GB, free: 3.16 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001121/0.1512, allocations: 35.94 kB / 0.4977 GB, free: 3.125 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003144/0.1515, allocations: 93.94 kB / 0.4978 GB, free: 3.035 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002037/0.1535, allocations: 1.14 MB / 0.4989 GB, free: 1.895 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007798/0.1614, allocations: 4.955 MB / 0.5038 GB, free: 12.77 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001454/0.1628, allocations: 0.9433 MB / 0.5047 GB, free: 11.78 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007908/0.1636, allocations: 0.5277 MB / 0.5052 GB, free: 11.25 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.076e-05/0.1637, allocations: 20.8 kB / 0.5052 GB, free: 11.23 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009566/0.1647, allocations: 0.6139 MB / 0.5058 GB, free: 10.59 MB / 362.7 MB Notification: Performance of pre-optimization done (n=79): time 3.376e-06/0.1647, allocations: 3.938 kB / 0.5058 GB, free: 10.59 MB / 362.7 MB Notification: Performance of matching and sorting (n=81): time 0.00937/0.1741, allocations: 4.237 MB / 0.51 GB, free: 6.191 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.545e-05/0.1742, allocations: 170.8 kB / 0.5101 GB, free: 5.984 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001163/0.1754, allocations: 0.8375 MB / 0.5109 GB, free: 5.121 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 9.466e-05/0.1755, allocations: 41.7 kB / 0.511 GB, free: 5.074 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003689/0.1759, allocations: 0.5229 MB / 0.5115 GB, free: 4.543 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002716/0.1761, allocations: 291.8 kB / 0.5118 GB, free: 4.254 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.172e-05/0.1762, allocations: 20 kB / 0.5118 GB, free: 4.234 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001451/0.1764, allocations: 349.9 kB / 0.5121 GB, free: 3.887 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008086/0.1772, allocations: 481.8 kB / 0.5126 GB, free: 3.418 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009617/0.1782, allocations: 0.713 MB / 0.5133 GB, free: 2.602 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009515/0.1791, allocations: 0.5692 MB / 0.5138 GB, free: 2.035 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.624e-06/0.1791, allocations: 4 kB / 0.5138 GB, free: 2.031 MB / 362.7 MB Notification: Performance of matching and sorting (n=122) (initialization): time 0.2233/0.4024, allocations: 2.924 MB / 0.5167 GB, free: 51.94 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001759/0.4027, allocations: 289.2 kB / 0.517 GB, free: 51.62 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.484e-05/0.4027, allocations: 8.078 kB / 0.517 GB, free: 51.62 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00914/0.4118, allocations: 1.926 MB / 0.5188 GB, free: 51.6 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007077/0.4126, allocations: 147.9 kB / 0.519 GB, free: 51.6 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02025/0.4329, allocations: 11.52 MB / 0.5302 GB, free: 46 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009534/0.4338, allocations: 57.78 kB / 0.5303 GB, free: 45.98 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.95e-05/0.434, allocations: 46.89 kB / 0.5303 GB, free: 45.97 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.322e-05/0.434, allocations: 3.375 kB / 0.5303 GB, free: 45.97 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008153/0.4421, allocations: 2.711 MB / 0.533 GB, free: 44.56 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.148e-05/0.4422, allocations: 6.875 kB / 0.533 GB, free: 44.56 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00782/0.45, allocations: 1.849 MB / 0.5348 GB, free: 43.71 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006316/0.4507, allocations: 142 kB / 0.5349 GB, free: 43.68 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01556/0.4663, allocations: 11.27 MB / 0.5459 GB, free: 34.34 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009527/0.4672, allocations: 57.84 kB / 0.546 GB, free: 34.29 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.26e-05/0.4673, allocations: 43.98 kB / 0.546 GB, free: 34.25 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.0006841/0.468, allocations: 444.4 kB / 0.5465 GB, free: 33.8 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001256/0.4682, allocations: 115.6 kB / 0.5466 GB, free: 33.7 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002498/0.4707, allocations: 1.654 MB / 0.5482 GB, free: 31.99 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.366e-06/0.4707, allocations: 14.52 kB / 0.5482 GB, free: 31.98 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.923e-06/0.4707, allocations: 7.984 kB / 0.5482 GB, free: 31.97 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.967e-06/0.4707, allocations: 3.984 kB / 0.5482 GB, free: 31.96 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00379/0.4745, allocations: 2.9 MB / 0.551 GB, free: 28.98 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.52e-06/0.4745, allocations: 7.953 kB / 0.5511 GB, free: 28.97 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008933/0.4754, allocations: 163.8 kB / 0.5512 GB, free: 28.81 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001182/0.4766, allocations: 399 kB / 0.5516 GB, free: 28.41 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.036e-05/0.4767, allocations: 31.97 kB / 0.5516 GB, free: 28.38 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004086/0.4808, allocations: 6.284 MB / 0.5578 GB, free: 21.57 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.963e-06/0.4808, allocations: 3.938 kB / 0.5578 GB, free: 21.56 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00321/0.484, allocations: 2.298 MB / 0.56 GB, free: 19.2 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004799/0.4845, allocations: 274.5 kB / 0.5603 GB, free: 18.91 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001299/0.4847, allocations: 24 kB / 0.5603 GB, free: 18.89 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005759/0.4853, allocations: 52.14 kB / 0.5603 GB, free: 18.84 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001577/0.4854, allocations: 68.83 kB / 0.5604 GB, free: 18.77 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.297e-05/0.4855, allocations: 39.97 kB / 0.5604 GB, free: 18.73 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0006529/0.4862, allocations: 0.5739 MB / 0.561 GB, free: 18.14 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.4862, allocations: 0 / 0.561 GB, free: 18.14 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001935/0.4881, allocations: 0.5518 MB / 0.5615 GB, free: 17.59 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.0007985/0.4889, allocations: 428.6 kB / 0.562 GB, free: 17.23 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.005938/0.4949, allocations: 3.223 MB / 0.5651 GB, free: 13.97 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 8.226e-06/0.4949, allocations: 0 / 0.5651 GB, free: 13.97 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001522/0.4964, allocations: 1.146 MB / 0.5662 GB, free: 12.77 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001378/0.4978, allocations: 268.2 kB / 0.5665 GB, free: 12.51 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00475/0.5026, allocations: 3.601 MB / 0.57 GB, free: 8.887 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007782/0.5034, allocations: 1.246 MB / 0.5712 GB, free: 7.613 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003655/0.5038, allocations: 87.41 kB / 0.5713 GB, free: 7.527 MB / 362.7 MB Notification: Performance of SimCode: time 8.42e-07/0.5038, allocations: 0 / 0.5713 GB, free: 7.527 MB / 362.7 MB Notification: Performance of Templates: time 0.0385/0.5423, allocations: 32.4 MB / 0.6029 GB, free: 7.066 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)